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 Mathlib.RingTheory.Ideal.Norm.RelNorm |
| 2 | import Mathlib.RingTheory.OrderOfVanishing.Noetherian |
| 3 | |
| 4 | /-! # Norm -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Norm |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! |
| 11 | # ProjectionFormula: local norm and divisor multiplicities |
| 12 | |
| 13 | For a finite local extension of discrete valuation rings in characteristic |
| 14 | zero (more generally with perfect fraction field), the order of a norm is |
| 15 | the residue-field degree times the source order. This is the local numerical |
| 16 | identity needed when pushing principal divisors through a finite map. |
| 17 | -/ |
| 18 | |
| 19 | open IsLocalRing IsDiscreteValuationRing |
| 20 | |
| 21 | variable {R S : Type*} [CommRing R] [CommRing S] [IsDomain R] [IsDomain S] |
| 22 | [IsDiscreteValuationRing R] [IsDiscreteValuationRing S] |
| 23 | [Algebra R S] [Module.Finite R S] [Module.IsTorsionFree R S] |
| 24 | [IsLocalHom (algebraMap R S)] [PerfectField (FractionRing R)] |
| 25 | |
| 26 | /-- The norm of a uniformizer has order the residue-field extension degree. -/ |
| 27 | theorem ord_intNorm_uniformizer (π : S) (hπ : Irreducible π) : |
| 28 | Ring.ord R (Algebra.intNorm R S π) = ((IsLocalRing.maximalIdeal S).inertiaDeg R : ℕ∞) := by |
| 29 | have hI : Ideal.span {Algebra.intNorm R S π} = |
| 30 | IsLocalRing.maximalIdeal R ^ (IsLocalRing.maximalIdeal S).inertiaDeg R := by |
| 31 | rw [← Ideal.relNorm_singleton, ← hπ.maximalIdeal_eq] |
| 32 | exact Ideal.relNorm_eq_pow_of_isMaximal |
| 33 | (IsLocalRing.maximalIdeal S) (IsLocalRing.maximalIdeal R) |
| 34 | change Module.length R (R ⧸ Ideal.span {Algebra.intNorm R S π}) = _ |
| 35 | rw [hI, length_quotient_pow_maximalIdeal] |
| 36 | |
| 37 | /-- The actual norm multiplies orders by the residue degree. -/ |
| 38 | theorem ord_intNorm (a : S) (ha : a ≠ 0) : |
| 39 | Ring.ord R (Algebra.intNorm R S a) = |
| 40 | ((IsLocalRing.maximalIdeal S).inertiaDeg R : ℕ∞) * Ring.ord S a := by |
| 41 | obtain ⟨π, hπ⟩ := exists_irreducible S |
| 42 | obtain ⟨k, u, rfl⟩ := eq_unit_mul_pow_irreducible ha hπ |
| 43 | rw [map_mul, map_pow, Ring.ord_mul_of_isUnit_left (u.isUnit.map (Algebra.intNorm R S)), |
| 44 | Ring.ord_pow, ord_intNorm_uniformizer π hπ, |
| 45 | Ring.ord_mul_of_isUnit_left u.isUnit, Ring.ord_pow, Ring.ord_of_irreducible hπ] |
| 46 | · simp [nsmul_eq_mul, mul_comm] |
| 47 | · exact mem_nonZeroDivisors_iff_ne_zero.mpr hπ.ne_zero |
| 48 | · exact mem_nonZeroDivisors_iff_ne_zero.mpr |
| 49 | (Algebra.intNorm_ne_zero.mpr hπ.ne_zero) |
| 50 | |
| 51 | /-- The multiplier above is the native degree of the residue-field extension. -/ |
| 52 | theorem ord_intNorm_residueDegree (a : S) (ha : a ≠ 0) : |
| 53 | Ring.ord R (Algebra.intNorm R S a) = |
| 54 | (Module.finrank (ResidueField R) (ResidueField S) : ℕ∞) * Ring.ord S a := by |
| 55 | rw [ord_intNorm a ha, Ideal.inertiaDeg_eq_of_isMaximal |
| 56 | (IsLocalRing.maximalIdeal R) (IsLocalRing.maximalIdeal S)] |
| 57 | rfl |
| 58 | |
| 59 | attribute [local instance] FractionRing.liftAlgebra |
| 60 | |
| 61 | /-- The corresponding fraction-field order of the norm of a uniformizer. -/ |
| 62 | theorem ordFrac_norm_uniformizer (π : S) (hπ : Irreducible π) : |
| 63 | Ring.ordFrac R (Algebra.norm (FractionRing R) |
| 64 | (algebraMap S (FractionRing S) π)) = |
| 65 | WithZero.exp ((IsLocalRing.maximalIdeal S).inertiaDeg R : ℤ) := by |
| 66 | rw [← Algebra.algebraMap_intNorm_fractionRing] |
| 67 | rw [Ring.ordFrac_eq_ord R (Algebra.intNorm_ne_zero.mpr hπ.ne_zero)] |
| 68 | exact Ring.ordMonoidWithZeroHom_eq_coe R |
| 69 | (mem_nonZeroDivisors_iff_ne_zero.mpr (Algebra.intNorm_ne_zero.mpr hπ.ne_zero)) |
| 70 | (ord_intNorm_uniformizer π hπ) |
| 71 | |
| 72 | /-- Norm and order for arbitrary nonzero rational functions in the local |
| 73 | fraction fields; negative orders are included through integer powers. -/ |
| 74 | theorem ordFrac_norm (a : FractionRing S) (ha : a ≠ 0) : |
| 75 | Ring.ordFrac R (Algebra.norm (FractionRing R) a) = |
| 76 | (Ring.ordFrac S a) ^ (IsLocalRing.maximalIdeal S).inertiaDeg R := by |
| 77 | obtain ⟨π, hπ⟩ := exists_irreducible S |
| 78 | obtain ⟨k, u, rfl⟩ := exists_units_eq_smul_zpow_of_irreducible hπ ha |
| 79 | rw [Units.smul_def, Algebra.smul_def, map_mul, Algebra.norm_zpow, |
| 80 | ← Algebra.algebraMap_intNorm_fractionRing, map_mul, map_zpow₀, |
| 81 | Ring.ordFrac_of_isUnit (u.isUnit.map (Algebra.intNorm R S)), |
| 82 | ordFrac_norm_uniformizer π hπ, one_mul] |
| 83 | rw [map_mul, map_zpow₀, Ring.ordFrac_of_isUnit u.isUnit, |
| 84 | Ring.ordFrac_irreducible hπ, one_mul] |
| 85 | simp only [← WithZero.exp_zsmul, ← WithZero.exp_nsmul, zsmul_eq_mul, |
| 86 | nsmul_eq_mul, mul_one, mul_comm] |
| 87 | |
| 88 | /-- Additive integer-valued form of the local norm formula. -/ |
| 89 | theorem log_ordFrac_norm (a : FractionRing S) (ha : a ≠ 0) : |
| 90 | WithZero.log (Ring.ordFrac R (Algebra.norm (FractionRing R) a)) = |
| 91 | ((IsLocalRing.maximalIdeal S).inertiaDeg R : ℤ) * |
| 92 | WithZero.log (Ring.ordFrac S a) := by |
| 93 | rw [ordFrac_norm a ha, WithZero.log_pow] |
| 94 | rfl |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Local.Norm |