odd_components_with_covered_barrier_bound
If a perfect matching extends a partial matching supported on C and X and covering X, then the odd components outside C and X are at most the remaining uncovered C vertices.
Statement
theorem odd_components_with_covered_barrier_bound
(k r : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj]
(C X : Finset (Fin (4*k)))
(P T : G.Subgraph) (hP : P.IsPerfectMatching) (hT : T.IsMatching) (hTP : T ≤ P)
(hTX : (X : Set (Fin (4*k))) ⊆ T.verts)
(hTsub : T.verts ⊆ ((C ∪ X : Finset (Fin (4*k))) : Set (Fin (4*k))))
(hremain : ((C : Set (Fin (4*k))) \ T.verts).ncard = r) :
(G.induce {v | v ∉ C ∧ v ∉ X}).oddComponents.ncard ≤ r- Source
- Exposed-barrier reduction for OP-1957; https://arxiv.org/abs/2611.22690.
- Verified
- 26 Nov 2026
- Axioms
Classical.choiceQuot.soundpropext- Built on 2
- odd_groups_budget_after_forced_matchingOdd anticomplete groups disjoint from a forced matching require distinct matching partners outside the groups and outside the forced…
- induced_component_ambient_vertex_propertiesComponents of an induced graph map injectively to disjoint, anticomplete ambient vertex sets with preserved cardinalities.
- Used by 1
- extendible_balanced_cut_exposed_barrier_odd_boundIf every vertex of an opposite-side set X can be matched to distinct vertices left uncovered by a balanced-side (k−r)-matching, then the…
The proof, explained
The proof applies the matching budget lemma odd_groups_budget_after_forced_matching, which bounds the number of mutually isolated odd components disjoint from a partial matching T ≤ P by the number of remaining vertices outside the components that are not covered by T. The odd components of the induced subgraph G[R] outside C ∪ X satisfy all preconditions: they have odd size, are pairwise disjoint and isolated in R, and avoid T because T is supported only on C ∪ X. Finally, because T covers all of X, the only uncovered vertices outside R are the uncovered vertices of C, which number exactly r.
Define the vertex set R outside C ∪ X and the induced subgraph H = G[R], and identify the finset J of its odd components, satisfying |J| = |H.oddComponents|.
We introduce R = V \ (C ∪ X) and the induced subgraph H = G[R]. We let J be the set of odd components of H represented as a finite set, F be the function mapping each component to its vertices in the ambient graph, and L be R viewed as a finite set. Lemma Set.ncard_eq_toFinset_card' establishes that the cardinality of the finite set J matches the number of odd components of H.
uses
Set.ncard_eq_toFinset_card'set_option maxHeartbeats 4000000 in classical let R : Set (Fin (4*k)) := {v | v ∉ C ∧ v ∉ X} let H := G.induce R let J : Finset H.ConnectedComponent := H.oddComponents.toFinset let F : H.ConnectedComponent → Finset (Fin (4*k)) := in1206_component_vertices G R let L : Finset (Fin (4*k)) := R.toFinset have hJcard : J.card = H.oddComponents.ncard := by dsimp [J] exact (Set.ncard_eq_toFinset_card' H.oddComponents).symm
The odd components in J have odd vertex counts, lie in L, are pairwise disjoint, and have no edges to other vertices in L.
The library lemma induced_component_ambient_vertex_properties provides four structural properties of the induced components: (1) each F(i) has cardinality equal to the component's vertex count, which is odd because i ∈ J; (2) F(i) is contained in R, hence in L; (3) distinct components i ≠ j have disjoint vertex sets F(i) and F(j); and (4) there are no edges in G connecting any vertex u ∈ F(i) to a vertex v ∈ L \ F(i).
uses
induced_component_ambient_vertex_propertieshave hJodd : ∀ i ∈ J, Odd (F i).card := by intro i hi have hiOdd : i ∈ H.oddComponents := by simpa [J] using hi have hc := (induced_component_ambient_vertex_properties G R i i).2.1 rw [hc] exact hiOdd have hJsub : ∀ i ∈ J, F i ⊆ L := by intro i hi v hv have hh := (induced_component_ambient_vertex_properties G R i i).1 hv simpa [L] using hh have hJdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (F i) (F j) := by intro i hi j hj hij exact (induced_component_ambient_vertex_properties G R i j).2.2.1 hij have hJanti : ∀ i ∈ J, ∀ u ∈ F i, ∀ v ∈ L, v ∉ F i → ¬ G.Adj u v := by intro i hi u hu v hv hvnot have hvR : v ∈ R := by simpa [L] using hv exact (induced_component_ambient_vertex_properties G R i i).2.2.2 u hu v hvR hvnot
No vertex of any odd component in J is covered by the matching T.
Suppose u ∈ F(i) were covered by T. By the hypothesis that T.verts ⊆ C ∪ X (hTsub) and Finset.mem_union.mp, u would have to belong to C or to X. However, by induced_component_ambient_vertex_properties, u ∈ R = V \ (C ∪ X), so u ∉ C and u ∉ X, giving a contradiction in either case.
uses
Finset.mem_union.mp,induced_component_ambient_vertex_propertieshave hJfree : ∀ i ∈ J, ∀ u ∈ F i, u ∉ T.verts := by intro i hi u hu huT have huR : u ∈ R := (induced_component_ambient_vertex_properties G R i i).1 hu have huCX := hTsub huT rcases Finset.mem_union.mp huCX with huC | huX · exact huR.1 huC · exact huR.2 huX
The number of odd components |J| is at most the number of vertices outside L not covered by T.
We invoke odd_groups_budget_after_forced_matching using the established properties of the components (contained in L, odd cardinality, pairwise disjoint, mutually isolated in L, and disjoint from T.verts). In any graph where a perfect matching P extends T, every such odd component must send at least one P-edge to an uncovered vertex outside L, ensuring |J| ≤ |{v ∉ L | v ∉ T.verts}|.
uses
odd_groups_budget_after_forced_matchinghave hbudget := odd_groups_budget_after_forced_matching G P T hP hT hTP J F L hJsub hJodd hJdis hJanti hJfreeThe number of vertices outside L not covered by T is exactly r.
We show the set equality {v ∉ L | v ∉ T.verts} = C \ T.verts. A vertex v ∈ T.verts belongs to neither set. If v ∉ T.verts, then v cannot belong to X because T covers all of X (hTX: X ⊆ T.verts). Since L is the complement of C ∪ X, v ∉ L means v ∈ C ∪ X, which together with v ∉ X implies v ∈ C. Using Set.ncard_coe_finset and the hypothesis hremain, the size of this set is r.
uses
Set.ncard_coe_finsethave hcount : ((Finset.univ \ L).filter (fun v => v ∉ T.verts)).card = r := by have heq : (((Finset.univ \ L).filter (fun v => v ∉ T.verts)) : Set (Fin (4*k))) = (C : Set (Fin (4*k))) \ T.verts := by ext v by_cases ht : v ∈ T.verts · simp [ht] · have hnX : v ∉ X := fun hx => ht (hTX hx) simp [L,R,ht,hnX] rw [← Set.ncard_coe_finset,heq,hremain]
The number of odd components of G[R] is at most r.
Substituting |J| = |H.oddComponents| and the count r into the budget inequality yields the required bound |H.oddComponents| ≤ r.
rw [hcount,hJcard] at hbudget exact hbudget
Set.ncard_eq_toFinset_card'- For a finite set s, its set-cardinality s.ncard equals the cardinality of its representation as a finset, s.toFinset.card.
induced_component_ambient_vertex_properties- For an induced subgraph G[R], each connected component's vertex set is a subset of R, its cardinality equals the component's vertex count, distinct components have disjoint vertex sets, and no edge connects a component to the rest of R.
Finset.mem_union.mp- If an element belongs to the union of two finite sets, it belongs to the first or to the second.
odd_groups_budget_after_forced_matching- If a perfect matching P extends a matching T, then any family of pairwise disjoint, mutually isolated odd sets inside L avoiding T.verts has cardinality bounded by the number of vertices outside L not covered by T.
Set.ncard_coe_finset- The set-cardinality of a finset coerced to a set equals its finset cardinality.
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
Choose a tactic — a marked line — to see the goals Lean had before and after it, as in Lean’s infoview. Step with ← → or j k.
theorem odd_components_with_covered_barrier_bound (k r : ℕ) (G : SimpleGraph (Fin (4*k))) [DecidableRel G.Adj] (C X : Finset (Fin (4*k))) (P T : G.Subgraph) (hP : P.IsPerfectMatching) (hT : T.IsMatching) (hTP : T ≤ P) (hTX : (X : Set (Fin (4*k))) ⊆ T.verts) (hTsub : T.verts ⊆ ((C ∪ X : Finset (Fin (4*k))) : Set (Fin (4*k)))) (hremain : ((C : Set (Fin (4*k))) \ T.verts).ncard = r) : (G.induce {v | v ∉ C ∧ v ∉ X}).oddComponents.ncard ≤ r := by set_option maxHeartbeats 4000000 in classical let R : Set (Fin (4*k)) := {v | v ∉ C ∧ v ∉ X} let H := G.induce R let J : Finset H.ConnectedComponent := H.oddComponents.toFinset let F : H.ConnectedComponent → Finset (Fin (4*k)) := in1206_component_vertices G R let L : Finset (Fin (4*k)) := R.toFinset have hJcard : J.card = H.oddComponents.ncard := by dsimp [J] exact (Set.ncard_eq_toFinset_card' H.oddComponents).symm have hJodd : ∀ i ∈ J, Odd (F i).card := by intro i hi have hiOdd : i ∈ H.oddComponents := by simpa [J] using hi have hc := (induced_component_ambient_vertex_properties G R i i).2.1 rw [hc] exact hiOdd have hJsub : ∀ i ∈ J, F i ⊆ L := by intro i hi v hv have hh := (induced_component_ambient_vertex_properties G R i i).1 hv simpa [L] using hh have hJdis : ∀ i ∈ J, ∀ j ∈ J, i ≠ j → Disjoint (F i) (F j) := by intro i hi j hj hij exact (induced_component_ambient_vertex_properties G R i j).2.2.1 hij have hJanti : ∀ i ∈ J, ∀ u ∈ F i, ∀ v ∈ L, v ∉ F i → ¬ G.Adj u v := by intro i hi u hu v hv hvnot have hvR : v ∈ R := by simpa [L] using hv exact (induced_component_ambient_vertex_properties G R i i).2.2.2 u hu v hvR hvnot have hJfree : ∀ i ∈ J, ∀ u ∈ F i, u ∉ T.verts := by intro i hi u hu huT have huR : u ∈ R := (induced_component_ambient_vertex_properties G R i i).1 hu have huCX := hTsub huT rcases Finset.mem_union.mp huCX with huC | huX · exact huR.1 huC · exact huR.2 huX have hbudget := odd_groups_budget_after_forced_matching G P T hP hT hTP J F L hJsub hJodd hJdis hJanti hJfree have hcount : ((Finset.univ \ L).filter (fun v => v ∉ T.verts)).card = r := by have heq : (((Finset.univ \ L).filter (fun v => v ∉ T.verts)) : Set (Fin (4*k))) = (C : Set (Fin (4*k))) \ T.verts := by ext v by_cases ht : v ∈ T.verts · simp [ht] · have hnX : v ∉ X := fun hx => ht (hTX hx) simp [L,R,ht,hnX] rw [← Set.ncard_coe_finset,heq,hremain] rw [hcount,hJcard] at hbudget exact hbudget