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.BranchOrder |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalNorm |
| 3 | |
| 4 | /-! # Semilocal Divisor Norm -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalDivisorNorm |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The norm formula written in the actual integer orders at every source |
| 11 | prime. Several branches and negative orders are included. -/ |
| 12 | |
| 13 | open IsDedekindDomain UniqueFactorizationMonoid |
| 14 | open scoped Classical BigOperators |
| 15 | |
| 16 | variable {S : Type*} [CommRing S] [IsDedekindDomain S] |
| 17 | |
| 18 | def localOrder (P : HeightOneSpectrum S) (f : FractionRing S) : ℤ := |
| 19 | letI := IsLocalization.AtPrime.isDiscreteValuationRing_of_dedekind_domain |
| 20 | S P.ne_bot (Localization.AtPrime P.asIdeal) |
| 21 | WithZero.log (Ring.ordFrac (Localization.AtPrime P.asIdeal) f) |
| 22 | |
| 23 | theorem localOrder_div (P : HeightOneSpectrum S) (a b : S) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 24 | localOrder P (algebraMap S (FractionRing S) a / algebraMap S (FractionRing S) b) = |
| 25 | ((normalizedFactors (Ideal.span ({a} : Set S))).count P.asIdeal : ℤ) - |
| 26 | ((normalizedFactors (Ideal.span ({b} : Set S))).count P.asIdeal : ℤ) := by |
| 27 | let A := Localization.AtPrime P.asIdeal |
| 28 | let := IsLocalization.AtPrime.isDiscreteValuationRing_of_dedekind_domain S P.ne_bot A |
| 29 | have hi : Function.Injective (algebraMap S A) := |
| 30 | IsLocalization.injective A P.asIdeal.primeCompl_le_nonZeroDivisors |
| 31 | have ha' : algebraMap S A a ≠ 0 := (map_ne_zero_iff _ hi).mpr ha |
| 32 | have hb' : algebraMap S A b ≠ 0 := (map_ne_zero_iff _ hi).mpr hb |
| 33 | change WithZero.log (Ring.ordFrac A _) = _ |
| 34 | rw [IsScalarTower.algebraMap_apply S A (FractionRing S), |
| 35 | IsScalarTower.algebraMap_apply S A (FractionRing S), map_div₀, |
| 36 | Ring.ordFrac_eq_ord A ha', Ring.ordFrac_eq_ord A hb', |
| 37 | Ring.ordMonoidWithZeroHom_eq_coe A (mem_nonZeroDivisors_of_ne_zero ha') |
| 38 | (BranchOrder.ord_eq_count P.asIdeal P.ne_bot a ha), |
| 39 | Ring.ordMonoidWithZeroHom_eq_coe A (mem_nonZeroDivisors_of_ne_zero hb') |
| 40 | (BranchOrder.ord_eq_count P.asIdeal P.ne_bot b hb)] |
| 41 | exact WithZero.log_div (by simp) (by simp) |
| 42 | |
| 43 | theorem normMultiplicity_eq_sum_counts |
| 44 | (R : Type*) [CommRing R] [IsLocalRing R] [Algebra R S] [Module.Finite R S] |
| 45 | [Fintype (HeightOneSpectrum S)] (a : S) (ha : a ≠ 0) : |
| 46 | SemilocalNorm.normMultiplicity R (Ideal.span {a}) = |
| 47 | ∑ P : HeightOneSpectrum S, P.asIdeal.inertiaDeg R * |
| 48 | (normalizedFactors (Ideal.span ({a} : Set S))).count P.asIdeal := by |
| 49 | have h := BranchOrder.length_eq_sum_local_orders R a ha |
| 50 | rw [SemilocalLength.length_quotient_eq_sum _ |
| 51 | (fun h => ha (Ideal.span_singleton_eq_bot.mp h))] at h |
| 52 | simp_rw [BranchOrder.ord_eq_count _ (HeightOneSpectrum.ne_bot _) a ha] at h |
| 53 | exact_mod_cast h |
| 54 | |
| 55 | attribute [local instance] FractionRing.liftAlgebra |
| 56 | |
| 57 | /-- The full local norm-divisor formula for a finite normal algebra over a |
| 58 | DVR: sum all branch orders with their residue-field degrees. -/ |
| 59 | theorem log_ordFrac_norm_eq_sum |
| 60 | (R : Type*) [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 61 | [Algebra R S] [Module.Finite R S] [Module.IsTorsionFree R S] |
| 62 | [PerfectField (FractionRing R)] [Fintype (HeightOneSpectrum S)] |
| 63 | (a b : S) (ha : a ≠ 0) (hb : b ≠ 0) : |
| 64 | WithZero.log (Ring.ordFrac R (Algebra.norm (FractionRing R) |
| 65 | (algebraMap S (FractionRing S) a / algebraMap S (FractionRing S) b))) = |
| 66 | ∑ P : HeightOneSpectrum S, (P.asIdeal.inertiaDeg R : ℤ) * |
| 67 | localOrder P (algebraMap S (FractionRing S) a / algebraMap S (FractionRing S) b) := by |
| 68 | rw [SemilocalNorm.log_ordFrac_norm_div a b ha hb, |
| 69 | normMultiplicity_eq_sum_counts R a ha, normMultiplicity_eq_sum_counts R b hb] |
| 70 | simp_rw [localOrder_div _ a b ha hb] |
| 71 | simp only [Nat.cast_sum, Nat.cast_mul, mul_sub, Finset.sum_sub_distrib] |
| 72 | |
| 73 | /-- The local norm formula for every nonzero rational function. The finite |
| 74 | set of source branches is supplied by module finiteness over the local base. -/ |
| 75 | theorem log_ordFrac_norm |
| 76 | (R : Type*) [CommRing R] [IsDomain R] [IsDiscreteValuationRing R] |
| 77 | [Algebra R S] [Module.Finite R S] [Module.IsTorsionFree R S] |
| 78 | [PerfectField (FractionRing R)] (f : FractionRing S) (hf : f ≠ 0) : |
| 79 | letI : Finite (HeightOneSpectrum S) := BranchOrder.finite_heightOneSpectrum R S |
| 80 | letI := Fintype.ofFinite (HeightOneSpectrum S) |
| 81 | WithZero.log (Ring.ordFrac R (Algebra.norm (FractionRing R) f)) = |
| 82 | ∑ P : HeightOneSpectrum S, (P.asIdeal.inertiaDeg R : ℤ) * localOrder P f := by |
| 83 | let : Finite (HeightOneSpectrum S) := BranchOrder.finite_heightOneSpectrum R S |
| 84 | let := Fintype.ofFinite (HeightOneSpectrum S) |
| 85 | obtain ⟨a, b, hb, rfl⟩ := IsFractionRing.div_surjective S f |
| 86 | have ha : a ≠ 0 := fun ha => hf (by simp [ha]) |
| 87 | exact log_ordFrac_norm_eq_sum R a b ha (mem_nonZeroDivisors_iff_ne_zero.mp hb) |
| 88 | |
| 89 | end |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.SemilocalDivisorNorm |