cfahlgren1/math / lean /ComparatorChallenges /SidorenkoCounterexample.lean
cfahlgren1's picture
download
raw
1.76 kB
import Mathlib
namespace OAI
/-! # A finite counterexample to Sidorenko's conjecture
The pattern is the incidence graph of the 22 triples in Table 1 of the source.
Homomorphism density counts all edge-preserving maps, including noninjective maps.
-/
namespace SidorenkoCounterexample
def faces : Fin 22 → Finset (Fin 13) := ![
{0,1,3}, {0,1,9}, {0,2,3}, {0,2,9}, {1,3,10}, {1,7,10},
{1,7,12}, {1,9,12}, {2,3,4}, {2,4,9}, {3,4,11}, {3,10,11},
{4,8,9}, {4,8,11}, {5,6,7}, {5,6,11}, {5,7,10}, {5,10,11},
{6,7,12}, {6,8,11}, {6,8,12}, {8,9,12}]
abbrev PatternVertex := Fin 13 ⊕ Fin 22
def incidence : PatternVertex → PatternVertex → Prop
| .inl point, .inr face => point ∈ faces face
| .inr face, .inl point => point ∈ faces face
| _, _ => False
def H : SimpleGraph PatternVertex where
Adj := incidence
symm.symm := by intro left right; cases left <;> cases right <;> simp [incidence]
loopless.irrefl := by intro vertex; cases vertex <;> simp [incidence]
noncomputable def homCount {V W : Type*} (F : SimpleGraph V) (G : SimpleGraph W) : ℕ :=
Nat.card {hom : V → W // ∀ left right, F.Adj left right → G.Adj (hom left) (hom right)}
noncomputable def homDensity {V W : Type*} (F : SimpleGraph V) (G : SimpleGraph W) : ℝ :=
(homCount F G : ℝ) / (Nat.card W : ℝ) ^ Nat.card V
noncomputable def edgeDensity {W : Type*} (G : SimpleGraph W) : ℝ :=
2 * (Nat.card G.edgeSet : ℝ) / (Nat.card W : ℝ) ^ 2
/-- A finite simple host with at least one edge violates Sidorenko's inequality. -/
theorem main : ∃ size : ℕ, 0 < size ∧ ∃ host : SimpleGraph (Fin size),
(∃ left right, host.Adj left right) ∧ homDensity H host < (edgeDensity host) ^ 66 := by
sorry
end SidorenkoCounterexample
end OAI

Xet Storage Details

Size:
1.76 kB
·
Xet hash:
eee19d638cebbc0d4dbe9223653344a60665b6e25011131a8a2caabe09ac2c3b

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.