TheoremcoversArgs_iff
Statement
theorem coversArgs_iff : ∀ (args : List PatN) (h : Inh) (i : Nat),
PatN.coversArgs args h i ↔ RowCovers args ((List.range' i args.length).map h.sub)
| [], _, _ => by simp [PatN.coversArgs, RowCovers]
| p :: ps, h, i => by
simp only [PatN.coversArgs, List.length_cons, List.range'_succ, List.map_cons, RowCovers]
rw [coversArgs_iff ps h (i + 1)]Proof
Proved by a term, which Lean's kernel checks directly.
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.