name | list-dest-def |
version | 1.1 |
description | Definition of the list destructors |
author | Joe Hurd <joe@gilith.com> |
license | HOLLight |
provenance | HOL Light theory extracted on 2011-03-20 |
show | Data.Bool |
⊦ ∀h t. Data.List.tail (Data.List.:: h t) = t
⊦ ∀t h. Data.List.head (Data.List.:: h t) = h
⊦ (Data.List.null Data.List.[] ⇔ T) ∧
∀h t. Data.List.null (Data.List.:: h t) ⇔ F
⊦ (∀b f. Data.List.case b f Data.List.[] = b) ∧
∀b f h t. Data.List.case b f (Data.List.:: h t) = f h t
⊦ 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
⊦ ∀NIL' CONS'.
∃fn.
fn Data.List.[] = NIL' ∧
∀a0 a1. fn (Data.List.:: a0 a1) = CONS' a0 a1 (fn a1)