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.SurfacePrimeEuler |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Divisor.Stalk |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.PrincipalLeft |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Smooth.StalkDimension |
| 5 | |
| 6 | /-! # Divisor Euler -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.DivisorEuler |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! At an actual codimension-two point on a divisor, the order of a |
| 13 | nonzero local equation is the sum of the height-one contributions in a |
| 14 | prime filtration of its principal quotient. All finiteness, dimension, |
| 15 | torsion and projective-dimension inputs follow from the smooth presentation. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | |
| 21 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal |
| 22 | |
| 23 | theorem order_eq_prime_sum (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 24 | [SmoothOfRelativeDimension m X.structureMap] |
| 25 | (A : X.DimensionCycleSupport 1) (C : X.DimensionCycleSupport 2) |
| 26 | (hx : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier)) |
| 27 | (r : X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)) |
| 28 | (hra : Principal.supportStalkMap X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx r ≠ 0) : |
| 29 | let R := X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 30 | let N := CycleClass.Thom.IntersectionGeometry.localSupportModule X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 31 | ∃ (n : ℕ) (primes : Fin n → PrimeSpectrum R), |
| 32 | (∀ i, Module.support R (R ⧸ (primes i).asIdeal) ⊆ Module.support R (QuotSMulTop r R)) ∧ |
| 33 | (Ring.ord ((CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).presheaf.stalk |
| 34 | (CycleClass.Thom.IntersectionGeometry.supportPreimage A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx)) |
| 35 | (Principal.supportStalkMap X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx r)).toNat = |
| 36 | ∑ i ∈ Finset.univ.filter (fun i => (primes i).asIdeal.height = 1), |
| 37 | Tor.Euler.euler R (.of R (R ⧸ (primes i).asIdeal)) N m := by |
| 38 | let R := X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 39 | let N := CycleClass.Thom.IntersectionGeometry.localSupportModule X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 40 | let S := (CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx) |
| 41 | let σ := Principal.supportStalkMap X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx |
| 42 | let : Algebra R S := σ.hom.toAlgebra |
| 43 | let : IsDomain R := X.stalk_isDomain (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 44 | let : Module.Finite R N := TorFinite.localSupportModule_finite _ _ _ _ |
| 45 | let : HasProjectiveDimensionLE N m := |
| 46 | Smooth.StalkDimension.stalk_bound X.structureMap m (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) N |
| 47 | have hCA : C.val ≤ A.val := |
| 48 | (Supports.supportPoint_mem_iff_subset |
| 49 | (⟨(A.val : Set X.carrier), A.val.isClosed⟩ : Closeds X.carrier) C.val).mp hx |
| 50 | have hdim : (IsLocalRing.maximalIdeal R).height = 2 := |
| 51 | Divisor.Stalk.maximalIdeal_height_two X m A C hCA |
| 52 | have hker : RingHom.ker (algebraMap R S) ≠ ⊥ := |
| 53 | Divisor.Stalk.supportStalkMap_ker_ne_bot X m 1 (by decide) A _ hx |
| 54 | have hσ : Function.Surjective (algebraMap R S) := Principal.supportStalkMap_surjective X.carrier A.val _ hx |
| 55 | have hr : r ≠ 0 := by |
| 56 | intro h |
| 57 | apply hra |
| 58 | rw [h, map_zero] |
| 59 | have hr' : IsSMulRegular R r := fun _ _ h => mul_left_cancel₀ hr h |
| 60 | have hisolated : Module.support R (QuotSMulTop r R) ∩ Module.support R N ⊆ |
| 61 | {IsLocalRing.closedPoint R} := |
| 62 | SurfacePrimeEuler.isolated_principal_support R hdim S hker r hra |
| 63 | obtain ⟨n, primes, hsupp, he⟩ := SurfacePrimeEuler.exists_height_one_sum R hdim r hr N m |
| 64 | (Divisor.Stalk.localSupport_torsion X m 1 (by decide) A _ hx) hisolated |
| 65 | have horder : Tor.Euler.euler R (.of R (QuotSMulTop r R)) N m = |
| 66 | (Ring.ord S (σ r)).toNat := |
| 67 | PrincipalLeft.euler_eq_order R S hσ r hr' hra (.of R (QuotSMulTop r R)) |
| 68 | (LinearEquiv.refl R _) m |
| 69 | exact ⟨n, primes, hsupp, horder.symm.trans he⟩ |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.DivisorEuler |