Hodge conjecture: the CM case in Lean, read and discussed
OpenAI's Lean proof of the Hodge conjecture for CM abelian varieties: rerun it, read its statement, and keep the open questions with their sources. The conjecture is open

| 1 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Cech.Signs |
| 2 | |
| 3 | /-! # Reversed Cech Signs -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReversedCechSigns.ProjectiveCech |
| 6 | |
| 7 | /-! Reversing the variable order changes Čech signs by a factor depending only on face cardinality. -/ |
| 8 | |
| 9 | universe u v |
| 10 | |
| 11 | variable {σ : Type u} [LinearOrder σ] |
| 12 | variable (R : Type v) [CommRing R] |
| 13 | |
| 14 | theorem strict_sides_card (s : Finset σ) (i : σ) (hi : i ∈ s) : |
| 15 | (s.filter (· < i)).card + (s.filter (i < ·)).card = s.card - 1 := by |
| 16 | have hu : s.filter (· < i) ∪ s.filter (i < ·) = s.erase i := by |
| 17 | apply Finset.ext |
| 18 | intro j |
| 19 | simp only [Finset.mem_union, Finset.mem_filter, Finset.mem_erase] |
| 20 | constructor |
| 21 | · rintro (⟨hj, hji⟩ | ⟨hj, hij⟩) |
| 22 | · exact ⟨ne_of_lt hji, hj⟩ |
| 23 | · exact ⟨ne_of_gt hij, hj⟩ |
| 24 | · rintro ⟨hji, hj⟩ |
| 25 | obtain h | h := lt_or_gt_of_ne hji |
| 26 | · exact Or.inl ⟨hj, h⟩ |
| 27 | · exact Or.inr ⟨hj, h⟩ |
| 28 | have hd : Disjoint (s.filter (· < i)) (s.filter (i < ·)) := by |
| 29 | apply Finset.disjoint_left.mpr |
| 30 | intro j hj₁ hj₂ |
| 31 | exact lt_asymm (Finset.mem_filter.mp hj₁).2 (Finset.mem_filter.mp hj₂).2 |
| 32 | have h := Finset.card_union_of_disjoint hd |
| 33 | rw [hu, Finset.card_erase_of_mem hi] at h |
| 34 | exact h.symm |
| 35 | |
| 36 | theorem alternatingSign_orderDual (s : Finset σ) (i : σ) (hi : i ∈ s) : |
| 37 | Cech.Signs.ProjectiveCech.alternatingSign (σ := σᵒᵈ) R s i = (-1 : R) ^ (s.card - 1) * Cech.Signs.ProjectiveCech.alternatingSign R s i := by |
| 38 | have hs := strict_sides_card s i hi |
| 39 | have hsq := Cech.Signs.ProjectiveCech.alternatingSign_square R s i |
| 40 | change (-1 : R) ^ (s.filter (· < i)).card * (-1 : R) ^ (s.filter (· < i)).card = 1 at hsq |
| 41 | change (-1 : R) ^ (s.filter (i < ·)).card = |
| 42 | (-1 : R) ^ (s.card - 1) * (-1 : R) ^ (s.filter (· < i)).card |
| 43 | rw [← hs, pow_add, mul_right_comm, hsq, one_mul] |
| 44 | |
| 45 | theorem neg_one_power_square (k : ℕ) : (-1 : R) ^ k * (-1 : R) ^ k = 1 := by |
| 46 | rw [← pow_add, ← two_mul, pow_mul] |
| 47 | simp |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReversedCechSigns.ProjectiveCech |