Elm Exactly

TheoremrenameSecond_erase

StandardElmMech/Stat/RenameCounterexample.lean:104 · tactic proof

Statement

theorem renameSecond_erase (r : Renaming) (a : AProgram) :
    (renameSecond r a).map AModule.erase = a.map AModule.erase

Proof

by
  match a with
  | [m, n] => simp only [renameSecond, List.map_cons, List.map_nil, AModule.erase_rename]
  | [] | [_] | _ :: _ :: _ :: _ => rfl

Proved with tactics, which Lean expands into a proof term that its kernel checks.

Used by

In StandardElmMech/Stat/RenameCounterexample.lean: Two principal derivations of one program that specialisation once told apart (finding of 2026-11-12), kept as a regression theorem (ce_equal).

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.