AFTD Auto-Formalizing Theoretical Domains

op309_canonical_padded_port_classes

def

Every equality between two unselected original edge ports is generated by a chain of equalities occurring within selected-edge components, so no extra global identification is imposed.

Statement

def op309_canonical_padded_port_classes
    {V A : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] (R : Finset G.edgeSet)
    (q : Sum G.edgeSet (V × Fin 3) → A) : Prop
Source
OP-309 canonical quotient; retain exactly transitive closures of equalities within selected components.
Verified
26 Nov 2026
Axioms
none listed
Built on 1
Used by 3

Lean source view module on GitHub

def op309_canonical_padded_port_classes
    {V A : Type*} [Fintype V] [DecidableEq V]
    (G : SimpleGraph V) [DecidableRel G.Adj] (R : Finset G.edgeSet)
    (q : Sum G.edgeSet (V × Fin 3) → A) : Prop :=
  ∀ e f : G.edgeSet, e ∉ R → f ∉ R → q (.inl e) = q (.inl f) →
    Relation.ReflTransGen
      (fun x y : G.edgeSet =>
        x ∉ R ∧ y ∉ R ∧ q (.inl x) = q (.inl y) ∧
        ∃ a b : V, a ∈ x.1 ∧ b ∈ y.1 ∧
          (R.filter fun g => a ∈ g.1).Nonempty ∧
          (R.filter fun g => b ∈ g.1).Nonempty ∧
          (op309_selected_edge_graph G R).Reachable a b) e f
See it in the graphDiscuss this resultChallenge it