Theoreminv_perm
Statement
theorem inv_perm {l1 l2 : List (List Nat)} (hp : l1.Perm l2) (h : Inv n r l1) : Inv n r l2Proof
⟨fun c hc => h.1 c (hp.mem_iff.mpr hc), (hp.pairwise_iff (fun {_ _} => disj_symm)).mp h.2⟩Proved by a term, which Lean's kernel checks directly.
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.