Package list-last-def: Definition of the last list function
Information
name | list-last-def |
version | 1.41 |
description | Definition of the last list function |
author | Joe Leslie-Hurd <joe@gilith.com> |
license | HOLLight |
provenance | HOL Light theory extracted on 2012-12-02 |
requires | bool list-def list-dest |
show | Data.Bool Data.List |
Files
- Package tarball list-last-def-1.41.tgz
- Theory source file list-last-def.thy (included in the package tarball)
Defined Constant
- Data
- List
- last
- List
Theorem
⊦ ∀h t. last (h :: t) = if null t then h else last t
External Type Operators
- →
- bool
- Data
- List
- list
- List
External Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- cond
- ⊤
- List
- ::
- []
- null
- Bool
Assumptions
⊦ ⊤
⊦ (∃) = λp. p ((select) p)
⊦ (∀) = λp. p = λx. ⊤
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ (∃) = λp. ∀q. (∀x. p x ⇒ q) ⇒ q
⊦ ∀p. (∀x. ∃y. p x y) ⇔ ∃y. ∀x. p x (y x)
⊦ ∀b f. ∃fn. fn [] = b ∧ ∀h t. fn (h :: t) = f h t (fn t)