Theoremmem_todoOf
Statement
theorem mem_todoOf {pending : List Assignment} {made : List (Assignment × List D.Def)} {a : Assignment} :
a ∈ todoOf pending made ↔ a ∈ pending ∧ a ∉ made.map (·.1)Proof
by
simp only [todoOf, mem_dedupFirst, List.mem_filter, List.mem_map, Bool.not_eq_true',
List.any_eq_false, beq_iff_eq, Prod.exists, exists_and_right, exists_eq_right, not_exists]
constructor
· rintro ⟨h1, h2⟩; exact ⟨h1, fun x hx => h2 _ hx rfl⟩
· rintro ⟨h1, h2⟩; exact ⟨h1, fun p hp e => h2 p.2 (e ▸ hp)⟩Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
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.