Theoremexists_idx
The index of an alias of a list with distinct names.
Statement
theorem exists_idx {a : AliasD} (h : a ∈ all) : ∃ i, ∃ hi : i < all.length, all[i] = aProof
List.getElem_of_mem hProved 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.