Elm Exactly

TheoremnoDeriv_scope1

StandardElmMech/Stat/RefuseScope.lean:1090, One module: the shape of a concrete import context · tactic proof

Statement

theorem noDeriv_scope1 {B : SBasis} {m : BModule} (h : scope1 B m = true) : NoDeriv B m

Proof

by
  unfold scope1 at h
  cases hC : importCtx B m.imports with
  | none => exact noDeriv_of_imports hC
  | some C =>
    rw [hC] at h
    simp only [Bool.not_eq_true'] at h
    exact noDeriv_of_ctx hC (abs_ctxShape C) h

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

Theorems it uses

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.