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.SurfaceRationalOrderIntersection |
| 2 | |
| 3 | /-! # Fraction Order Laws -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.FractionOrderLaws.BundleCycles |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # LineBundleCycles: integer laws for the actual fraction-field order |
| 11 | |
| 12 | The integer order uses the same nonzero value of the existing order |
| 13 | homomorphism. Its multiplicative and inverse laws are derived from |
| 14 | that homomorphism, supplying the exponents in the DVR residue symbol. |
| 15 | -/ |
| 16 | |
| 17 | variable (R : Type*) [CommRing R] [IsDomain R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 18 | variable {K : Type*} [Field K] [Algebra R K] [IsFractionRing R K] |
| 19 | |
| 20 | theorem ordFrac_eq_fractionFieldOrder (g : K) (hg : g ≠ 0) : |
| 21 | Ring.ordFrac R g = ((Multiplicative.ofAdd (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R g) : Multiplicative ℤ) : |
| 22 | WithZero (Multiplicative ℤ)) := by |
| 23 | have hn : Ring.ordFrac R g ≠ 0 := (map_ne_zero (Ring.ordFrac R (K := K))).mpr hg |
| 24 | unfold SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder |
| 25 | cases h : Ring.ordFrac R g with |
| 26 | | zero => exact False.elim (hn h) |
| 27 | | coe z => rfl |
| 28 | |
| 29 | theorem fractionFieldOrder_mul (g h : K) (hg : g ≠ 0) (hh : h ≠ 0) : |
| 30 | SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g * h) = SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R g + SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R h := by |
| 31 | have he : ((Multiplicative.ofAdd (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g * h)) : Multiplicative ℤ) : |
| 32 | WithZero (Multiplicative ℤ)) = |
| 33 | ((Multiplicative.ofAdd (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R g + SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R h) : Multiplicative ℤ) : |
| 34 | WithZero (Multiplicative ℤ)) := by |
| 35 | rw [← ordFrac_eq_fractionFieldOrder R (g * h) (mul_ne_zero hg hh), map_mul, |
| 36 | ordFrac_eq_fractionFieldOrder R g hg, ordFrac_eq_fractionFieldOrder R h hh] |
| 37 | rfl |
| 38 | exact congrArg Multiplicative.toAdd (WithZero.coe_inj.mp he) |
| 39 | |
| 40 | theorem fractionFieldOrder_one : SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (1 : K) = 0 := by |
| 41 | unfold SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder |
| 42 | rw [map_one] |
| 43 | rfl |
| 44 | |
| 45 | def fractionFieldOrderHom : Kˣ →* Multiplicative ℤ where |
| 46 | toFun g := Multiplicative.ofAdd (SurfaceRationalOrderIntersection.BundleCycles.fractionFieldOrder R (g : K)) |
| 47 | map_one' := congrArg Multiplicative.ofAdd (fractionFieldOrder_one (K := K) R) |
| 48 | map_mul' g h := congrArg Multiplicative.ofAdd |
| 49 | (fractionFieldOrder_mul (K := K) R (g : K) (h : K) g.ne_zero h.ne_zero) |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.Divisors.LineBundles.FractionOrderLaws.BundleCycles |