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.SemilocalDivisorNorm |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Normalization.Divisor |
| 3 | |
| 4 | /-! # Semilocal Normalization -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalNormalization |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The divisor of a rational function on a possibly singular local curve |
| 11 | is the sum of its orders on the finite normal branches, weighted by the |
| 12 | actual residue-field degrees. The fraction field is shared by construction. -/ |
| 13 | |
| 14 | open IsDedekindDomain |
| 15 | open scoped Classical BigOperators |
| 16 | |
| 17 | variable (R S K : Type*) [CommRing R] [CommRing S] [IsDomain R] |
| 18 | [IsLocalRing R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 19 | [IsDedekindDomain S] [Field K] [Algebra R S] [Module.Finite R S] |
| 20 | [Algebra R K] [Algebra S K] [IsScalarTower R S K] |
| 21 | [IsFractionRing R K] [IsFractionRing S K] |
| 22 | |
| 23 | include K in |
| 24 | omit [IsDomain R] [IsLocalRing R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 25 | [IsDedekindDomain S] [Module.Finite R S] [IsFractionRing S K] in |
| 26 | theorem algebraMap_injective : Function.Injective (algebraMap R S) := by |
| 27 | apply Function.Injective.of_comp (f := algebraMap S K) |
| 28 | simpa only [← RingHom.coe_comp, ← IsScalarTower.algebraMap_eq] using |
| 29 | IsFractionRing.injective R K |
| 30 | |
| 31 | omit [IsDomain R] [IsLocalRing R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 32 | [Module.Finite R S] in |
| 33 | theorem localOrder_div (P : HeightOneSpectrum S) (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 34 | SemilocalDivisorNorm.localOrder P ((FractionRing.algEquiv S K).symm |
| 35 | (algebraMap R K a / algebraMap R K b)) = |
| 36 | ((UniqueFactorizationMonoid.normalizedFactors |
| 37 | (Ideal.span ({algebraMap R S a} : Set S))).count P.asIdeal : ℤ) - |
| 38 | ((UniqueFactorizationMonoid.normalizedFactors |
| 39 | (Ideal.span ({algebraMap R S b} : Set S))).count P.asIdeal : ℤ) := by |
| 40 | rw [IsScalarTower.algebraMap_apply R S K, IsScalarTower.algebraMap_apply R S K, |
| 41 | map_div₀, AlgEquiv.commutes, AlgEquiv.commutes] |
| 42 | exact SemilocalDivisorNorm.localOrder_div P (algebraMap R S a) (algebraMap R S b) |
| 43 | ((map_ne_zero_iff _ (algebraMap_injective R S K)).mpr ha) |
| 44 | ((map_ne_zero_iff _ (algebraMap_injective R S K)).mpr hb) |
| 45 | |
| 46 | theorem log_ordFrac_eq_sum [Fintype (HeightOneSpectrum S)] (f : K) (hf : f ≠ 0) : |
| 47 | WithZero.log (Ring.ordFrac R f) = |
| 48 | ∑ P : HeightOneSpectrum S, (P.asIdeal.inertiaDeg R : ℤ) * |
| 49 | SemilocalDivisorNorm.localOrder P ((FractionRing.algEquiv S K).symm f) := by |
| 50 | obtain ⟨a, b, hb, rfl⟩ := IsFractionRing.div_surjective R f |
| 51 | have ha : a ≠ 0 := fun ha => hf (by simp [ha]) |
| 52 | have hb' : b ≠ 0 := mem_nonZeroDivisors_iff_ne_zero.mp hb |
| 53 | have haS : algebraMap R S a ≠ 0 := |
| 54 | (map_ne_zero_iff _ (algebraMap_injective R S K)).mpr ha |
| 55 | have hbS : algebraMap R S b ≠ 0 := |
| 56 | (map_ne_zero_iff _ (algebraMap_injective R S K)).mpr hb' |
| 57 | rw [Normalization.Divisor.log_ordFrac_div (S := S) a b ha hb'] |
| 58 | change (SemilocalNorm.normMultiplicity R (Ideal.span {algebraMap R S a}) : ℤ) - |
| 59 | (SemilocalNorm.normMultiplicity R (Ideal.span {algebraMap R S b}) : ℤ) = _ |
| 60 | rw [SemilocalDivisorNorm.normMultiplicity_eq_sum_counts R _ haS, |
| 61 | SemilocalDivisorNorm.normMultiplicity_eq_sum_counts R _ hbS] |
| 62 | simp_rw [localOrder_div R S K _ a b ha hb'] |
| 63 | simp only [Nat.cast_sum, Nat.cast_mul, mul_sub, Finset.sum_sub_distrib] |
| 64 | |
| 65 | /-- The finite branch set is obtained from the finite birational extension. -/ |
| 66 | theorem log_ordFrac_normalization (f : K) (hf : f ≠ 0) : |
| 67 | letI : Finite (HeightOneSpectrum S) := BranchOrder.finite_heightOneSpectrum R S |
| 68 | letI := Fintype.ofFinite (HeightOneSpectrum S) |
| 69 | WithZero.log (Ring.ordFrac R f) = |
| 70 | ∑ P : HeightOneSpectrum S, (P.asIdeal.inertiaDeg R : ℤ) * |
| 71 | SemilocalDivisorNorm.localOrder P ((FractionRing.algEquiv S K).symm f) := by |
| 72 | let : Finite (HeightOneSpectrum S) := BranchOrder.finite_heightOneSpectrum R S |
| 73 | let := Fintype.ofFinite (HeightOneSpectrum S) |
| 74 | exact log_ordFrac_eq_sum R S K f hf |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalNormalization |