Theoremclasses_cover
Statement
theorem classes_cover {x : Nat} (hx : x < n) : ∃ c ∈ classes n r, x ∈ cProof
by
rw [classes_eq]
exact (foldl_inv (List.range n) [] (fun a ha => List.mem_range.mp ha) ⟨by simp, List.Pairwise.nil⟩).2.1 x
(.inr (List.mem_range.mpr hx))Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
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.