Package list-last-thm: Properties of the last list function
Information
name | list-last-thm |
version | 1.37 |
description | Properties of the last list function |
author | Joe Hurd <joe@gilith.com> |
license | HOLLight |
provenance | HOL Light theory extracted on 2012-03-24 |
requires | bool list-dest list-last-def |
show | Data.Bool Data.List |
Files
- Package tarball list-last-thm-1.37.tgz
- Theory 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)
Input Type Operators
- →
- bool
- Data
- List
- list
- List
Input 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