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.Divisors.LineBundles.Normal.ResidueCartier |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Geometric.ResidueLaws |
| 3 | |
| 4 | /-! # Residue Difference -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.ResidueDifference.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: the residue divisor is the difference of the actual proper intersection terms |
| 12 | |
| 13 | At a point where at least one regular equation is a local unit, the |
| 14 | normal residue principal divisor equals the difference of the two |
| 15 | native order-weighted Cartier cycles. The opposite term vanishes by |
| 16 | the actual unit-germ order theorem. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.Order |
| 20 | |
| 21 | variable (X : Scheme) [IsIntegral X] [AlgebraicGeometry.IsNoetherian X] |
| 22 | variable (x : X) (hx : coheight x = 1) [IsIntegrallyClosed (X.presheaf.stalk x)] |
| 23 | |
| 24 | theorem normalPointResidueFunction_swap (g h : X.functionFieldˣ) : |
| 25 | PointResidue.BundleCycles.normalPointResidueFunction X x hx h g = (PointResidue.BundleCycles.normalPointResidueFunction X x hx g h)⁻¹ := by |
| 26 | let := PointResidue.BundleCycles.normal_stalk_isDVR X x hx |
| 27 | let π := Classical.choose (IsDiscreteValuationRing.exists_irreducible (X.presheaf.stalk x)) |
| 28 | have hπ : Irreducible π := Classical.choose_spec (IsDiscreteValuationRing.exists_irreducible _) |
| 29 | have he := congrArg (Point.SupportResidue.BundleCycles.pointSupportResidueFunction X x) (DVRResidueRegularSteinberg.BundleCycles.dvrResidueQuotient_swap π hπ g h) |
| 30 | refine he.trans ?_ |
| 31 | unfold Point.SupportResidue.BundleCycles.pointSupportResidueFunction |
| 32 | rw [Units.val_inv_eq_inv_val] |
| 33 | exact map_inv₀ (Point.SupportResidue.BundleCycles.pointSupportResidueIso X x).hom.hom _ |
| 34 | |
| 35 | theorem normalResidue_principal_swap (g h : X.functionFieldˣ) : |
| 36 | Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm x) (PointResidue.BundleCycles.normalPointResidueFunction X x hx h g) = |
| 37 | -Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm x) (PointResidue.BundleCycles.normalPointResidueFunction X x hx g h) := by |
| 38 | rw [normalPointResidueFunction_swap] |
| 39 | have he := Support.PrincipalLaws.BundleCycles.schemePrincipalPointDivisor_zpow (irreducibleSetEquivPoints.symm x) |
| 40 | (Units.mk0 (PointResidue.BundleCycles.normalPointResidueFunction X x hx g h) (PointResidue.BundleCycles.normalPointResidueFunction_ne_zero X x hx g h)) (-1) |
| 41 | simp only [Units.val_mk0, zpow_neg_one, neg_one_zsmul] at he |
| 42 | exact he |
| 43 | |
| 44 | theorem normalResidue_principal_proper (a b : Γ(X, ⊤)) |
| 45 | (hu : IsUnit (X.presheaf.germ ⊤ x (by trivial) a) ∨ IsUnit (X.presheaf.germ ⊤ x (by trivial) b)) |
| 46 | (g h : X.functionFieldˣ) |
| 47 | (hg : (g : X.functionField) = RegularDivisor.BundleCycles.globalFunctionFieldElement X a) |
| 48 | (hh : (h : X.functionField) = RegularDivisor.BundleCycles.globalFunctionFieldElement X b) : |
| 49 | Graded.GlobalSpecialization.BundleCycles.schemePrincipalPointDivisor (irreducibleSetEquivPoints.symm x) (PointResidue.BundleCycles.normalPointResidueFunction X x hx g h) = |
| 50 | (X.ord (h : X.functionField) x : ℚ) • Principal.CartierCycle.BundleCycles.principalCartierPointCycle a (irreducibleSetEquivPoints.symm x) - |
| 51 | (X.ord (g : X.functionField) x : ℚ) • Principal.CartierCycle.BundleCycles.principalCartierPointCycle b (irreducibleSetEquivPoints.symm x) := by |
| 52 | rcases hu with ha | hb |
| 53 | · have hz : X.ord (g : X.functionField) x = 0 := |
| 54 | (congrArg (fun t => X.ord t x) hg).trans (RegularDivisor.BundleCycles.regularFunctionDivisor_eq_zero_of_isUnit_germ X a x ha) |
| 55 | rw [ResidueCartier.BundleCycles.normalResidue_principal_regularUnit_rat X x hx a ha g h hg, hz, Int.cast_zero, zero_smul, sub_zero] |
| 56 | · have hz : X.ord (h : X.functionField) x = 0 := |
| 57 | (congrArg (fun t => X.ord t x) hh).trans (RegularDivisor.BundleCycles.regularFunctionDivisor_eq_zero_of_isUnit_germ X b x hb) |
| 58 | rw [normalResidue_principal_swap X x hx h g, |
| 59 | ResidueCartier.BundleCycles.normalResidue_principal_regularUnit_rat X x hx b hb h g hh, hz, Int.cast_zero, zero_smul, zero_sub] |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Normal.ResidueDifference.BundleCycles |