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.CycleClass.Thom.BranchOrder |
| 2 | import OAI.AlgebraicGeometry.CycleClass.Thom.Normalization.Local |
| 3 | |
| 4 | /-! # Semilocal Divisor Norm -/ |
| 5 | |
| 6 | namespace OAI |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | namespace AlgebraicGeometry.CycleClass.Thom.SemilocalDivisorNorm.Constructions |
| 11 | |
| 12 | /-! The norm formula written in the actual integer orders at every source |
| 13 | prime. Several branches and negative orders are included. -/ |
| 14 | |
| 15 | open IsDedekindDomain UniqueFactorizationMonoid |
| 16 | open scoped Classical BigOperators |
| 17 | |
| 18 | variable {S : Type*} [CommRing S] [IsDedekindDomain S] |
| 19 | |
| 20 | def localOrder (P : HeightOneSpectrum S) (f : FractionRing S) : ℤ := |
| 21 | letI := IsLocalization.AtPrime.isDiscreteValuationRing_of_dedekind_domain |
| 22 | S P.ne_bot (Localization.AtPrime P.asIdeal) |
| 23 | WithZero.log (Ring.ordFrac (Localization.AtPrime P.asIdeal) f) |
| 24 | |
| 25 | theorem localOrder_div (P : HeightOneSpectrum S) (a b : S) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 26 | localOrder P (algebraMap S (FractionRing S) a / algebraMap S (FractionRing S) b) = |
| 27 | ((normalizedFactors (Ideal.span ({a} : Set S))).count P.asIdeal : ℤ) - |
| 28 | ((normalizedFactors (Ideal.span ({b} : Set S))).count P.asIdeal : ℤ) := by |
| 29 | let A := Localization.AtPrime P.asIdeal |
| 30 | let := IsLocalization.AtPrime.isDiscreteValuationRing_of_dedekind_domain S P.ne_bot A |
| 31 | have hi : Function.Injective (algebraMap S A) := |
| 32 | IsLocalization.injective A P.asIdeal.primeCompl_le_nonZeroDivisors |
| 33 | have ha' : algebraMap S A a ≠ 0 := (map_ne_zero_iff _ hi).mpr ha |
| 34 | have hb' : algebraMap S A b ≠ 0 := (map_ne_zero_iff _ hi).mpr hb |
| 35 | change WithZero.log (Ring.ordFrac A _) = _ |
| 36 | rw [IsScalarTower.algebraMap_apply S A (FractionRing S), |
| 37 | IsScalarTower.algebraMap_apply S A (FractionRing S), map_div₀, |
| 38 | Ring.ordFrac_eq_ord A ha', Ring.ordFrac_eq_ord A hb', |
| 39 | Ring.ordMonoidWithZeroHom_eq_coe A (mem_nonZeroDivisors_of_ne_zero ha') |
| 40 | (BranchOrder.Constructions.ord_eq_count P.asIdeal P.ne_bot a ha), |
| 41 | Ring.ordMonoidWithZeroHom_eq_coe A (mem_nonZeroDivisors_of_ne_zero hb') |
| 42 | (BranchOrder.Constructions.ord_eq_count P.asIdeal P.ne_bot b hb)] |
| 43 | exact WithZero.log_div (by simp) (by simp) |
| 44 | |
| 45 | theorem normMultiplicity_eq_sum_counts |
| 46 | (R : Type*) [CommRing R] [IsLocalRing R] [Algebra R S] [Module.Finite R S] |
| 47 | [Fintype (HeightOneSpectrum S)] (a : S) (ha : a ≠ 0) : |
| 48 | ((normalizedFactors (Ideal.span ({a} : Set S))).map (fun P => P.inertiaDeg R)).sum = |
| 49 | ∑ P : HeightOneSpectrum S, P.asIdeal.inertiaDeg R * |
| 50 | (normalizedFactors (Ideal.span ({a} : Set S))).count P.asIdeal := by |
| 51 | have h := BranchOrder.Constructions.length_eq_sum_local_orders R a ha |
| 52 | rw [SemilocalLength.Constructions.length_quotient_eq_sum _ |
| 53 | (fun h => ha (Ideal.span_singleton_eq_bot.mp h))] at h |
| 54 | simp_rw [BranchOrder.Constructions.ord_eq_count _ (HeightOneSpectrum.ne_bot _) a ha] at h |
| 55 | exact_mod_cast h |
| 56 | |
| 57 | end AlgebraicGeometry.CycleClass.Thom.SemilocalDivisorNorm.Constructions |
| 58 | |
| 59 | namespace AlgebraicGeometry.CycleClass.Thom.SemilocalDivisorNorm.Constructions.Normalization |
| 60 | |
| 61 | /-! The divisor of a rational function on a possibly singular local curve |
| 62 | is the sum of its orders on the finite normal branches, weighted by the |
| 63 | actual residue-field degrees. The fraction field is shared by construction. -/ |
| 64 | |
| 65 | open IsDedekindDomain |
| 66 | open scoped Classical BigOperators |
| 67 | |
| 68 | variable (R S K : Type*) [CommRing R] [CommRing S] [IsDomain R] |
| 69 | [IsLocalRing R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 70 | [IsDedekindDomain S] [Field K] [Algebra R S] [Module.Finite R S] |
| 71 | [Algebra R K] [Algebra S K] [IsScalarTower R S K] |
| 72 | [IsFractionRing R K] [IsFractionRing S K] |
| 73 | |
| 74 | include K in |
| 75 | omit [IsDomain R] [IsLocalRing R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 76 | [IsDedekindDomain S] [Module.Finite R S] [IsFractionRing S K] in |
| 77 | theorem algebraMap_injective : Function.Injective (algebraMap R S) := by |
| 78 | apply Function.Injective.of_comp (f := algebraMap S K) |
| 79 | simpa only [← RingHom.coe_comp, ← IsScalarTower.algebraMap_eq] using |
| 80 | IsFractionRing.injective R K |
| 81 | |
| 82 | omit [IsDomain R] [IsLocalRing R] [IsNoetherianRing R] [Ring.KrullDimLE 1 R] |
| 83 | [Module.Finite R S] in |
| 84 | theorem localOrder_div (P : HeightOneSpectrum S) (a b : R) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 85 | localOrder P ((FractionRing.algEquiv S K).symm |
| 86 | (algebraMap R K a / algebraMap R K b)) = |
| 87 | ((UniqueFactorizationMonoid.normalizedFactors |
| 88 | (Ideal.span ({algebraMap R S a} : Set S))).count P.asIdeal : ℤ) - |
| 89 | ((UniqueFactorizationMonoid.normalizedFactors |
| 90 | (Ideal.span ({algebraMap R S b} : Set S))).count P.asIdeal : ℤ) := by |
| 91 | rw [IsScalarTower.algebraMap_apply R S K, IsScalarTower.algebraMap_apply R S K, |
| 92 | map_div₀, AlgEquiv.commutes, AlgEquiv.commutes] |
| 93 | exact Constructions.localOrder_div P (algebraMap R S a) (algebraMap R S b) |
| 94 | ((map_ne_zero_iff _ (algebraMap_injective R S K)).mpr ha) |
| 95 | ((map_ne_zero_iff _ (algebraMap_injective R S K)).mpr hb) |
| 96 | |
| 97 | theorem log_ordFrac_eq_sum [Fintype (HeightOneSpectrum S)] (f : K) (hf : f ≠ 0) : |
| 98 | WithZero.log (Ring.ordFrac R f) = |
| 99 | ∑ P : HeightOneSpectrum S, (P.asIdeal.inertiaDeg R : ℤ) * |
| 100 | localOrder P ((FractionRing.algEquiv S K).symm f) := by |
| 101 | obtain ⟨a, b, hb, rfl⟩ := IsFractionRing.div_surjective R f |
| 102 | have ha : a ≠ 0 := fun ha => hf (by simp [ha]) |
| 103 | have hb' : b ≠ 0 := mem_nonZeroDivisors_iff_ne_zero.mp hb |
| 104 | have haS : algebraMap R S a ≠ 0 := |
| 105 | (map_ne_zero_iff _ (algebraMap_injective R S K)).mpr ha |
| 106 | have hbS : algebraMap R S b ≠ 0 := |
| 107 | (map_ne_zero_iff _ (algebraMap_injective R S K)).mpr hb' |
| 108 | rw [Normalization.Local.Constructions.Divisor.log_ordFrac_div (S := S) a b ha hb'] |
| 109 | change (Normalization.Local.Constructions.Divisor.branchMultiplicity R S a : ℤ) - |
| 110 | (Normalization.Local.Constructions.Divisor.branchMultiplicity R S b : ℤ) = _ |
| 111 | unfold Normalization.Local.Constructions.Divisor.branchMultiplicity |
| 112 | rw [normMultiplicity_eq_sum_counts R _ haS, |
| 113 | normMultiplicity_eq_sum_counts R _ hbS] |
| 114 | simp_rw [localOrder_div R S K _ a b ha hb'] |
| 115 | simp only [Nat.cast_sum, Nat.cast_mul, mul_sub, Finset.sum_sub_distrib] |
| 116 | |
| 117 | /-- The finite branch set is obtained from the finite birational extension. -/ |
| 118 | theorem log_ordFrac_normalization (f : K) (hf : f ≠ 0) : |
| 119 | letI : Finite (HeightOneSpectrum S) := BranchOrder.Constructions.finite_heightOneSpectrum R S |
| 120 | letI := Fintype.ofFinite (HeightOneSpectrum S) |
| 121 | WithZero.log (Ring.ordFrac R f) = |
| 122 | ∑ P : HeightOneSpectrum S, (P.asIdeal.inertiaDeg R : ℤ) * |
| 123 | localOrder P ((FractionRing.algEquiv S K).symm f) := by |
| 124 | let : Finite (HeightOneSpectrum S) := BranchOrder.Constructions.finite_heightOneSpectrum R S |
| 125 | let := Fintype.ofFinite (HeightOneSpectrum S) |
| 126 | exact log_ordFrac_eq_sum R S K f hf |
| 127 | |
| 128 | end AlgebraicGeometry.CycleClass.Thom.SemilocalDivisorNorm.Constructions.Normalization |
| 129 | |
| 130 | end |
| 131 | |
| 132 | end OAI |