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.IntersectionTheory.ProjectionFormula.Tensor.ComplexBounds |
| 2 | import Mathlib.Algebra.Category.ModuleCat.Abelian |
| 3 | import Mathlib.Algebra.Homology.Embedding.ExtendHomology |
| 4 | |
| 5 | /-! # Chain To Cochain -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ChainToCochain |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Native nonnegative chain complexes, including the finite free resolutions, |
| 12 | as cochain complexes in nonpositive degrees. Homology, finiteness, freeness, |
| 13 | and finite support are transported by the actual extension isomorphisms. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | |
| 20 | variable (R : Type) [CommRing R] (K : ChainComplex (ModuleCat.{0} R) ℕ) |
| 21 | |
| 22 | def cochain : CochainComplex (ModuleCat.{0} R) ℤ := K.extend (ComplexShape.embeddingUpIntLE 0) |
| 23 | |
| 24 | def termIso (n : ℕ) : (cochain R K).X (-(n : ℤ)) ≅ K.X n := |
| 25 | K.extendXIso (ComplexShape.embeddingUpIntLE 0) (by simp) |
| 26 | |
| 27 | def homologyIso (n : ℕ) : (cochain R K).homology (-(n : ℤ)) ≅ K.homology n := |
| 28 | K.extendHomologyIso (ComplexShape.embeddingUpIntLE 0) (by simp) |
| 29 | |
| 30 | theorem positive_zero (i : ℤ) (hi : 0 < i) : IsZero ((cochain R K).X i) := |
| 31 | K.isZero_extend_X (ComplexShape.embeddingUpIntLE 0) i |
| 32 | ((ComplexShape.notMem_range_embeddingUpIntLE_iff 0 i).mpr hi) |
| 33 | |
| 34 | theorem finite_terms (hK : ∀ n, Module.Finite R (K.X n)) (i : ℤ) : |
| 35 | Module.Finite R ((cochain R K).X i) := by |
| 36 | by_cases hi : 0 < i |
| 37 | · let := ModuleCat.subsingleton_of_isZero (positive_zero R K i hi) |
| 38 | infer_instance |
| 39 | · have he : -(((-i).toNat : ℕ) : ℤ) = i := by omega |
| 40 | rw [← he] |
| 41 | let := hK (-i).toNat |
| 42 | exact Module.Finite.equiv (termIso R K (-i).toNat).toLinearEquiv.symm |
| 43 | |
| 44 | theorem free_terms (hK : ∀ n, Module.Free R (K.X n)) (i : ℤ) : |
| 45 | Module.Free R ((cochain R K).X i) := by |
| 46 | by_cases hi : 0 < i |
| 47 | · let := ModuleCat.subsingleton_of_isZero (positive_zero R K i hi) |
| 48 | infer_instance |
| 49 | · have he : -(((-i).toNat : ℕ) : ℤ) = i := by omega |
| 50 | rw [← he] |
| 51 | let := hK (-i).toNat |
| 52 | exact Module.Free.of_equiv (termIso R K (-i).toNat).toLinearEquiv.symm |
| 53 | |
| 54 | theorem bounded (d : ℕ) (hK : ∀ n, d < n → IsZero (K.X n)) (i : ℤ) |
| 55 | (hi : i < -(d : ℤ) ∨ 0 < i) : IsZero ((cochain R K).X i) := by |
| 56 | rcases hi with hi | hi |
| 57 | · have he : -(((-i).toNat : ℕ) : ℤ) = i := by omega |
| 58 | rw [← he] |
| 59 | exact (hK (-i).toNat (by omega)).of_iso (termIso R K (-i).toNat) |
| 60 | · exact positive_zero R K i hi |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ChainToCochain |