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.ComplexDeterminantBaseChange |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.InjectiveDeterminant |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.NormalDivisibility |
| 4 | import Mathlib.RingTheory.Flat.Basic |
| 5 | |
| 6 | /-! # Complex Determinant Vanishing -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ComplexDeterminantVanishing |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A three-term free complex over a normal Noetherian domain which is |
| 13 | exact at all height-one primes has associated numerator and denominator |
| 14 | determinants. Its generically exact restriction to a PID has Euler |
| 15 | characteristic zero. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open _root_.Module _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 20 | open scoped TensorProduct Classical |
| 21 | |
| 22 | universe u v w |
| 23 | |
| 24 | variable (R : Type u) [CommRing R] [IsDomain R] [IsNoetherianRing R] [IsIntegrallyClosed R] |
| 25 | {A B C : Type u} [AddCommGroup A] [AddCommGroup B] [AddCommGroup C] |
| 26 | [Module R A] [Module R B] [Module R C] |
| 27 | {ι : Type v} {κ : Type w} [Fintype ι] [Fintype κ] |
| 28 | |
| 29 | local instance : DecidableEq (ι ⊕ κ) := Classical.decEq _ |
| 30 | |
| 31 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ComplexDeterminantBaseChange |
| 32 | |
| 33 | theorem associated_determinants (f : A →ₗ[R] B) (g : B →ₗ[R] C) (h : g.comp f = 0) |
| 34 | (hf : Function.Injective f) (t : C →ₗ[R] B) (ht : Function.Injective (g.comp t)) |
| 35 | (a : Basis ι R A) (b : Basis (ι ⊕ κ) R B) (c : Basis κ R C) |
| 36 | (hex : ∀ (p : Ideal R) [p.IsPrime], p.height = 1 → |
| 37 | (ComplexDeterminantBaseChange.complex R (Localization.AtPrime p) f g h).ShortExact) : |
| 38 | Associated (LinearMap.toMatrix (a.prod c) b (f.coprod t)).det (g.comp t).det := by |
| 39 | apply NormalDivisibility.associated_of_orders R |
| 40 | · exact InjectiveDeterminant.matrix_ne_zero R (a.prod c) b _ |
| 41 | (ShortComplexDeterminant.coprod_injective R f g h hf t ht) |
| 42 | · exact InjectiveDeterminant.end_ne_zero R c _ ht |
| 43 | · intro p hprime hp |
| 44 | let S := Localization.AtPrime p |
| 45 | let : IsDiscreteValuationRing S := NormalDivisibility.localization_dvr R p hp |
| 46 | have hS := hex p hp |
| 47 | have hfS : Function.Injective (f.baseChange S) := hS.moduleCat_injective_f |
| 48 | have htS : Function.Injective ((g.comp t).baseChange S) := |
| 49 | Module.Flat.lTensor_preserves_injective_linearMap (g.comp t) ht |
| 50 | have hr : (g.baseChange S).range = ⊤ := |
| 51 | LinearMap.range_eq_top.mpr hS.moduleCat_surjective_g |
| 52 | have h₀ : Module.length S ((S ⊗[R] C) ⧸ (g.baseChange S).range) = 0 := by |
| 53 | rw [hr] |
| 54 | exact Module.length_eq_zero |
| 55 | have hz : IsZero (ComplexDeterminantBaseChange.complex R S f g h).homology := |
| 56 | (ComplexDeterminantBaseChange.complex R S f g h).exact_iff_isZero_homology.mp hS.exact |
| 57 | let : Subsingleton (ComplexDeterminantBaseChange.complex R S f g h).homology := ModuleCat.subsingleton_of_isZero hz |
| 58 | have he := ComplexDeterminantBaseChange.order_comparison R S f g h t hfS htS a b c |
| 59 | rw [h₀, Module.length_eq_zero, add_zero, zero_add] at he |
| 60 | exact he |
| 61 | |
| 62 | theorem euler_zero (S : Type u) [CommRing S] [IsDomain S] [IsPrincipalIdealRing S] |
| 63 | [Algebra R S] (f : A →ₗ[R] B) (g : B →ₗ[R] C) (h : g.comp f = 0) |
| 64 | (hf : Function.Injective f) (t : C →ₗ[R] B) (ht : Function.Injective (g.comp t)) |
| 65 | (a : Basis ι R A) (b : Basis (ι ⊕ κ) R B) (c : Basis κ R C) |
| 66 | (hex : ∀ (p : Ideal R) [p.IsPrime], p.height = 1 → |
| 67 | (ComplexDeterminantBaseChange.complex R (Localization.AtPrime p) f g h).ShortExact) |
| 68 | (hfS : Function.Injective (f.baseChange S)) |
| 69 | (htS : Function.Injective ((g.comp t).baseChange S)) : |
| 70 | ((Module.length S ((S ⊗[R] C) ⧸ (g.baseChange S).range)).toNat : ℚ) - |
| 71 | ((Module.length S (ComplexDeterminantBaseChange.complex R S f g h).homology).toNat : ℚ) = 0 := by |
| 72 | rw [ComplexDeterminantBaseChange.euler_eq R S f g h t hfS htS a b c] |
| 73 | have he := (associated_determinants R f g h hf t ht a b c hex).map (algebraMap R S) |
| 74 | rw [Ring.ord_eq_of_associated he, sub_self] |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.ComplexDeterminantVanishing |