TheoremallAssignments_complete
Statement
theorem allAssignments_complete : ∀ (a : Assignment), a ∈ allAssignments a.length
| [] => by simp [allAssignments]
| n :: a => by
simp only [List.length_cons, allAssignments, List.mem_flatMap, List.mem_cons, List.not_mem_nil, or_false]
exact ⟨a, allAssignments_complete a, by cases n <;> simp⟩Proof
Proved by a term, which Lean's kernel checks directly.
Used by
In StandardElmMech/Stat/CopyLoop.lean: The copy loop terminates within 2^k + 1 rounds, makes the least set of copies closed under requests, at most 2^k (copyLoop_fuel, copyLoop_least, copies_le_pow).
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.