| Parents |
| ℕ |
| Children |
| char |
| Constants |
|
IsListRep
|
(ℕ → 'a) × ℕ → BOOL |
|
[]
|
'a LIST |
|
Cons
|
'a → 'a LIST → 'a LIST |
|
Length
|
'a LIST → ℕ |
|
Hd
|
'a LIST → 'a |
|
Tl
|
'a LIST → 'a LIST |
|
Append
|
'a LIST → 'a LIST → 'a LIST |
|
Rev
|
'a LIST → 'a LIST |
|
Split
|
('a × 'b) LIST → 'a LIST × 'b LIST |
|
Combine
|
'a LIST → 'b LIST → ('a × 'b) LIST |
|
Map
|
('a → 'b) → 'a LIST → 'b LIST |
|
Fold
|
('a → 'b → 'b) → 'a LIST → 'b → 'b |
| Aliases |
|
@
|
Append : 'a LIST → 'a LIST → 'a LIST |
| Types |
|
'1 LIST
|
| Fixity |
| Right Infix 300: |
@ |
| Definitions |
|
IsListRep
is_list_rep_def
|
⊢ ∃ nil cons
|
|
LIST
list_def
|
⊢ ∃ f• TypeDefn IsListRep f |
|
Nil
Cons
nil_cons_def
|
⊢ (∀ x list• ¬ Cons x list = []) |
|
Length
length_def
|
⊢ # [] = 0 ∧ (∀ h list• # (Cons h list) = # list + 1) |
|
Hd
hd_def
|
⊢ ∀ h list• Head (Cons h list) = h |
|
Tl
tl_def
|
⊢ ∀ h list• Tail (Cons h list) = list |
|
Append
append_def
|
⊢ (∀ list• [] @ list = list) |
|
Rev
rev_def
|
⊢ Rev [] = [] |
|
Split
split_def
|
⊢ Split [] = ([], []) |
|
Combine
combine_def
|
⊢ Combine [] [] = [] |
|
Map
map_def
|
⊢ (∀ g• Map g [] = []) |
|
Fold
fold_def
|
⊢ (∀ g x• Fold g [] x = x) |
| Theorems |
|
list_induction_thm
|
⊢ ∀ p
|
|
list_prim_rec_thm
|
⊢ ∀ n c
|
|
list_clauses
|
⊢ ∀ x1 x2 list1 list2 |
|
list_cases_thm
|
⊢ ∀ list1
|