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