TheoremconOK_of
Statement
theorem conOK_of {C : Ctx} {Γ : Shape} (hA : Abs C Γ) {lc : LongId} {σ : Scheme} {k : Nat}
(hl : C.lookupVal lc = some (σ, .c)) (hk : ∀ n, ArityIs σ n → k = n) : conOK Γ lc k = trueProof
by
obtain ⟨a, ha, hv⟩ := hA lc _ hl
unfold conOK
rw [ha]
cases a with
| none => rfl
| some n => simp [hk n (hv n rfl rfl)]Proved with tactics, which Lean expands into a proof term that its kernel checks.
Used by
In StandardElmMech/Stat/RefuseScope.lean: Refusals by scope, constructor arity and imports, for one module and for a module after a helper (scopeFailB).
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.