TheoremnatLookup_natSet_other
Statement
theorem natLookup_natSet_other {β : Type} (f : List (Nat × β)) (n q : Nat) (e : β) (h : q ≠ n) :
natLookup (natSet f n e) q = natLookup f qProof
by
have hn : (n == q) = false := by simpa using Ne.symm h
simp only [natSet, natLookup, hn]
exact natLookup_filter_ne f n q hProved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
Used by
In StandardElmMech/Prog/Objects.lean: Chapter 9's objects of execution (plan step 5): port environments, processes, configurations, events, SleepReady.
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.