Theoremnodup_dedupFirst
Statement
theorem nodup_dedupFirst {α : Type} [DecidableEq α] : ∀ (l : List α), (dedupFirst l).Nodup
| [] => List.nodup_nil
| y :: ys => by
simp only [dedupFirst]
refine List.nodup_cons.mpr ⟨?_, (nodup_dedupFirst ys).filter _⟩
simpProof
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.