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.Finite.PrimeUniformizers |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.FractionOrderLaws |
| 3 | import Mathlib.RingTheory.OrderOfVanishing.Noetherian |
| 4 | |
| 5 | /-! # Prime Order Approximation -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.Finite.PrimeOrderApproximation.BundleCycles |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | section |
| 12 | |
| 13 | /-! # LineBundleCycles: actual rational functions with Kronecker-delta orders at finitely many primes -/ |
| 14 | |
| 15 | variable {R ι : Type*} [CommRing R] [Finite ι] |
| 16 | (P : ι → Ideal R) [∀ i, (P i).IsPrime] |
| 17 | (A : ι → Type*) [∀ i, CommRing (A i)] [∀ i, Algebra R (A i)] |
| 18 | [∀ i, IsLocalization.AtPrime (A i) (P i)] [∀ i, IsDomain (A i)] |
| 19 | [∀ i, IsDiscreteValuationRing (A i)] |
| 20 | (hne : Pairwise fun i j => ¬ P i ≤ P j) |
| 21 | (K : Type*) [Field K] [Algebra R K] [∀ i, Algebra (A i) K] |
| 22 | [∀ i, IsScalarTower R (A i) K] [∀ i, IsFractionRing (A i) K] |
| 23 | |
| 24 | theorem finitePrimeUniformizer_field_ne_zero (i : ι) : |
| 25 | algebraMap R K (PrimeUniformizers.BundleCycles.finitePrimeUniformizer P A hne i) ≠ 0 := by |
| 26 | rw [IsScalarTower.algebraMap_apply R (A i) K] |
| 27 | exact (map_ne_zero_iff _ (IsFractionRing.injective (A i) K)).mpr |
| 28 | (PrimeUniformizers.BundleCycles.finitePrimeUniformizer_irreducible P A hne i).ne_zero |
| 29 | |
| 30 | def finitePrimeOrderUnit (i : ι) : Kˣ := |
| 31 | Units.mk0 (algebraMap R K (PrimeUniformizers.BundleCycles.finitePrimeUniformizer P A hne i)) |
| 32 | (finitePrimeUniformizer_field_ne_zero P A hne K i) |
| 33 | |
| 34 | theorem finitePrimeOrderUnit_order_self (i : ι) : |
| 35 | SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (A i) (finitePrimeOrderUnit P A hne K i : K) = 1 := by |
| 36 | change SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (A i) (algebraMap R K (PrimeUniformizers.BundleCycles.finitePrimeUniformizer P A hne i)) = 1 |
| 37 | rw [IsScalarTower.algebraMap_apply R (A i) K] |
| 38 | unfold SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder |
| 39 | rw [Ring.ordFrac_irreducible (PrimeUniformizers.BundleCycles.finitePrimeUniformizer_irreducible P A hne i)] |
| 40 | rfl |
| 41 | |
| 42 | theorem finitePrimeOrderUnit_order_other (i j : ι) (hji : j ≠ i) : |
| 43 | SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (A j) (finitePrimeOrderUnit P A hne K i : K) = 0 := by |
| 44 | change SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (A j) (algebraMap R K (PrimeUniformizers.BundleCycles.finitePrimeUniformizer P A hne i)) = 0 |
| 45 | rw [IsScalarTower.algebraMap_apply R (A j) K] |
| 46 | unfold SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder |
| 47 | rw [Ring.ordFrac_of_isUnit (PrimeUniformizers.BundleCycles.finitePrimeUniformizer_isUnit P A hne i j hji)] |
| 48 | rfl |
| 49 | |
| 50 | end |
| 51 | |
| 52 | /-! # LineBundleCycles: prescribed positive and negative orders at a finite family of prime divisors -/ |
| 53 | |
| 54 | open scoped BigOperators |
| 55 | |
| 56 | variable {R ι : Type*} [CommRing R] [Finite ι] |
| 57 | (P : ι → Ideal R) [∀ i, (P i).IsPrime] |
| 58 | (A : ι → Type*) [∀ i, CommRing (A i)] [∀ i, Algebra R (A i)] |
| 59 | [∀ i, IsLocalization.AtPrime (A i) (P i)] [∀ i, IsDomain (A i)] |
| 60 | [∀ i, IsDiscreteValuationRing (A i)] |
| 61 | (hne : Pairwise fun i j => ¬ P i ≤ P j) |
| 62 | (K : Type*) [Field K] [Algebra R K] [∀ i, Algebra (A i) K] |
| 63 | [∀ i, IsScalarTower R (A i) K] [∀ i, IsFractionRing (A i) K] |
| 64 | |
| 65 | def finitePrimeOrderApproximation (n : ι → ℤ) : Kˣ := |
| 66 | letI := Fintype.ofFinite ι |
| 67 | ∏ i, finitePrimeOrderUnit P A hne K i ^ n i |
| 68 | |
| 69 | theorem finitePrimeOrderApproximation_order (n : ι → ℤ) (j : ι) : |
| 70 | SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (A j) (finitePrimeOrderApproximation P A hne K n : K) = n j := by |
| 71 | classical |
| 72 | let := Fintype.ofFinite ι |
| 73 | apply Multiplicative.ofAdd.injective |
| 74 | change FractionOrderLaws.BundleCycles.fractionFieldOrderHom (A j) (∏ i, finitePrimeOrderUnit P A hne K i ^ n i) = |
| 75 | Multiplicative.ofAdd (n j) |
| 76 | rw [map_prod, Finset.prod_eq_single j] |
| 77 | · rw [map_zpow] |
| 78 | change Multiplicative.ofAdd (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (A j) (finitePrimeOrderUnit P A hne K j : K)) ^ n j = _ |
| 79 | rw [finitePrimeOrderUnit_order_self] |
| 80 | change Multiplicative.ofAdd ((n j) * 1) = Multiplicative.ofAdd (n j) |
| 81 | rw [mul_one] |
| 82 | · intro i _ hij |
| 83 | rw [map_zpow] |
| 84 | change Multiplicative.ofAdd (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (A j) (finitePrimeOrderUnit P A hne K i : K)) ^ n i = 1 |
| 85 | rw [finitePrimeOrderUnit_order_other P A hne K i j hij.symm] |
| 86 | exact one_zpow _ |
| 87 | · intro h |
| 88 | exact (h (Finset.mem_univ _)).elim |
| 89 | |
| 90 | include hne in |
| 91 | theorem exists_prescribed_finitePrimeOrders (n : ι → ℤ) : |
| 92 | ∃ g : Kˣ, ∀ i, SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder (A i) (g : K) = n i := |
| 93 | ⟨finitePrimeOrderApproximation P A hne K n, |
| 94 | finitePrimeOrderApproximation_order P A hne K n⟩ |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.Divisors.LineBundles.Finite.PrimeOrderApproximation.BundleCycles |