Package list-replicate-def: Definition of the list replicate function
Information
name | list-replicate-def |
version | 1.23 |
description | Definition of the list replicate function |
author | Joe Hurd <joe@gilith.com> |
license | HOLLight |
provenance | HOL Light theory extracted on 2011-11-27 |
requires | bool natural |
show | Data.Bool Data.List Number.Natural |
Files
- Package tarball list-replicate-def-1.23.tgz
- Theory file list-replicate-def.thy (included in the package tarball)
Defined Constant
- Data
- List
- replicate
- List
Theorems
⊦ ∀x. replicate 0 x = []
⊦ ∀x n. replicate (suc n) x = x :: replicate n x
Input Type Operators
- →
- bool
- Data
- List
- list
- List
- Number
- Natural
- natural
- Natural
Input Constants
- =
- select
- Data
- Bool
- ∀
- ∧
- ⇒
- ∃
- ∃!
- T
- List
- ::
- []
- Bool
- Number
- Natural
- suc
- zero
- Natural
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. (∃) P ∧ ∀x y. P x ∧ P y ⇒ x = y
⊦ ∀e f. ∃!fn. fn 0 = e ∧ ∀n. fn (suc n) = f (fn n) n