| | @@ -0,0 +1,76 @@ |
| 1 | +import ErdosSwarm.Erdos530Gap.Kernel |
| 2 | + |
| 3 | +/-! |
| 4 | +# Deletions outside a vertex-cover kernel |
| 5 | + |
| 6 | +The deterministic estimate in §3 of `experiments/erdos530/upper-canonical-deletion/NOTES.md` |
| 7 | +uses a single kernel for every deletion set. The vertices of the kernel outside a surviving |
| 8 | +independent set still cover the induced graph on the kernel. |
| 9 | +-/ |
| 10 | + |
| 11 | +namespace ErdosSwarm.Erdos530Gap |
| 12 | + |
| 13 | +open Finset SimpleGraph |
| 14 | + |
| 15 | +/-- Complementation takes a maximum independent set to a minimum vertex cover. -/ |
| 16 | +private theorem indepNum_add_vertexCoverNum {V : Type*} [Fintype V] (G : SimpleGraph V) : |
| 17 | + G.indepNum + G.vertexCoverNum.toNat = Fintype.card V := by |
| 18 | + classical |
| 19 | + obtain ⟨I, hI, hIcard⟩ := G.exists_isNIndepSet_indepNum |
| 20 | + have hc : G.IsVertexCover (↑(Iᶜ) : Set V) := by |
| 21 | + simpa only [coe_compl, isVertexCover_compl] using hI |
| 22 | + have hmin : G.vertexCoverNum.toNat ≤ (Iᶜ).card := |
| 23 | + ENat.toNat_le_of_le_natCast (by |
| 24 | + simpa only [Set.encard_coe_eq_coe_finsetCard] using hc.vertexCoverNum_le) |
| 25 | + obtain ⟨C, hCcard, hC⟩ := G.vertexCoverNum_exists |
| 26 | + have hi : G.IsIndepSet (↑(C.toFinsetᶜ) : Set V) := by |
| 27 | + simpa only [coe_compl, Set.coe_toFinset, isIndepSet_compl_iff_isVertexCover] using hC |
| 28 | + have hmax := hi.card_le_indepNum |
| 29 | + rw [Set.encard_eq_coe_toFinset_card C] at hCcard |
| 30 | + have hsize : C.toFinset.card = G.vertexCoverNum.toNat := by |
| 31 | + simpa using congrArg ENat.toNat hCcard |
| 32 | + have := card_compl_add_card I |
| 33 | + have := card_compl_add_card C.toFinset |
| 34 | + omega |
| 35 | + |
| 36 | +/-- One kernel of size at most twice the cover number works for every deletion set. |
| 37 | +Each deleted vertex outside the kernel lowers the upper bound on a surviving independent |
| 38 | +set by one. -/ |
| 39 | +theorem exists_deletion_kernel (G : SimpleGraph ℕ) (U : Finset ℕ) : |
| 40 | + ∃ W ⊆ U, W.card ≤ 2 * (U.card - (G.induce (U : Set ℕ)).indepNum) ∧ |
| 41 | + ∀ D J : Finset ℕ, J ⊆ U \ D → G.IsIndepSet (J : Set ℕ) → |
| 42 | + J.card + (D ∩ (U \ W)).card ≤ (G.induce (U : Set ℕ)).indepNum := by |
| 43 | + classical |
| 44 | + let H := G.induce (U : Set ℕ) |
| 45 | + obtain ⟨K, hsmall, hkernel⟩ := exists_vertexCover_kernel H |
| 46 | + let W := K.map (Function.Embedding.subtype _) |
| 47 | + have hsum : H.indepNum + H.vertexCoverNum.toNat = U.card := by |
| 48 | + exact (indepNum_add_vertexCoverNum H).trans (Fintype.card_coe U) |
| 49 | + refine ⟨W, K.map_subtype_subset, ?_, ?_⟩ |
| 50 | + · change W.card ≤ 2 * (U.card - H.indepNum) |
| 51 | + simpa only [W, card_map, ← hsum, Nat.add_sub_cancel_left] using hsmall |
| 52 | + intro D J hJ hind |
| 53 | + let outside := D ∩ (U \ W) |
| 54 | + have hdisj : Disjoint J outside := disjoint_left.mpr fun _ hx ha => |
| 55 | + (mem_sdiff.mp (hJ hx)).2 (mem_inter.mp ha).1 |
| 56 | + have hsub : J ∪ outside ⊆ U := |
| 57 | + union_subset (hJ.trans sdiff_subset) (inter_subset_right.trans sdiff_subset) |
| 58 | + -- The kernel vertices outside J form a cover disjoint from J and the outside deletions. |
| 59 | + let e : (H.induce (K : Set U)) ↪g G := |
| 60 | + (Embedding.induce (K : Set U)).trans (Embedding.induce (U : Set ℕ)) |
| 61 | + have hc := (isVertexCover_compl.mpr hind).preimage e |
| 62 | + have hmap : Set.MapsTo e (e ⁻¹' (J : Set ℕ)ᶜ) (↑(U \ (J ∪ outside)) : Set ℕ) := by |
| 63 | + intro v hv |
| 64 | + have hvW : e v ∈ W := mem_map_of_mem _ v.property |
| 65 | + exact mem_sdiff.mpr ⟨v.val.property, fun hx => (mem_union.mp hx).elim hv |
| 66 | + (fun ha => (mem_sdiff.mp (mem_inter.mp ha).2).2 hvW)⟩ |
| 67 | + have hbound : H.vertexCoverNum.toNat ≤ (U \ (J ∪ outside)).card := by |
| 68 | + apply ENat.toNat_le_of_le_natCast |
| 69 | + rw [← hkernel, ← Set.encard_coe_eq_coe_finsetCard] |
| 70 | + exact hc.vertexCoverNum_le.trans (Set.encard_le_encard_of_injOn hmap e.injective.injOn) |
| 71 | + have hcount := card_sdiff_add_card_eq_card hsub |
| 72 | + rw [card_union_of_disjoint hdisj] at hcount |
| 73 | + change J.card + outside.card ≤ H.indepNum |
| 74 | + omega |
| 75 | + |
| 76 | +end ErdosSwarm.Erdos530Gap |