TheoremportRowB_map
Statement
theorem portRowB_map {f : TyName → TyName} (hfix : ∀ t ∈ fixedNames, f t = t) :
∀ ρ, portRowB ρ = true → portRowB (mapRow f ρ) = true
| [], _ => rfl
| (l, τ) :: rest, h => by
simp only [portRowB, Bool.and_eq_true] at h
simp only [mapRow, portRowB, Bool.and_eq_true]
exact ⟨portB_map hfix τ h.1, portRowB_map hfix rest h.2⟩Proof
Proved by a term, which Lean's kernel checks directly.
Used by
In StandardElmMech/Stat/RefuseTypes.lean: Refusals by type expressions (aliases, constructor arguments, annotations, ports) and by the type of main (typesFailB, mainFailB), for every choice of generated names and variable sorts.
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.