AFTD Auto-Formalizing Theoretical Domains

op309_common_host_graph

def

The simple graph joining distinct port classes exactly when they share a host component.

Statement

def op309_common_host_graph {A B : Type*} (I : SimpleGraph (A ⊕ B)) : SimpleGraph A where
  Adj a a'
Source
OP-309 overlap-aware port incidence selection, IN-1099.
Verified
20 Nov 2026
Axioms
none listed
Used by 4

Lean source view module on GitHub

def op309_common_host_graph {A B : Type*} (I : SimpleGraph (A ⊕ B)) : SimpleGraph A where
  Adj a a' := a ≠ a' ∧ ∃ b : B, I.Adj (.inl a) (.inr b) ∧ I.Adj (.inl a') (.inr b)
  symm := ⟨fun _ _ h => ⟨h.1.symm, h.2.choose, h.2.choose_spec.2, h.2.choose_spec.1⟩⟩
  loopless := ⟨fun a h => h.1 rfl⟩
See it in the graphDiscuss this resultChallenge it