Package list-last-thm: Properties of the last list function
Information
name | list-last-thm |
version | 1.40 |
description | Properties of the last list function |
author | Joe Leslie-Hurd <joe@gilith.com> |
license | HOLLight |
provenance | HOL Light theory extracted on 2014-11-01 |
checksum | 0cfd933fb08d599e25b803c64b380e8894f15a64 |
requires | bool list-dest list-last-def |
show | Data.Bool Data.List |
Files
- Package tarball list-last-thm-1.40.tgz
- Theory source file list-last-thm.thy (included in the package tarball)
Theorems
⊦ ∀x. last (x :: []) = x
⊦ ∀x1 x2 l. last (x1 :: x2 :: l) = last (x2 :: l)
External Type Operators
- →
- bool
- Data
- List
- list
- List
External Constants
- =
- Data
- Bool
- ∀
- ∧
- ⇒
- ¬
- cond
- ⊥
- ⊤
- List
- ::
- []
- last
- null
- Bool
Assumptions
⊦ ⊤
⊦ null []
⊦ ⊥ ⇔ ∀p. p
⊦ (¬) = λp. p ⇒ ⊥
⊦ ∀t. (∀x. t) ⇔ t
⊦ (∀) = λp. p = λx. ⊤
⊦ ∀h t. ¬null (h :: t)
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ ∀t1 t2. (if ⊥ then t1 else t2) = t2
⊦ ∀t1 t2. (if ⊤ then t1 else t2) = t1
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ ∀h t. last (h :: t) = if null t then h else last t