Theoremplus_congr
Statement
theorem plus_congr {n : Nat} {r r' : Nat → Nat → Bool} (hr : ∀ a b, a < n → b < n → r a b = r' a b) :
∀ {i j}, Plus n r i j → Plus n r' i jProof
by
intro i j h
induction h with
| step hi hj he => exact .step hi hj (by rw [← hr _ _ hi hj]; exact he)
| trans _ _ ih1 ih2 => exact .trans ih1 ih2Proved with tactics, which Lean expands into a proof term that its kernel checks.
Used by
In StandardElmMech/Src/DerivesTo.lean: The derived forms as the book states them, a relation (DerivesE, DerivesTo), and derive_derivesTo.
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.