Theoreminv_nodup
Statement
theorem inv_nodup {all : List (List Nat)} (h : Inv n r all) : all.NodupProof
by
have hne := inv_nonempty h
refine List.Pairwise.imp_of_mem (R := Disj) ?_ h.2
intro c d hc _ hcd he
subst he
obtain ⟨x, hx⟩ := List.exists_mem_of_ne_nil c (hne c hc)
exact hcd x hx hxProved 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.