Elm Exactly

Theoremnodup_append_disjoint

StandardElmMech/Mod/Good.lean:173, Top-level declarations · term proof

Statement

theorem nodup_append_disjoint {l1 l2 : List String} (h : (l1 ++ l2).Nodup) {a : String}
    (h1 : a ∈ l1) : a ∉ l2

Proof

fun h2 => (List.nodup_append.mp h).2.2 a h1 a h2 rfl

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

Used by

In StandardElmMech/Mod/Good.lean: The property of interfaces (Interface.Good): ME0 and the harness have it (ME0_good), a top-level declaration with distinct bound names infers an interface with it (EvalTopDec.good), a header's exposing list keeps it (EvalHeader.good), and so does every interface a module puts in the basis (EvalModule.good).

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.