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.Normalization.Divisor |
| 2 | import Mathlib.RingTheory.Ideal.Quotient.Operations |
| 3 | |
| 4 | /-! # Order Quotient Transport -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.OrderQuotientTransport |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Local orders are invariant under compatible isomorphisms of the local |
| 13 | rings and their actual fraction fields. This connects affine localization |
| 14 | calculations with scheme stalks without replacing the divisor definition. -/ |
| 15 | |
| 16 | theorem ord_equiv {R S : Type*} [CommRing R] [CommRing S] |
| 17 | (e : R ≃+* S) (a : R) : Ring.ord S (e a) = Ring.ord R a := by |
| 18 | let : Algebra R S := e.toRingHom.toAlgebra |
| 19 | let eA : R ≃ₐ[R] S := { e with commutes' := fun _ => rfl } |
| 20 | have hI : Ideal.span {e a} = (Ideal.span {a}).map e.toRingHom := by |
| 21 | rw [Ideal.map_span, Set.image_singleton] |
| 22 | rfl |
| 23 | let eQ := Ideal.quotientEquivAlg (Ideal.span {a}) (Ideal.span {e a}) eA hI |
| 24 | exact (Module.length_eq_of_surjective (R := S) (M := S ⧸ Ideal.span {e a}) |
| 25 | e.surjective).symm.trans eQ.toLinearEquiv.length_eq.symm |
| 26 | |
| 27 | theorem ordMonoid_equiv {R S : Type*} [CommRing R] [CommRing S] |
| 28 | [IsDomain R] [IsDomain S] [IsNoetherianRing R] [IsNoetherianRing S] |
| 29 | [Ring.KrullDimLE 1 R] [Ring.KrullDimLE 1 S] |
| 30 | (e : R ≃+* S) (a : R) : |
| 31 | Ring.ordMonoidWithZeroHom S (e a) = Ring.ordMonoidWithZeroHom R a := by |
| 32 | by_cases ha : a = 0 |
| 33 | · subst a |
| 34 | simp only [map_zero] |
| 35 | have ha' : e a ≠ 0 := (map_ne_zero_iff _ e.injective).mpr ha |
| 36 | have hR : Ring.ord R a = ((Ring.ord R a).toNat : ℕ∞) := |
| 37 | (ENat.natCast_toNat (Ring.ord_ne_top (mem_nonZeroDivisors_of_ne_zero ha))).symm |
| 38 | have hS := (ord_equiv e a).trans hR |
| 39 | rw [Ring.ordMonoidWithZeroHom_eq_coe S (mem_nonZeroDivisors_of_ne_zero ha') hS, |
| 40 | Ring.ordMonoidWithZeroHom_eq_coe R (mem_nonZeroDivisors_of_ne_zero ha) hR] |
| 41 | |
| 42 | /-- Compatibility with the structure maps fixes the fraction-field order |
| 43 | under the given ring and field isomorphisms. -/ |
| 44 | theorem ordFrac_equiv {R S K L : Type*} [CommRing R] [CommRing S] |
| 45 | [IsDomain R] [IsDomain S] [IsNoetherianRing R] [IsNoetherianRing S] |
| 46 | [Ring.KrullDimLE 1 R] [Ring.KrullDimLE 1 S] |
| 47 | [Field K] [Field L] [Algebra R K] [Algebra S L] |
| 48 | [IsFractionRing R K] [IsFractionRing S L] |
| 49 | (e : R ≃+* S) (φ : K ≃+* L) |
| 50 | (hφ : ∀ a : R, φ (algebraMap R K a) = algebraMap S L (e a)) (f : K) : |
| 51 | Ring.ordFrac S (φ f) = Ring.ordFrac R f := by |
| 52 | by_cases hf : f = 0 |
| 53 | · subst f |
| 54 | simp only [map_zero] |
| 55 | obtain ⟨a, b, hb, rfl⟩ := IsFractionRing.div_surjective R f |
| 56 | have ha : a ≠ 0 := fun ha => hf (by simp [ha]) |
| 57 | have hb' : b ≠ 0 := mem_nonZeroDivisors_iff_ne_zero.mp hb |
| 58 | rw [map_div₀, hφ a, hφ b, map_div₀, map_div₀, |
| 59 | Ring.ordFrac_eq_ord R ha, Ring.ordFrac_eq_ord R hb', |
| 60 | Ring.ordFrac_eq_ord S ((map_ne_zero_iff _ e.injective).mpr ha), |
| 61 | Ring.ordFrac_eq_ord S ((map_ne_zero_iff _ e.injective).mpr hb'), |
| 62 | ordMonoid_equiv e a, ordMonoid_equiv e b] |
| 63 | |
| 64 | end |
| 65 | |
| 66 | section |
| 67 | |
| 68 | /-! Orders in a surjective ring target equal the orders in its actual |
| 69 | kernel quotient, with the specified element retained. -/ |
| 70 | |
| 71 | theorem ord {R S : Type*} [CommRing R] [CommRing S] |
| 72 | (f : R →+* S) (hf : Function.Surjective f) (r : R) : |
| 73 | Ring.ord S (f r) = Ring.ord (R ⧸ RingHom.ker f) (Ideal.Quotient.mk _ r) := by |
| 74 | have h := ord_equiv (RingHom.quotientKerEquivOfSurjective (f := f) hf) |
| 75 | (Ideal.Quotient.mk _ r) |
| 76 | simpa only [RingHom.quotientKerEquivOfSurjective_apply_mk] using h |
| 77 | |
| 78 | end |
| 79 | |
| 80 | /-! Principal colengths on quotient rings are preserved by the |
| 81 | actual ambient ring isomorphism and its transported defining ideal. -/ |
| 82 | |
| 83 | set_option backward.isDefEq.respectTransparency false |
| 84 | set_option backward.isDefEq.respectTransparency.types false |
| 85 | |
| 86 | namespace Ring |
| 87 | |
| 88 | theorem equiv {R S : Type*} [CommRing R] [CommRing S] |
| 89 | (e : R ≃+* S) (I : Ideal R) (J : Ideal S) (h : J = I.map e.toRingHom) (r : R) : |
| 90 | Ring.ord (S ⧸ J) (Ideal.Quotient.mk J (e r)) = |
| 91 | Ring.ord (R ⧸ I) (Ideal.Quotient.mk I r) := by |
| 92 | exact (congrArg (Ring.ord (S ⧸ J)) (Ideal.quotientEquiv_mk I J e h r)).symm.trans |
| 93 | (ord_equiv (Ideal.quotientEquiv I J e h) (Ideal.Quotient.mk I r)) |
| 94 | |
| 95 | end Ring |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.OrderQuotientTransport |