Package list-fold-def: Definition of the list fold operations
Information
name | list-fold-def |
version | 1.28 |
description | Definition of the list fold operations |
author | Joe Leslie-Hurd <joe@gilith.com> |
license | MIT |
provenance | HOL Light theory extracted on 2014-11-09 |
checksum | 1471a660db60f3f31036a5cf24cc37ff2a46414a |
requires | bool function list-def list-reverse |
show | Data.Bool Data.List Function |
Files
- Package tarball list-fold-def-1.28.tgz
- Theory source file list-fold-def.thy (included in the package tarball)
Defined Constants
- Data
- List
- foldl
- foldr
- List
Theorems
⊦ ∀f b. foldr f b [] = b
⊦ ∀f b l. foldl f b l = foldr (flip f) b (reverse l)
⊦ ∀f b h t. foldr f b (h :: t) = f h (foldr f b t)
External Type Operators
- →
- bool
- Data
- List
- list
- List
External Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ⊤
- List
- ::
- []
- reverse
- Bool
- Function
- flip
Assumptions
⊦ ⊤
⊦ (∃) = λp. p ((select) p)
⊦ (∀) = λp. p = λx. ⊤
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ (∃) = λp. ∀q. (∀x. p x ⇒ q) ⇒ q
⊦ ∀b f. ∃fn. fn [] = b ∧ ∀h t. fn (h :: t) = f h t (fn t)