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.ModuleCech.Card |
| 2 | |
| 3 | /-! # Square -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.Square.ProjectiveCech |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The actual module Čech differential squares to zero. -/ |
| 10 | |
| 11 | open _root_.MvPolynomial |
| 12 | |
| 13 | universe u v w |
| 14 | |
| 15 | variable {σ : Type u} [LinearOrder σ] |
| 16 | variable (R : Type v) [CommRing R] |
| 17 | variable (M : Type w) [AddCommGroup M] [Module R M] [Module (MvPolynomial σ R) M] |
| 18 | [IsScalarTower R (MvPolynomial σ R) M] |
| 19 | |
| 20 | def moduleCechValue (f : Card.ProjectiveCech.ModuleCechFamily (σ := σ) R M) (s t : Finset σ) (h : t ⊆ s) : |
| 21 | Graded.ModuleRestriction.ProjectiveCech.ModuleChart R M s := Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M h (f t) |
| 22 | |
| 23 | theorem moduleCechValue_congr (f : Card.ProjectiveCech.ModuleCechFamily (σ := σ) R M) (s t z : Finset σ) |
| 24 | (ht : t ⊆ s) (hz : z ⊆ s) (h : t = z) : |
| 25 | moduleCechValue R M f s t ht = moduleCechValue R M f s z hz := by |
| 26 | subst z |
| 27 | rfl |
| 28 | |
| 29 | theorem moduleCechDifferential_square (f : Card.ProjectiveCech.ModuleCechFamily (σ := σ) R M) : |
| 30 | Card.ProjectiveCech.moduleCechDifferential R M (Card.ProjectiveCech.moduleCechDifferential R M f) = 0 := by |
| 31 | funext s |
| 32 | let F : σ × σ → Graded.ModuleRestriction.ProjectiveCech.ModuleChart R M s := fun p => if p.1 = p.2 then 0 else |
| 33 | (Cech.Signs.ProjectiveCech.alternatingSign R s p.1 * Cech.Signs.ProjectiveCech.alternatingSign R (s.erase p.1) p.2) • |
| 34 | moduleCechValue R M f s ((s.erase p.1).erase p.2) |
| 35 | ((Finset.erase_subset p.2 (s.erase p.1)).trans (Finset.erase_subset p.1 s)) |
| 36 | have hsum : Card.ProjectiveCech.moduleCechDifferential R M (Card.ProjectiveCech.moduleCechDifferential R M f) s = |
| 37 | ∑ p ∈ s ×ˢ s, F p := by |
| 38 | change (∑ i ∈ s, Cech.Signs.ProjectiveCech.alternatingSign R s i • Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M (Finset.erase_subset i s) |
| 39 | (Card.ProjectiveCech.moduleCechDifferential R M f (s.erase i))) = _ |
| 40 | rw [Finset.sum_product] |
| 41 | apply Finset.sum_congr rfl |
| 42 | intro i _ |
| 43 | change Cech.Signs.ProjectiveCech.alternatingSign R s i • Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M (Finset.erase_subset i s) |
| 44 | (∑ j ∈ s.erase i, Cech.Signs.ProjectiveCech.alternatingSign R (s.erase i) j • |
| 45 | Graded.ModuleRestriction.ProjectiveCech.moduleChartRestriction R M (Finset.erase_subset j (s.erase i)) (f ((s.erase i).erase j))) = _ |
| 46 | rw [map_sum, Finset.smul_sum] |
| 47 | simp only [map_smul, smul_smul] |
| 48 | calc |
| 49 | _ = ∑ j ∈ s.erase i, F (i, j) := by |
| 50 | apply Finset.sum_congr rfl |
| 51 | intro j hj |
| 52 | have hij := (Finset.mem_erase.mp hj).1.symm |
| 53 | simp only [F, ite_eq_right hij] |
| 54 | apply congrArg (fun x => (Cech.Signs.ProjectiveCech.alternatingSign R s i * Cech.Signs.ProjectiveCech.alternatingSign R (s.erase i) j) • x) |
| 55 | exact LinearMap.congr_fun (Presentations.Module.ChartCompatibility.ProjectiveCech.moduleChartRestriction_comp R M |
| 56 | (Finset.erase_subset j (s.erase i)) (Finset.erase_subset i s)) (f ((s.erase i).erase j)) |
| 57 | _ = ∑ j ∈ s, F (i, j) := by |
| 58 | apply Finset.sum_subset (Finset.erase_subset i s) |
| 59 | intro j hj hji |
| 60 | have hij : i = j := by |
| 61 | by_contra h |
| 62 | exact hji (Finset.mem_erase.mpr ⟨Ne.symm h, hj⟩) |
| 63 | simp only [F, ite_eq_left hij] |
| 64 | rw [hsum] |
| 65 | apply Finset.sum_involution (s := s ×ˢ s) (f := F) (fun p _ => p.swap) |
| 66 | · intro p hp |
| 67 | obtain ⟨hi, hj⟩ := Finset.mem_product.mp hp |
| 68 | by_cases hij : p.1 = p.2 |
| 69 | · simp only [F, ite_eq_left hij, Prod.fst_swap, Prod.snd_swap, ite_eq_left hij.symm, add_zero] |
| 70 | · have he : (s.erase p.1).erase p.2 = (s.erase p.2).erase p.1 := by |
| 71 | ext i |
| 72 | simp only [Finset.mem_erase] |
| 73 | tauto |
| 74 | have hv := moduleCechValue_congr R M f s _ _ |
| 75 | ((Finset.erase_subset p.2 (s.erase p.1)).trans (Finset.erase_subset p.1 s)) |
| 76 | ((Finset.erase_subset p.1 (s.erase p.2)).trans (Finset.erase_subset p.2 s)) he |
| 77 | simp only [F, ite_eq_right hij, Prod.fst_swap, Prod.snd_swap, ite_eq_right (Ne.symm hij)] |
| 78 | rw [Cech.Signs.ProjectiveCech.alternatingSign_erase_anticommute R hi hj hij, hv, neg_smul, neg_add_cancel] |
| 79 | · intro p _ hp hswap |
| 80 | have hij : p.1 = p.2 := (congrArg Prod.fst hswap).symm |
| 81 | exact hp (by simp only [F, ite_eq_left hij]) |
| 82 | · intro p hp |
| 83 | rw [Finset.mem_product] |
| 84 | exact (Finset.mem_product.mp hp).symm |
| 85 | · intro p _ |
| 86 | exact Prod.swap_swap p |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ModuleCech.Square.ProjectiveCech |