TheoremreadyList_get
Statement
theorem readyList_get : ∀ (P cs : List (List Nat)), ReadyList n r P cs →
∀ (k : Nat) (hk : k < cs.length), ready n r (P ++ cs.take k) cs[k] = true
| _, [], _, k, hk => by simp at hk
| P, c :: cs, ⟨h1, h2⟩, 0, _ => by simpa using h1
| P, c :: cs, ⟨_, h2⟩, k + 1, hk => by
haveProof
readyList_get (P ++ [c]) cs h2 k (by simp at hk; omega)
simpa using thisProved by a term, which Lean's kernel checks directly.
Used by
In StandardElmMech/Src/GroupingProof.lean: components_valid: the canonical grouping is one the book allows (ValidNumbering).
A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.