TheoremportsDisjointB_sound
Statement
theorem portsDisjointB_sound {B B' : SBasis} (h : portsDisjointB B B' = true) : PortsDisjoint B B'Proof
by
intro x hx
have := List.all_eq_true.mp h x hx
simp only [Bool.and_eq_true, Bool.not_eq_true'] at this
obtain ⟨h1, h2⟩ := this
refine ⟨fun hm => ?_, fun hm => ?_⟩
· have := List.contains_iff_mem.mpr hm; rw [h1] at this; cases this
· have := List.contains_iff_mem.mpr hm; rw [h2] at this; cases thisProved with tactics, which Lean expands into a proof term that its kernel checks.
Used by
In StandardElmMech/Stat/Legal.lean: The master theorems: a program whose inferred derivation checks, meets the further restrictions and gives main a Chapter 9 type is legal, under D11 (legal_of_infer1, legal_of_infer).
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.