Elm Exactly

Theorema38_shared_qualifier_merge

StandardElmMech/Mod/Rulings.lean:39 · term proof

A38: two imports that give the same qualifier merge under it (sec:dynamic-modules-merge).

Statement

theorem a38_shared_qualifier_merge :
    ∃ E, EvalImports B38 [⟨"A", "Q", none⟩, ⟨"B", "Q", none⟩] E ∧
         E.lookup ⟨some "Q", "a"⟩ = some (.int 1) ∧ E.lookup ⟨some "Q", "b"⟩ = some (.int 2)

Proof

⟨_, evImports_sound rfl, rfl, rfl⟩

Proved by a term, which Lean's kernel checks directly.

Theorems it uses

About ruling A38 of the book, where the implementations disagreed or were silent and the definition decides.

In StandardElmMech/Mod/Rulings.lean: A82, A38 and A28 on programs written by hand.

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.