Buckets:
| import OAI.Combinatorics.CliqueFree.IndependentSet | |
| namespace OAI | |
| noncomputable section | |
| open scoped BigOperators | |
| open Finset | |
| attribute [local instance] Classical.propDecidable | |
| namespace CliqueFreeIndependence.WeightedGraph | |
| universe u v | |
| variable {V : Type u} [Fintype V] | |
| lemma log_le_one_add_quarter {t : ℝ} (ht : 0 < t) : Real.log t ≤ 1+t/4 := by | |
| have h4 : Real.log 4 ≤ 2 := by | |
| have h2 := Real.log_le_sub_one_of_pos (by norm_num : (0 : ℝ) < 2) | |
| have he : Real.log 4 = 2*Real.log 2 := by | |
| rw [show (4 : ℝ) = 2^2 by norm_num, Real.log_pow] | |
| norm_num | |
| linarith | |
| have hh := Real.log_le_sub_one_of_pos (div_pos ht (by norm_num : (0 : ℝ) < 4)) | |
| rw [Real.log_div ht.ne' (by norm_num : (4 : ℝ) ≠ 0)] at hh | |
| linarith | |
| lemma neighborMass_const (G : SimpleGraph V) (p : ℝ) (v : V) : | |
| neighborMass G (fun _ ↦ p) v = (G.degree v : ℝ)*p := by | |
| simp only [neighborMass,mass,sum_const,nsmul_eq_mul,card_neighbors] | |
| lemma edgeMass_const_le (G : SimpleGraph V) {Δ : ℝ} | |
| (hdeg : ∀ v, (G.degree v : ℝ) ≤ Δ) (p : ℝ) : | |
| edgeMass G (fun _ ↦ p) ≤ (Fintype.card V : ℝ)*Δ*p^2/2 := by | |
| have hs := sum_le_sum (s := univ) fun v _ ↦ mul_le_mul_of_nonneg_right (hdeg v) (sq_nonneg p) | |
| simp only [sum_const,card_univ,nsmul_eq_mul] at hs | |
| have he := edgeForm_self G (fun _ ↦ p) | |
| rw [edgeForm_neighbor] at he | |
| simp only [neighborMass_const] at he | |
| have he' : (∑ u, p*((G.degree u : ℝ)*p)) = ∑ u, (G.degree u : ℝ)*p^2 := by | |
| apply sum_congr rfl | |
| intro u _ | |
| ring | |
| rw [he'] at he | |
| nlinarith | |
| lemma potential_const_lower (G : SimpleGraph V) {Δ : ℝ} (hΔ : 1 < Δ) | |
| (hdeg : ∀ v, (G.degree v : ℝ) ≤ Δ) : | |
| (Fintype.card V : ℝ)*(Real.log Δ)^2/(4*Δ) ≤ | |
| potential G (fun _ ↦ Real.log Δ / Δ) := by | |
| have hΔpos : 0 < Δ := lt_trans zero_lt_one hΔ | |
| have ht : 0 < Real.log Δ := Real.log_pos hΔ | |
| have hp : 0 < Real.log Δ / Δ := div_pos ht hΔpos | |
| have hlog := log_le_one_add_quarter ht | |
| have hhe : Δ*(Real.log Δ/Δ) = Real.log Δ := by field_simp | |
| have hterm : Real.log Δ/4 ≤ 1-Real.log (Real.log Δ/Δ)-Δ*(Real.log Δ/Δ)/2 := by | |
| rw [Real.log_div ht.ne' hΔpos.ne', hhe] | |
| linarith | |
| have hc : 0 ≤ (Fintype.card V : ℝ) := Nat.cast_nonneg _ | |
| have hmul := mul_le_mul_of_nonneg_left hterm (mul_nonneg hc hp.le) | |
| have he := edgeMass_const_le G hdeg (Real.log Δ/Δ) | |
| simp only [potential,vertexPotential,sum_const,card_univ,nsmul_eq_mul] | |
| have heq : (Fintype.card V : ℝ)*(Real.log Δ)^2/(4*Δ) = | |
| (Fintype.card V : ℝ)*(Real.log Δ/Δ)*(Real.log Δ/4) := by ring | |
| rw [heq] | |
| nlinarith | |
| /-- The quantitative maximum-degree independence bound. -/ | |
| lemma maximum_degree_independence (k : ℕ) {B Δ : ℝ} (hB : 0 ≤ B) (hΔ : 3 ≤ Δ) | |
| (htri : ∀ {U : Type u} [Fintype U] (H : SimpleGraph U) (w : U → ℝ), | |
| IsOptimizer H w → H.CliqueFree (k+2) → triangleMass H w ≤ B * edgeMass H w) | |
| (G : SimpleGraph V) (hf : G.CliqueFree (k+2)) (hdeg : ∀ v, (G.degree v : ℝ) ≤ Δ) : | |
| (Fintype.card V : ℝ)*Real.log Δ/(4*(3+3*B/2)*Δ) ≤ (G.indepNum : ℝ) := by | |
| have hΔpos : 0 < Δ := by linarith | |
| have ht : 0 < Real.log Δ := Real.log_pos (by linarith) | |
| have hD : 0 < 3+3*B/2 := by positivity | |
| obtain ⟨I,hI,hIp⟩ := maximum_degree_potential_bound k hB hΔ htri G hf hdeg | |
| have hupper := hIp (fun _ ↦ Real.log Δ/Δ) (fun _ ↦ (div_pos ht hΔpos).le) | |
| have hlower := potential_const_lower G (by linarith : 1 < Δ) hdeg | |
| have hc : (I.card : ℝ) ≤ G.indepNum := Nat.cast_le.2 hI.card_le_indepNum | |
| have hfinal := hupper.trans (mul_le_mul_of_nonneg_left hc (mul_pos hD ht).le) | |
| have hbound := hlower.trans hfinal | |
| apply (mul_le_mul_iff_left₀ (mul_pos hD ht)).1 | |
| convert hbound using 1 <;> field_simp | |
| lemma indepNum_induce_le (G : SimpleGraph V) (A : Finset V) : | |
| (G.induce (A : Set V)).indepNum ≤ G.indepNum := by | |
| classical | |
| obtain ⟨I,hI⟩ := (G.induce (A : Set V)).exists_isNIndepSet_indepNum | |
| have h := (indepSet_image_induce G A I hI.isIndepSet).card_le_indepNum | |
| simpa only [card_map,hI.card_eq] using h | |
| lemma degree_cutoff_card (G : SimpleGraph V) {d : ℝ} (hd : 0 < d) | |
| (hsum : (∑ v, (G.degree v : ℝ)) = (Fintype.card V : ℝ)*d) : | |
| (Fintype.card V : ℝ)/2 ≤ ((univ.filter fun v ↦ (G.degree v : ℝ) ≤ 2*d).card : ℝ) := by | |
| classical | |
| let A : Finset V := univ.filter fun v ↦ (G.degree v : ℝ) ≤ 2*d | |
| have hv (v : V) (h : v ∈ Aᶜ) : 2*d ≤ (G.degree v : ℝ) := by | |
| have hh : ¬(G.degree v : ℝ) ≤ 2*d := by simpa [A] using h | |
| exact le_of_lt (lt_of_not_ge hh) | |
| have hlow := sum_le_sum (s := Aᶜ) fun v h ↦ hv v h | |
| simp only [sum_const,nsmul_eq_mul] at hlow | |
| have hu : (∑ v ∈ Aᶜ, (G.degree v : ℝ)) ≤ ∑ v, (G.degree v : ℝ) := by | |
| exact sum_le_sum_of_subset_of_nonneg (subset_univ _) (fun _ _ _ ↦ Nat.cast_nonneg _) | |
| have hcard : (A.card : ℝ)+(Aᶜ.card : ℝ) = Fintype.card V := by | |
| exact_mod_cast card_add_card_compl A | |
| change (Fintype.card V : ℝ)/2 ≤ (A.card : ℝ) | |
| rw [hsum] at hu | |
| nlinarith | |
| end CliqueFreeIndependence.WeightedGraph | |
| end | |
| end OAI | |
Xet Storage Details
- Size:
- 5.12 kB
- Xet hash:
- 4816ae3bfae53622736377a8ef1e3c2af2578a70a3f0aa0a6d8169f7f6aab2a7
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.