Elm Exactly

TheoremcanonInh_sub

StandardElmMech/Stat/PatternsProof.lean:243, A97: every type has an inhabitant · tactic proof

Statement

theorem canonInh_sub (tbl : ConTable) (τ : Ty) (i : Nat) (hi : i < (canonNode tbl τ).2.length) :
    (canonInh tbl τ).sub i = canonInh tbl ((canonNode tbl τ).2[i])

Proof

by
  apply Inh.ext; intro p
  simp [Inh.sub, canonInh, canonAt, List.getElem?_eq_getElem hi]

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

Theorems it uses

Used by

In StandardElmMech/Stat/PatternsProof.lean: The pattern decider is correct: every type is inhabited (inhabited), useful_spec, exhDec_sound, irrDec_sound.

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.