AFTD Auto-Formalizing Theoretical Domains

factorcritical_twins_forced_residual_edge_is_bridge

theoremverified

In a 2k-factor-critical graph, a forced residual matching edge incident to one of two vertices with identical neighborhoods outside the pair is a bridge when the other twin lies outside the residual, whether the twins are adjacent or not.

Statement

theorem factorcritical_twins_forced_residual_edge_is_bridge (k n : ℕ) (G : SimpleGraph (Fin n)) (hcrit : is_k_factor_critical G (2*k)) (R : Finset (Fin n)) (hR : R.card + 2*k = n) (x y z : Fin n) (hxy : x ≠ y) (htwin : ∀ a, a ≠ x → a ≠ y → (G.Adj x a ↔ G.Adj y a)) (hx : x ∈ R) (hz : z ∈ R) (hy : y ∉ R) (hxz : G.Adj x z) (hforced : ¬ ∃ P : ((G.induce {a | a ∈ R}).deleteEdges {s(⟨x,hx⟩,⟨z,hz⟩)}).Subgraph, P.IsPerfectMatching) : ¬ ((G.induce {a | a ∈ R}).deleteEdges {s(⟨x,hx⟩,⟨z,hz⟩)}).Reachable ⟨x,hx⟩ ⟨z,hz⟩
Source
OP-1957; unrestricted factor-critical twin bridge route, extending the proved false-twin residual lemma.
Verified
22 Nov 2026
Axioms
Classical.choiceQuot.soundpropext
Built on 5

The proof, explained

