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.Polynomial.FieldPointDivisor |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.LocalizationPointDivisor |
| 3 | import Mathlib.RingTheory.Localization.Algebra |
| 4 | |
| 5 | /-! # Generic Fiber -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.GenericFiber.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! # LineBundleCycles: a generic-fiber point has a genuine rational equation with all generic-fiber coefficients prescribed -/ |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 16 | |
| 17 | variable (R K : Type) [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] |
| 18 | |
| 19 | attribute [local instance] Polynomial.algebra |
| 20 | |
| 21 | def polynomialGenericFiberMap : Spec (.of (Polynomial K)) ⟶ Spec (.of (Polynomial R)) := |
| 22 | Spec.map (CommRingCat.ofHom (algebraMap (Polynomial R) (Polynomial K))) |
| 23 | |
| 24 | variable [IsNoetherianRing R] |
| 25 | |
| 26 | theorem polynomialGenericFiberDivisor_exists (p : Spec (.of (Polynomial K))) (hp : p.asIdeal ≠ ⊥) : |
| 27 | ∃ g : (Spec (.of (Polynomial R))).functionField, g ≠ 0 ∧ ∀ q : Spec (.of (Polynomial K)), |
| 28 | ((Spec (.of (Polynomial R))).ord g (polynomialGenericFiberMap R K q) : ℚ) = |
| 29 | Finsupp.single p 1 q := by |
| 30 | have : IsLocalization ((nonZeroDivisors R).map Polynomial.C) (Polynomial K) := |
| 31 | Polynomial.isLocalization (nonZeroDivisors R) K |
| 32 | obtain ⟨a, ha, hdiv⟩ := FieldPointDivisor.BundleCycles.polynomialFieldPoint_exists_principal K p hp |
| 33 | have hs : (Scheme.ΓSpecIso (.of (Polynomial K))).inv a ≠ 0 := |
| 34 | (map_ne_zero_iff _ (Scheme.ΓSpecIso (.of (Polynomial K))).symm.commRingCatIsoToRingEquiv.injective).mpr ha |
| 35 | exact LocalizationPointDivisor.BundleCycles.localizationPointDivisor_lift (Polynomial R) (Polynomial K) |
| 36 | ((nonZeroDivisors R).map Polynomial.C) p _ |
| 37 | (RegularDivisor.BundleCycles.globalFunctionFieldElement_ne_zero _ _ hs) hdiv |
| 38 | |
| 39 | end |
| 40 | |
| 41 | section |
| 42 | |
| 43 | /-! # LineBundleCycles: the actual generic polynomial fiber consists exactly of primes contracting to zero -/ |
| 44 | |
| 45 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 46 | |
| 47 | variable (R K : Type) [CommRing R] [IsDomain R] [Field K] [Algebra R K] [IsFractionRing R K] |
| 48 | |
| 49 | attribute [local instance] Polynomial.algebra |
| 50 | |
| 51 | omit [IsDomain R] in |
| 52 | theorem polynomialGenericFiberMap_injective : Function.Injective (polynomialGenericFiberMap R K) := by |
| 53 | have : IsLocalization ((nonZeroDivisors R).map Polynomial.C) (Polynomial K) := |
| 54 | Polynomial.isLocalization (nonZeroDivisors R) K |
| 55 | exact PrimeSpectrum.localization_comap_injective (Polynomial K) ((nonZeroDivisors R).map Polynomial.C) |
| 56 | |
| 57 | theorem polynomialGenericFiberMap_range_iff (p : Spec (.of (Polynomial R))) : |
| 58 | p ∈ Set.range (polynomialGenericFiberMap R K) ↔ p.asIdeal.comap Polynomial.C = ⊥ := by |
| 59 | have : IsLocalization ((nonZeroDivisors R).map Polynomial.C) (Polynomial K) := |
| 60 | Polynomial.isLocalization (nonZeroDivisors R) K |
| 61 | change p ∈ Set.range (PrimeSpectrum.comap (algebraMap (Polynomial R) (Polynomial K))) ↔ _ |
| 62 | rw [PrimeSpectrum.localization_comap_range (Polynomial K) ((nonZeroDivisors R).map Polynomial.C)] |
| 63 | change Disjoint (((nonZeroDivisors R).map Polynomial.C) : Set (Polynomial R)) p.asIdeal ↔ _ |
| 64 | constructor |
| 65 | · intro h |
| 66 | apply bot_unique |
| 67 | intro a ha |
| 68 | apply Ideal.mem_bot.mpr |
| 69 | by_contra hn |
| 70 | exact Set.disjoint_left.mp h |
| 71 | (Submonoid.mem_map_of_mem Polynomial.C (mem_nonZeroDivisors_iff_ne_zero.mpr hn)) ha |
| 72 | · intro h |
| 73 | apply Set.disjoint_left.mpr |
| 74 | intro a ha hp |
| 75 | obtain ⟨r, hr, rfl⟩ := ha |
| 76 | have hz : r = 0 := Ideal.mem_bot.mp (h.le hp) |
| 77 | exact (mem_nonZeroDivisors_iff_ne_zero.mp hr) hz |
| 78 | |
| 79 | omit [IsDomain R] in |
| 80 | theorem polynomialGenericFiberMap_nonzero (p : Spec (.of (Polynomial R))) |
| 81 | (hp : p.asIdeal ≠ ⊥) (q : Spec (.of (Polynomial K))) (hq : polynomialGenericFiberMap R K q = p) : |
| 82 | q.asIdeal ≠ ⊥ := by |
| 83 | intro hqzero |
| 84 | apply hp |
| 85 | have h := congrArg (fun x : Spec (.of (Polynomial R)) => x.asIdeal) hq |
| 86 | change Ideal.comap (algebraMap (Polynomial R) (Polynomial K)) q.asIdeal = p.asIdeal at h |
| 87 | rw [hqzero] at h |
| 88 | exact h.symm.trans (Ideal.comap_bot_of_injective _ |
| 89 | (Polynomial.map_injective (algebraMap R K) (IsFractionRing.injective R K))) |
| 90 | |
| 91 | end |
| 92 | |
| 93 | /-! # LineBundleCycles: a horizontal affine-line divisor differs from an actual principal divisor only over proper base supports -/ |
| 94 | |
| 95 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 96 | |
| 97 | variable (R : Type) [CommRing R] [IsDomain R] [IsNoetherianRing R] |
| 98 | |
| 99 | theorem polynomialHorizontalPoint_relation (p : Spec (.of (Polynomial R))) |
| 100 | (hp : p.asIdeal ≠ ⊥) (hbase : p.asIdeal.comap Polynomial.C = ⊥) : |
| 101 | ∃ g : (Spec (.of (Polynomial R))).functionField, g ≠ 0 ∧ |
| 102 | RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (.of (Polynomial R))) g p = 1 ∧ |
| 103 | ∀ q ∈ (RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (.of (Polynomial R))) g - Finsupp.single p 1).support, |
| 104 | q.asIdeal.comap Polynomial.C ≠ ⊥ := by |
| 105 | let K := FractionRing R |
| 106 | obtain ⟨P, hP⟩ := (polynomialGenericFiberMap_range_iff R K p).mpr hbase |
| 107 | obtain ⟨g, hg, hdiv⟩ := polynomialGenericFiberDivisor_exists R K P |
| 108 | (polynomialGenericFiberMap_nonzero R K p hp P hP) |
| 109 | have hpoint : RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (.of (Polynomial R))) g p = 1 := by |
| 110 | have h := hdiv P |
| 111 | rw [hP, Finsupp.single_eq_same] at h |
| 112 | exact h |
| 113 | refine ⟨g, hg, hpoint, ?_⟩ |
| 114 | intro q hq hzero |
| 115 | obtain ⟨Q, hQ⟩ := (polynomialGenericFiberMap_range_iff R K q).mpr hzero |
| 116 | have hsingle : Finsupp.single p (1 : ℚ) q = Finsupp.single P 1 Q := by |
| 117 | rw [← hP, ← hQ] |
| 118 | exact Finsupp.single_apply_left (polynomialGenericFiberMap_injective R K) P Q 1 |
| 119 | have he : RationalDivisorRestriction.BundleCycles.rationalPrincipalPointDivisor (Spec (.of (Polynomial R))) g q = Finsupp.single p 1 q := by |
| 120 | exact (congrArg (fun x => ((Spec (.of (Polynomial R))).ord g x : ℚ)) hQ).symm.trans |
| 121 | ((hdiv Q).trans hsingle.symm) |
| 122 | exact Finsupp.mem_support_iff.mp hq (by rw [Finsupp.sub_apply, he, sub_self]) |
| 123 | |
| 124 | end |
| 125 | |
| 126 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Polynomial.GenericFiber.BundleCycles |