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.FractionOrderLaws |
| 2 | import OAI.AlgebraicGeometry.Divisors.LineBundles.DVRMultiplicity |
| 3 | |
| 4 | /-! # DVR Unit -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.DVRUnit.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # LineBundleCycles: the actual unit part of a DVR rational function |
| 12 | |
| 13 | A chosen uniformizer expresses every nonzero rational function as a |
| 14 | unique local unit times the uniformizer to its actual integer order. |
| 15 | The unit is constructed from the DVR factorization theorem, and |
| 16 | uniqueness follows from injection into the fraction field. |
| 17 | -/ |
| 18 | |
| 19 | variable {R : Type*} [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 20 | variable {K : Type*} [Field K] [Algebra R K] [IsFractionRing R K] |
| 21 | variable (π : R) (hπ : Irreducible π) |
| 22 | |
| 23 | include hπ |
| 24 | |
| 25 | theorem exists_dvrUnitPart (g : Kˣ) : |
| 26 | ∃ u : Rˣ, (g : K) = u • (algebraMap R K π) ^ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K) := by |
| 27 | obtain ⟨m, u, hu⟩ := IsDiscreteValuationRing.exists_units_eq_smul_zpow_of_irreducible hπ g.ne_zero |
| 28 | have hm : SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K) = m := by |
| 29 | unfold SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder |
| 30 | rw [hu, DVRMultiplicity.BundleCycles.ordFrac_unit_zpow π hπ u m] |
| 31 | rfl |
| 32 | exact ⟨u, hm ▸ hu⟩ |
| 33 | |
| 34 | def dvrUnitPart (g : Kˣ) : Rˣ := Classical.choose (exists_dvrUnitPart π hπ g) |
| 35 | |
| 36 | theorem dvrUnitPart_spec (g : Kˣ) : |
| 37 | (g : K) = dvrUnitPart π hπ g • (algebraMap R K π) ^ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K) := |
| 38 | Classical.choose_spec (exists_dvrUnitPart π hπ g) |
| 39 | |
| 40 | theorem dvrUnitPart_unique (g : Kˣ) (u : Rˣ) |
| 41 | (hu : (g : K) = u • (algebraMap R K π) ^ SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K)) : |
| 42 | dvrUnitPart π hπ g = u := by |
| 43 | apply Units.ext |
| 44 | apply IsFractionRing.injective R K |
| 45 | have hp : algebraMap R K π ≠ 0 := (map_ne_zero_iff _ (IsFractionRing.injective R K)).mpr hπ.ne_zero |
| 46 | apply mul_right_cancel₀ (zpow_ne_zero (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K)) hp) |
| 47 | simpa only [Units.smul_def, Algebra.smul_def] using (dvrUnitPart_spec π hπ g).symm.trans hu |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.Divisors.LineBundles.DVRUnit.BundleCycles |