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.Contraction |
| 2 | import Mathlib.Algebra.Module.Basic |
| 3 | |
| 4 | /-! # Constant Module Contraction -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ConstantModuleContraction.ProjectiveCech |
| 7 | |
| 8 | /-! The finite subset Čech contraction with values in an arbitrary coefficient module. -/ |
| 9 | |
| 10 | universe u v w |
| 11 | |
| 12 | variable {σ : Type u} [LinearOrder σ] |
| 13 | variable (R : Type v) [CommRing R] (M : Type w) [AddCommGroup M] [Module R M] |
| 14 | |
| 15 | def constantModuleDifferential (f : Finset σ → M) (s : Finset σ) : M := |
| 16 | ∑ i ∈ s, Cech.Signs.ProjectiveCech.alternatingSign R s i • f (s.erase i) |
| 17 | |
| 18 | def constantModuleContraction (j : σ) (f : Finset σ → M) (s : Finset σ) : M := |
| 19 | if j ∈ s then 0 else Cech.Signs.ProjectiveCech.alternatingSign R s j • f (insert j s) |
| 20 | |
| 21 | theorem constantModuleDifferential_contraction_of_mem (j : σ) (f : Finset σ → M) |
| 22 | (s : Finset σ) (hj : j ∈ s) : |
| 23 | constantModuleDifferential R M (constantModuleContraction R M j f) s = f s := by |
| 24 | unfold constantModuleDifferential |
| 25 | rw [Finset.sum_eq_single j] |
| 26 | · simp only [constantModuleContraction, Finset.notMem_erase, ↓reduceIte, Finset.insert_erase hj, |
| 27 | Cech.Signs.ProjectiveCech.alternatingSign_erase_self, smul_smul, Cech.Signs.ProjectiveCech.alternatingSign_square, one_smul] |
| 28 | · intro i _ hij |
| 29 | have hj' : j ∈ s.erase i := Finset.mem_erase.mpr ⟨hij.symm, hj⟩ |
| 30 | simp only [constantModuleContraction, ite_eq_left hj', smul_zero] |
| 31 | · exact fun h => (h hj).elim |
| 32 | |
| 33 | theorem constantModuleContraction_differential_of_notMem (j : σ) (f : Finset σ → M) |
| 34 | (s : Finset σ) (hj : j ∉ s) : |
| 35 | constantModuleContraction R M j (constantModuleDifferential R M f) s = |
| 36 | f s - constantModuleDifferential R M (constantModuleContraction R M j f) s := by |
| 37 | rw [constantModuleContraction, ite_eq_right hj, constantModuleDifferential, Finset.sum_insert hj, smul_add] |
| 38 | have hfirst : Cech.Signs.ProjectiveCech.alternatingSign R s j • |
| 39 | (Cech.Signs.ProjectiveCech.alternatingSign R (insert j s) j • f ((insert j s).erase j)) = f s := by |
| 40 | rw [Cech.Signs.ProjectiveCech.alternatingSign_insert_self, Finset.erase_insert hj, smul_smul, |
| 41 | Cech.Signs.ProjectiveCech.alternatingSign_square, one_smul] |
| 42 | rw [hfirst, sub_eq_add_neg] |
| 43 | congr 1 |
| 44 | rw [Finset.smul_sum, constantModuleDifferential, ← Finset.sum_neg_distrib] |
| 45 | apply Finset.sum_congr rfl |
| 46 | intro i hi |
| 47 | have hji : j ≠ i := fun h => hj (h ▸ hi) |
| 48 | have hjs : j ∉ s.erase i := fun h => hj (Finset.mem_of_mem_erase h) |
| 49 | rw [constantModuleContraction, ite_eq_right hjs, smul_smul, Cech.Signs.ProjectiveCech.alternatingSign_insert_erase R hi hj] |
| 50 | rw [Finset.erase_insert_of_ne hji, neg_smul, smul_smul] |
| 51 | |
| 52 | theorem constantModule_contraction_identity (j : σ) (f : Finset σ → M) (s : Finset σ) : |
| 53 | constantModuleDifferential R M (constantModuleContraction R M j f) s + |
| 54 | constantModuleContraction R M j (constantModuleDifferential R M f) s = f s := by |
| 55 | by_cases hj : j ∈ s |
| 56 | · rw [constantModuleDifferential_contraction_of_mem R M j f s hj, |
| 57 | constantModuleContraction, ite_eq_left hj, add_zero] |
| 58 | · rw [constantModuleContraction_differential_of_notMem R M j f s hj] |
| 59 | abel |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ConstantModuleContraction.ProjectiveCech |