Package list-length-def: Definition of the list length function
Information
name | list-length-def |
version | 1.47 |
description | Definition of the list length function |
author | Joe Leslie-Hurd <joe@gilith.com> |
license | HOLLight |
provenance | HOL Light theory extracted on 2014-11-04 |
checksum | caa3601213368924beca9a89f305cadb705aafad |
requires | bool list-def natural |
show | Data.Bool Data.List Number.Natural |
Files
- Package tarball list-length-def-1.47.tgz
- Theory source file list-length-def.thy (included in the package tarball)
Defined Constant
- Data
- List
- length
- List
Theorems
⊦ length [] = 0
⊦ ∀h t. length (h :: t) = suc (length t)
External Type Operators
- →
- bool
- Data
- List
- list
- List
- Number
- Natural
- natural
- Natural
External Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ⊤
- List
- ::
- []
- Bool
- Number
- Natural
- suc
- zero
- Natural
Assumptions
⊦ ⊤
⊦ (∃) = λp. p ((select) p)
⊦ (∀) = λp. p = λx. ⊤
⊦ (⇒) = λp q. p ∧ q ⇔ p
⊦ (∧) = λp q. (λf. f p q) = λf. f ⊤ ⊤
⊦ ∀b f. ∃fn. fn [] = b ∧ ∀h t. fn (h :: t) = f h t (fn t)