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.Local.DivisorWeights |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.PrimeQuotient |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Truncation |
| 5 | |
| 6 | /-! # Geometric Divisor Euler -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GeometricDivisorEuler |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The local weighted order formula uses precisely ThomClass's geometric |
| 13 | intersection multiplicities on the closures of the height-one primes. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | |
| 19 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Principal OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Stalk.DivisorSupport |
| 20 | |
| 21 | theorem intersectionMultiplicity_eq_euler (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 22 | [SmoothOfRelativeDimension m X.structureMap] |
| 23 | (A C : IrreducibleCloseds X.carrier) |
| 24 | (hx : CycleClass.Thom.IntersectionGeometry.supportPoint C ∈ (A : Set X.carrier)) |
| 25 | (p : Spec (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C))) : |
| 26 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X (Stalk.DivisorSupport.primeClosure X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C) p) A C = |
| 27 | Tor.Euler.euler (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C)) |
| 28 | (.of _ (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C) ⧸ p.asIdeal)) |
| 29 | (CycleClass.Thom.IntersectionGeometry.localSupportModule X.carrier A (CycleClass.Thom.IntersectionGeometry.supportPoint C) hx) m := by |
| 30 | have hp := Stalk.DivisorSupport.point_mem_primeClosure X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C) p |
| 31 | rw [Truncation.intersectionMultiplicity_eq_relative_sum X m _ A C hp hx] |
| 32 | exact PrimeFiltrationEuler.euler_iso_left _ |
| 33 | (Stalk.PrimeQuotient.moduleEquiv X.carrier (Stalk.DivisorSupport.primeClosure X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C) p) |
| 34 | (CycleClass.Thom.IntersectionGeometry.supportPoint C) hp p (Stalk.DivisorSupport.primeClosure_point X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C) p).symm).toModuleIso _ m |
| 35 | |
| 36 | theorem order_eq_intersection_sum (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m : ℕ) |
| 37 | [SmoothOfRelativeDimension m X.structureMap] |
| 38 | (A : X.DimensionCycleSupport 1) (C : X.DimensionCycleSupport 2) |
| 39 | (hx : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier)) |
| 40 | (r : X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val)) |
| 41 | (hra : Local.Principal.supportStalkMap X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx r ≠ 0) : |
| 42 | let R := X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) |
| 43 | ∃ S : Finset (Spec R), |
| 44 | (∀ p ∈ S, p.asIdeal.height = 1 ∧ r ∈ p.asIdeal ∧ |
| 45 | X.supportCodimension (Stalk.DivisorSupport.primeClosure X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p) = 1) ∧ |
| 46 | (∀ p : Spec R, p.asIdeal.height = 1 → p ∉ S → |
| 47 | Ring.ord (Localization.AtPrime p.asIdeal) |
| 48 | (algebraMap R (Localization.AtPrime p.asIdeal) r) = 0) ∧ |
| 49 | ((Ring.ord ((CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).presheaf.stalk |
| 50 | (CycleClass.Thom.IntersectionGeometry.supportPreimage A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx)) |
| 51 | (Local.Principal.supportStalkMap X.carrier A.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hx r)).toNat : ℚ) = |
| 52 | ∑ p ∈ S, ((Ring.ord (Localization.AtPrime p.asIdeal) |
| 53 | (algebraMap R (Localization.AtPrime p.asIdeal) r)).toNat : ℚ) * |
| 54 | CycleClass.Thom.IntersectionGeometry.intersectionMultiplicity X (Stalk.DivisorSupport.primeClosure X.carrier (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) p) A.val C.val := by |
| 55 | obtain ⟨S, hS, hout, he⟩ := Local.DivisorWeights.order_eq_weighted_sum X m A C hx r hra |
| 56 | have hCA : C.val ≤ A.val := |
| 57 | (Supports.supportPoint_mem_iff_subset |
| 58 | (⟨(A.val : Set X.carrier), A.val.isClosed⟩ : Closeds X.carrier) C.val).mp hx |
| 59 | refine ⟨S, fun p hp => ⟨(hS p hp).1, (hS p hp).2, |
| 60 | Stalk.DivisorSupport.primeClosure_codimension X m A C hCA p (hS p hp).1⟩, hout, ?_⟩ |
| 61 | rw [he] |
| 62 | apply Finset.sum_congr rfl |
| 63 | intro p _ |
| 64 | rw [intersectionMultiplicity_eq_euler X m A.val C.val hx p] |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.GeometricDivisorEuler |