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.Affine.ProperReciprocity |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.Branch.RegularFactorization |
| 3 | |
| 4 | /-! # Branch Factorization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.BranchFactorization.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: cleared ring factorizations in the actual affine stalk and function field |
| 12 | |
| 13 | Numerators and denominators outside P supply actual units in the |
| 14 | geometric stalk. The canonical stalk isomorphism carries the chosen |
| 15 | localization uniformizer to an irreducible germ. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 19 | |
| 20 | variable (R : Type) [CommRing R] [IsDomain R] |
| 21 | |
| 22 | local instance affineBranchFactorization_stalkAlgebra (x : Spec (CommRingCat.of R)) : |
| 23 | Algebra R ((Spec (CommRingCat.of R)).presheaf.stalk x) := StructureSheaf.stalkAlgebra R x |
| 24 | |
| 25 | def affineBranchStalkUnit (P : Ideal R) [P.IsPrime] (a : R) (ha : a ∉ P) : |
| 26 | ((Spec (CommRingCat.of R)).presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P))ˣ := |
| 27 | (ProperReciprocity.BundleCycles.affineRegularGerm_isUnit R a (PrimeSupport.BundleCycles.affinePrimePoint R P) ha).unit |
| 28 | |
| 29 | omit [IsDomain R] in |
| 30 | theorem affineBranchStalkUnit_val (P : Ideal R) [P.IsPrime] (a : R) (ha : a ∉ P) : |
| 31 | (affineBranchStalkUnit R P a ha : (Spec (CommRingCat.of R)).presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P)) = |
| 32 | (Spec (CommRingCat.of R)).presheaf.germ ⊤ (PrimeSupport.BundleCycles.affinePrimePoint R P) (by trivial) (Divisor.BundleCycles.affineAmbientSection R a) := |
| 33 | (ProperReciprocity.BundleCycles.affineRegularGerm_isUnit R a (PrimeSupport.BundleCycles.affinePrimePoint R P) ha).unit_spec |
| 34 | |
| 35 | omit [IsDomain R] in |
| 36 | theorem affineBranch_uniformizer_irreducible (P : Ideal R) [P.IsPrime] (t : R) |
| 37 | (ht : Irreducible (algebraMap R (Localization P.primeCompl) t)) : |
| 38 | Irreducible ((Spec (CommRingCat.of R)).presheaf.germ ⊤ (PrimeSupport.BundleCycles.affinePrimePoint R P) (by trivial) |
| 39 | (Divisor.BundleCycles.affineAmbientSection R t)) := by |
| 40 | let e : Localization.AtPrime P ≃ₐ[R] (Spec (CommRingCat.of R)).presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P) := |
| 41 | StructureSheaf.stalkIso R (show PrimeSpectrum R from PrimeSupport.BundleCycles.affinePrimePoint R P) |
| 42 | have he := ht.map e.toMulEquiv |
| 43 | change Irreducible (e (algebraMap R (Localization.AtPrime P) t)) at he |
| 44 | rw [e.commutes] at he |
| 45 | exact he |
| 46 | |
| 47 | theorem affineBranchStalkUnit_fraction (P : Ideal R) [P.IsPrime] (a : R) (ha : a ∉ P) : |
| 48 | algebraMap ((Spec (CommRingCat.of R)).presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P)) |
| 49 | (Spec (CommRingCat.of R)).functionField (affineBranchStalkUnit R P a ha : _) = |
| 50 | RegularDivisor.BundleCycles.globalFunctionFieldElement (Spec (CommRingCat.of R)) (Divisor.BundleCycles.affineAmbientSection R a) := by |
| 51 | rw [affineBranchStalkUnit_val] |
| 52 | exact Scheme.algebraMap_germ_eq_germToFunctionField _ (by trivial) _ |
| 53 | |
| 54 | theorem affineFunctionUnit_branch_factor (P : Ideal R) [P.IsPrime] |
| 55 | (a t u s : R) (ha : a ≠ 0) (hu : u ∉ P) (hs : s ∉ P) (m : ℕ) |
| 56 | (hsa : s * a = u * t ^ m) : |
| 57 | (ProperReciprocity.BundleCycles.affineFunctionUnit R a ha : (Spec (CommRingCat.of R)).functionField) = |
| 58 | (affineBranchStalkUnit R P u hu / affineBranchStalkUnit R P s hs) • |
| 59 | (algebraMap ((Spec (CommRingCat.of R)).presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P)) |
| 60 | (Spec (CommRingCat.of R)).functionField |
| 61 | ((Spec (CommRingCat.of R)).presheaf.germ ⊤ (PrimeSupport.BundleCycles.affinePrimePoint R P) (by trivial) |
| 62 | (Divisor.BundleCycles.affineAmbientSection R t))) ^ (m : ℤ) := by |
| 63 | let X := Spec (CommRingCat.of R) |
| 64 | let F : R →+* X.functionField := (X.germToFunctionField ⊤).hom.comp (Scheme.ΓSpecIso (CommRingCat.of R)).inv.hom |
| 65 | have he : F s * F a = F u * (F t) ^ m := by |
| 66 | rw [← map_mul, hsa, map_mul, map_pow] |
| 67 | have hs0 : F s ≠ 0 := by |
| 68 | have hsu := affineBranchStalkUnit_fraction R P s hs |
| 69 | exact hsu ▸ (affineBranchStalkUnit R P s hs).isUnit.map (algebraMap _ X.functionField) |>.ne_zero |
| 70 | change F a = _ |
| 71 | rw [Units.smul_def, Algebra.smul_def, zpow_natCast] |
| 72 | change F a = (Units.map (algebraMap _ X.functionField).toMonoidHom |
| 73 | (affineBranchStalkUnit R P u hu / affineBranchStalkUnit R P s hs) : X.functionField) * _ |
| 74 | rw [map_div, Units.val_div_eq_div_val] |
| 75 | change F a = (algebraMap (X.presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P)) X.functionField |
| 76 | (affineBranchStalkUnit R P u hu : X.presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P)) / |
| 77 | algebraMap (X.presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P)) X.functionField |
| 78 | (affineBranchStalkUnit R P s hs : X.presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P))) * _ |
| 79 | rw [affineBranchStalkUnit_fraction, affineBranchStalkUnit_fraction] |
| 80 | have htF : algebraMap (X.presheaf.stalk (PrimeSupport.BundleCycles.affinePrimePoint R P)) X.functionField |
| 81 | (X.presheaf.germ ⊤ (PrimeSupport.BundleCycles.affinePrimePoint R P) (by trivial) (Divisor.BundleCycles.affineAmbientSection R t)) = F t := |
| 82 | Scheme.algebraMap_germ_eq_germToFunctionField X (by trivial) (Divisor.BundleCycles.affineAmbientSection R t) |
| 83 | rw [htF] |
| 84 | change F a = (F u / F s) * (F t) ^ m |
| 85 | rw [div_mul_eq_mul_div] |
| 86 | exact (eq_div_iff hs0).mpr ((mul_comm (F a) (F s)).trans he) |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Affine.BranchFactorization.BundleCycles |