TheoremelabImports_sk
Statement
theorem elabImports_sk (B : SBasis) : (is : List BImport) → (π : ProvMap) →
elabImports B π is = elabImportsSk (fun mid => (FMap.find? B.ME mid).map skI) π is
| [], π => rfl
| i :: is, π => by
simp only [elabImports, elabImportsSk]
cases hI : FMap.find? B.ME i.mod with
| none => rfl
| some I =>
simp only [Option.map_some]
have hq : qualified (i.alias.getD i.mod) I = (domSk (skI I)).map fun x => ⟨some (i.alias.getD i.mod), x⟩Proof
by
rw [dom_sk]; rfl
rw [hq]
cases i.exposing with
| none => exact elabImports_sk B is _
| some el =>
simp only [elabExpList_sk]
cases elabExpListSk i.mod (skI I) el with
| none => rfl
| some NN =>
obtain ⟨N, N'⟩ := NN
exact elabImports_sk B is _Proved with tactics, which Lean expands into a proof term that its kernel checks.
Theorems it uses
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.