Elm Exactly

Theoremkeys_append

StandardElmMech/Stat/CopyLoop.lean:170, The invariant · tactic proof

Statement

theorem keys_append (made : List (Assignment × List D.Def)) (rs : List (Assignment × Spec (List D.Def))) :
    (addMade made rs).map (·.1) = made.map (·.1) ++ rs.map (·.1)

Proof

by
  simp [addMade, Function.comp_def]

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

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.