Elm Exactly

TheoremaliasOrderAux_eq

StandardElmMech/Src/AliasOrderProof.lean:35 · term proof

Statement

theorem aliasOrderAux_eq (k : Nat) (placed rest : List AliasD) :
    aliasOrderAux all (k + 1) placed rest =
      match rest.find? (aReady all placed) with
      | some a => aliasOrderAux all k (placed ++ [a]) (rest.filter (·.1 != a.1))
      | none => placed ++ rest

Proof

rfl

Proved by a term, which Lean's kernel checks directly.

Used by

In StandardElmMech/Src/AliasOrderProof.lean: aliasOrder_valid: the canonical order of aliases is one the book allows.

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.