The theorem reduces the problem in a 2k-factor-critical graph G to the 1-factor-critical case. Adding the twin vertex y to the residual set R yields S = R ∪ {y}, whose induced subgraph D = G[S] is 1-factor-critical by factorcritical_induce_one_after_vertex_restriction. The residual graph G[R] \ {xz} is isomorphic to (D \ {y}) \ {xz}, so the edge {x, z} is forced in D \ {y}. Applying factorcritical_twins_forced_edge_is_bridge shows that {x, z} is a bridge in D \ {y}, which pulls back across the isomorphism to show that {x, z} is a bridge in G[R].

  1. The induced subgraph D = G[S] on S = R ∪ {y} is 1-factor-critical.

    Let S = R ∪ {y} and let D = G[S] be the induced subgraph. Because y ∉ R, we have |S| = |R| + 1. Adding 2k gives |S| + 2k = (|R| + 2k) + 1 = n + 1 = |V(G)| + 1. By factorcritical_induce_one_after_vertex_restriction, inducing a 2k-factor-critical graph on a subset of size |V(G)| - 2k + 1 produces a 1-factor-critical graph, so D is 1-factor-critical.

    lines 2–11

    uses factorcritical_induce_one_after_vertex_restriction

      classical
      let S := insert y R
      let D := G.induce {a | a ∈ S}
      let x' : {a : Fin n // a ∈ S} := ⟨x, by simp [S,hx]⟩
      let y' : {a : Fin n // a ∈ S} := ⟨y, by simp [S]⟩
      let z' : {a : Fin n // a ∈ S} := ⟨z, by simp [S,hz]⟩
      have hS : S.card + 2*k = Fintype.card (Fin n) + 1 := by
        simp [S, hy]
        omega
      have hDcrit : is_k_factor_critical D 1 := factorcritical_induce_one_after_vertex_restriction G (2*k) hcrit S hS
  2. The vertices x' and y' in D are distinct twins, and z' ≠ y'.

    Since x ≠ y, their representatives x' and y' in D are distinct (using congrArg and Subtype.ext). Likewise, because z ∈ R and y ∉ R, we have z ≠ y and thus z' ≠ y'. For any other vertex a in D, adjacency in D is identical to adjacency in G. Because x and y are twins in G with respect to all other vertices, x' and y' are twins in D.

    lines 12–20

    uses congrArg, Subtype.ext

      have hxy' : x' ≠ y' := by intro h; exact hxy (congrArg Subtype.val h)
      have hzy : z ≠ y := by intro h; exact hy (h ▸ hz)
      have hzy' : z' ≠ y' := by intro h; exact hzy (congrArg Subtype.val h)
      have htwin' : ∀ a, a ≠ x' → a ≠ y' → (D.Adj x' a ↔ D.Adj y' a) := by
        intro a hax hay
        change G.Adj x a.val ↔ G.Adj y a.val
        apply htwin a.val
        · intro he; apply hax; exact Subtype.ext he
        · intro he; apply hay; exact Subtype.ext he
  3. The residual graph G[R] \ {xz} is isomorphic to (D \ {y'}) \ {x'z'} via an isomorphism sending x to x' and z to z'.

    By in1088_induce_insert_delete_iso, because y ∉ R, the induced subgraph G[R] is canonically isomorphic to D \ {y'} via an isomorphism e₀, and by Subtype.ext e₀ maps x to x' and z to z'. By in1088_iso_delete_edge, deleting the edge {x, z} corresponds across e₀ to deleting {x', z'}, yielding an isomorphism e between G[R] \ {xz} and (D \ {y'}) \ {x'z'}.

    lines 21–30

    uses in1088_induce_insert_delete_iso, Subtype.ext, in1088_iso_delete_edge

      let e0 := in1088_induce_insert_delete_iso G R y hy
      have heX : e0 ⟨x,hx⟩ = (⟨x',hxy'⟩ : {a : {a : Fin n // a ∈ S} // a ≠ y'}) := by
        apply Subtype.ext
        apply Subtype.ext
        rfl
      have heZ : e0 ⟨z,hz⟩ = (⟨z',hzy'⟩ : {a : {a : Fin n // a ∈ S} // a ≠ y'}) := by
        apply Subtype.ext
        apply Subtype.ext
        rfl
      let e := in1088_iso_delete_edge _ _ e0 ⟨x,hx⟩ ⟨z,hz⟩
  4. The edge {x', z'} is forced in D \ {y'}, so (D \ {y'}) \ {x'z'} has no perfect matching.

    Suppose, for contradiction, that (D \ {y'}) \ {x'z'} had a perfect matching. Transporting this matching back across the isomorphism e⁻¹ using perfect_matching_transport_graph_iso would yield a perfect matching in G[R] \ {xz}, contradicting the hypothesis (hforced) that {x, z} is forced in G[R].

    lines 31–39

    uses perfect_matching_transport_graph_iso

      have hforcedD : ¬ ∃ P : ((D.induce {a | a ≠ y'}).deleteEdges
          {s(⟨x',hxy'⟩,⟨z',hzy'⟩)}).Subgraph, P.IsPerfectMatching := by
        intro h
        apply hforced
        apply perfect_matching_transport_graph_iso _ _ e.symm
        change ∃ P : ((D.induce {a | a ≠ y'}).deleteEdges
          {s(e0 ⟨x,hx⟩,e0 ⟨z,hz⟩)}).Subgraph, P.IsPerfectMatching
        rw [heX, heZ]
        exact h
  5. The edge {x', z'} is a bridge in D \ {y'}, so x' and z' are unreachable in (D \ {y'}) \ {x'z'}.

    We apply the 1-factor-critical twin theorem factorcritical_twins_forced_edge_is_bridge to the 1-factor-critical graph D, the twins x' and y', and the forced edge {x', z'}. It concludes that x' and z' cannot be connected by any path in (D \ {y'}) \ {x'z'}.

    line 40

    uses factorcritical_twins_forced_edge_is_bridge

      have hbridge := factorcritical_twins_forced_edge_is_bridge D hDcrit x' y' z' hxy' htwin' hzy' hxz hforcedD
  6. The edge {x, z} is a bridge in G[R], so x and z are unreachable in G[R] \ {xz}.

    Suppose, for contradiction, that x and z were reachable in G[R] \ {xz}. Pushing that path forward along the graph homomorphism induced by the isomorphism e would produce a path between x' and z' in (D \ {y'}) \ {x'z'}, contradicting the fact that {x', z'} is a bridge in D \ {y'}.

    lines 41–47

      intro hreach
      apply hbridge
      have hh := hreach.map e.toHom
      change ((D.induce {a | a ≠ y'}).deleteEdges
        {s(e0 ⟨x,hx⟩,e0 ⟨z,hz⟩)}).Reachable (e0 ⟨x,hx⟩) (e0 ⟨z,hz⟩) at hh
      rw [heX, heZ] at hh
      exact hh
factorcritical_induce_one_after_vertex_restriction
In a k-factor-critical graph G, the subgraph induced by any vertex subset S satisfying |S| + k = |V(G)| + 1 is 1-factor-critical.
congrArg
Equal arguments to a function produce equal results.
Subtype.ext
Two elements of a subtype are equal if their underlying values are equal.
in1088_induce_insert_delete_iso
When y ∉ R, the induced subgraph G[R] is isomorphic to the subgraph obtained by deleting y from G[R ∪ {y}].
in1088_iso_delete_edge
A graph isomorphism between two graphs induces an isomorphism between the graphs obtained by deleting a corresponding edge.
perfect_matching_transport_graph_iso
A graph isomorphism transports any perfect matching from the domain graph to a perfect matching in the target graph.
factorcritical_twins_forced_edge_is_bridge
In a 1-factor-critical graph with twins x and y, if an edge incident to x is forced in the graph obtained by deleting y, then that edge is a bridge in that deleted graph.

Written by a model (gemini-3.8-flash) from the Lean proof and the goal states Lean reported at each step. Lean verified the proof; this explanation is a reading aid and is not itself machine-checked.

Lean source view module on GitHub

theorem factorcritical_twins_forced_residual_edge_is_bridge (k n : ℕ) (G : SimpleGraph (Fin n)) (hcrit : is_k_factor_critical G (2*k)) (R : Finset (Fin n)) (hR : R.card + 2*k = n) (x y z : Fin n) (hxy : x ≠ y) (htwin : ∀ a, a ≠ x → a ≠ y → (G.Adj x a ↔ G.Adj y a)) (hx : x ∈ R) (hz : z ∈ R) (hy : y ∉ R) (hxz : G.Adj x z) (hforced : ¬ ∃ P : ((G.induce {a | a ∈ R}).deleteEdges {s(⟨x,hx⟩,⟨z,hz⟩)}).Subgraph, P.IsPerfectMatching) : ¬ ((G.induce {a | a ∈ R}).deleteEdges {s(⟨x,hx⟩,⟨z,hz⟩)}).Reachable ⟨x,hx⟩ ⟨z,hz⟩ := by  classical  let S := insert y R  let D := G.induce {a | a ∈ S}  let x' : {a : Fin n // a ∈ S} := ⟨x, by simp [S,hx]⟩  let y' : {a : Fin n // a ∈ S} := ⟨y, by simp [S]⟩  let z' : {a : Fin n // a ∈ S} := ⟨z, by simp [S,hz]⟩  have hS : S.card + 2*k = Fintype.card (Fin n) + 1 := by    simp [S, hy]    omega  have hDcrit : is_k_factor_critical D 1 := factorcritical_induce_one_after_vertex_restriction G (2*k) hcrit S hS  have hxy' : x' ≠ y' := by intro h; exact hxy (congrArg Subtype.val h)  have hzy : z ≠ y := by intro h; exact hy (h ▸ hz)  have hzy' : z' ≠ y' := by intro h; exact hzy (congrArg Subtype.val h)  have htwin' : ∀ a, a ≠ x' → a ≠ y' → (D.Adj x' a ↔ D.Adj y' a) := by    intro a hax hay    change G.Adj x a.val ↔ G.Adj y a.val    apply htwin a.val    · intro he; apply hax; exact Subtype.ext he    · intro he; apply hay; exact Subtype.ext he  let e0 := in1088_induce_insert_delete_iso G R y hy  have heX : e0 ⟨x,hx⟩ = (⟨x',hxy'⟩ : {a : {a : Fin n // a ∈ S} // a ≠ y'}) := by    apply Subtype.ext    apply Subtype.ext    rfl  have heZ : e0 ⟨z,hz⟩ = (⟨z',hzy'⟩ : {a : {a : Fin n // a ∈ S} // a ≠ y'}) := by    apply Subtype.ext    apply Subtype.ext    rfl  let e := in1088_iso_delete_edge _ _ e0 ⟨x,hx⟩ ⟨z,hz⟩  have hforcedD : ¬ ∃ P : ((D.induce {a | a ≠ y'}).deleteEdges      {s(⟨x',hxy'⟩,⟨z',hzy'⟩)}).Subgraph, P.IsPerfectMatching := by    intro h    apply hforced    apply perfect_matching_transport_graph_iso _ _ e.symm    change ∃ P : ((D.induce {a | a ≠ y'}).deleteEdges      {s(e0 ⟨x,hx⟩,e0 ⟨z,hz⟩)}).Subgraph, P.IsPerfectMatching    rw [heX, heZ]    exact h  have hbridge := factorcritical_twins_forced_edge_is_bridge D hDcrit x' y' z' hxy' htwin' hzy' hxz hforcedD  intro hreach  apply hbridge  have hh := hreach.map e.toHom  change ((D.induce {a | a ≠ y'}).deleteEdges    {s(e0 ⟨x,hx⟩,e0 ⟨z,hz⟩)}).Reachable (e0 ⟨x,hx⟩) (e0 ⟨z,hz⟩) at hh  rw [heX, heZ] at hh  exact hh
See it in the graphDiscuss this resultChallenge it