Elm Exactly

Theoremclasses_inv

StandardElmMech/Src/GroupingProof.lean:140, The classes partition `range n` · tactic proof

Statement

theorem classes_inv : Inv n r (classes n r)

Proof

by
  rw [classes_eq]
  exact (foldl_inv (List.range n) [] (fun a ha => List.mem_range.mp ha) ⟨by simp, List.Pairwise.nil⟩).1

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.