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.IntersectionTheory.ProjectionFormula.QuotientTorBaseChange |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.OrderQuotientTransport |
| 3 | |
| 4 | /-! # Order -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Order |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Native orders of vanishing under flat local base change. If the |
| 11 | maximal ideal extends to the maximal ideal, all rational-function orders |
| 12 | are preserved under the compatible fraction-field embedding. -/ |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable (R S : Type u) [CommRing R] [CommRing S] [IsLocalRing R] [IsLocalRing S] |
| 17 | [Algebra R S] [IsLocalHom (algebraMap R S)] [Module.Flat R S] |
| 18 | |
| 19 | theorem ord_baseChange (a : R) : |
| 20 | Ring.ord S (algebraMap R S a) = Ring.ord R a * |
| 21 | Module.length S (S ⧸ (IsLocalRing.maximalIdeal R).map (algebraMap R S)) := by |
| 22 | have hi : Ideal.span {algebraMap R S a} = (Ideal.span {a}).map (algebraMap R S) := by |
| 23 | rw [Ideal.map_span, Set.image_singleton] |
| 24 | rw [Ring.ord, hi, (Ideal.qoutMapEquivTensorQout (R := R) (I := Ideal.span {a}) S).length_eq] |
| 25 | exact IsLocalRing.length_baseChange R S _ |
| 26 | |
| 27 | theorem ord_eq (hmax : (IsLocalRing.maximalIdeal R).map (algebraMap R S) = IsLocalRing.maximalIdeal S) |
| 28 | (a : R) : Ring.ord S (algebraMap R S a) = Ring.ord R a := by |
| 29 | rw [ord_baseChange, hmax, SurfacePrimeEuler.residue_quotient_length, mul_one] |
| 30 | |
| 31 | variable [IsDomain R] [IsDomain S] [IsNoetherianRing R] [IsNoetherianRing S] |
| 32 | [Ring.KrullDimLE 1 R] [Ring.KrullDimLE 1 S] |
| 33 | |
| 34 | omit [IsNoetherianRing S] [Ring.KrullDimLE 1 S] in |
| 35 | theorem ordMonoid_eq |
| 36 | (hmax : (IsLocalRing.maximalIdeal R).map (algebraMap R S) = IsLocalRing.maximalIdeal S) |
| 37 | (hinj : Function.Injective (algebraMap R S)) (a : R) : |
| 38 | Ring.ordMonoidWithZeroHom S (algebraMap R S a) = Ring.ordMonoidWithZeroHom R a := by |
| 39 | by_cases ha : a = 0 |
| 40 | · subst a |
| 41 | simp only [map_zero] |
| 42 | have ha' : algebraMap R S a ≠ 0 := (map_ne_zero_iff _ hinj).mpr ha |
| 43 | have hR : Ring.ord R a = ((Ring.ord R a).toNat : ℕ∞) := |
| 44 | (ENat.natCast_toNat (Ring.ord_ne_top (mem_nonZeroDivisors_of_ne_zero ha))).symm |
| 45 | have hS := (ord_eq R S hmax a).trans hR |
| 46 | rw [Ring.ordMonoidWithZeroHom_eq_coe S (mem_nonZeroDivisors_of_ne_zero ha') hS, |
| 47 | Ring.ordMonoidWithZeroHom_eq_coe R (mem_nonZeroDivisors_of_ne_zero ha) hR] |
| 48 | |
| 49 | theorem ordFrac_eq {K L : Type u} [Field K] [Field L] [Algebra R K] [Algebra S L] |
| 50 | [IsFractionRing R K] [IsFractionRing S L] |
| 51 | (hmax : (IsLocalRing.maximalIdeal R).map (algebraMap R S) = IsLocalRing.maximalIdeal S) |
| 52 | (hinj : Function.Injective (algebraMap R S)) (φ : K →+* L) |
| 53 | (hφ : ∀ a : R, φ (algebraMap R K a) = algebraMap S L (algebraMap R S a)) (f : K) : |
| 54 | Ring.ordFrac S (φ f) = Ring.ordFrac R f := by |
| 55 | by_cases hf : f = 0 |
| 56 | · subst f |
| 57 | simp only [map_zero] |
| 58 | obtain ⟨a, b, hb, rfl⟩ := IsFractionRing.div_surjective R f |
| 59 | have ha : a ≠ 0 := fun ha => hf (by simp [ha]) |
| 60 | have hb' : b ≠ 0 := mem_nonZeroDivisors_iff_ne_zero.mp hb |
| 61 | rw [map_div₀, hφ a, hφ b, map_div₀, map_div₀, |
| 62 | Ring.ordFrac_eq_ord R ha, Ring.ordFrac_eq_ord R hb', |
| 63 | Ring.ordFrac_eq_ord S ((map_ne_zero_iff _ hinj).mpr ha), |
| 64 | Ring.ordFrac_eq_ord S ((map_ne_zero_iff _ hinj).mpr hb'), |
| 65 | ordMonoid_eq R S hmax hinj a, ordMonoid_eq R S hmax hinj b] |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Flat.Order |