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.NumberTheory.PadicHodge.WeakAdmissibility.CoefficientFunctoriality |
| 2 | import OAI.NumberTheory.PadicHodge.WeakAdmissibility.ResidueCoefficientField |
| 3 | |
| 4 | /-! # Unramified Subfields -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.WeakAdmissibility.UnramifiedSubfields |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Unramified subextensions defined by their actual finite etale integer rings. -/ |
| 11 | |
| 12 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.Logarithm.PeriodRings OAI.NumberTheory.PadicHodge.WeakAdmissibility.FiniteFieldResidue OAI.NumberTheory.PadicHodge.WeakAdmissibility.CoefficientFunctoriality.ValuationRing OAI.NumberTheory.PadicHodge.WeakAdmissibility.ResidueCoefficientField |
| 13 | open OAI.NumberTheory.PadicHodge.WeakAdmissibility.UnramifiedCoefficients OAI.NumberTheory.PadicHodge.WeakAdmissibility.AlgebraicCoefficientFields |
| 14 | variable (p : ℕ) [Fact p.Prime] |
| 15 | variable (L : IntermediateField ℚ_[p] (PadicAlgCl p)) |
| 16 | |
| 17 | instance integerBaseFieldAlgebra : Algebra ℤ_[p] L := |
| 18 | ((algebraMap ℚ_[p] L).comp (algebraMap ℤ_[p] ℚ_[p])).toAlgebra |
| 19 | |
| 20 | instance integerBaseFieldModule : Module ℤ_[p] L := Algebra.toModule |
| 21 | |
| 22 | instance integerBasePadicTower : IsScalarTower ℤ_[p] ℚ_[p] L := |
| 23 | IsScalarTower.of_algebraMap_eq (R := ℤ_[p]) (S := ℚ_[p]) (A := L) fun _ => rfl |
| 24 | |
| 25 | instance integerBaseValuationTower : IsScalarTower ℤ_[p] (FiniteFieldResidue.FieldIntegers p L) L := |
| 26 | IsScalarTower.of_algebraMap_eq (R := ℤ_[p]) (S := FiniteFieldResidue.FieldIntegers p L) (A := L) fun _ => rfl |
| 27 | |
| 28 | theorem padicToFieldIntegers_injective : Function.Injective (CoefficientFunctoriality.ValuationRing.padicToFieldIntegers p L) := by |
| 29 | intro a b hab |
| 30 | have h := congrArg Subtype.val hab |
| 31 | change algebraMap ℚ_[p] L (a : ℚ_[p]) = algebraMap ℚ_[p] L (b : ℚ_[p]) at h |
| 32 | exact Subtype.ext ((algebraMap ℚ_[p] L).injective h) |
| 33 | |
| 34 | instance fieldIntegersTorsionFree : Module.IsTorsionFree ℤ_[p] (FiniteFieldResidue.FieldIntegers p L) := |
| 35 | Module.isTorsionFree_iff_algebraMap_injective.mpr (padicToFieldIntegers_injective p L) |
| 36 | |
| 37 | /-- A finite unramified extension has a finite etale actual valuation ring over Z_p. -/ |
| 38 | def IsUnramified : Prop := |
| 39 | Module.Finite ℤ_[p] (FiniteFieldResidue.FieldIntegers p L) ∧ Algebra.Etale ℤ_[p] (FiniteFieldResidue.FieldIntegers p L) |
| 40 | |
| 41 | variable [Module.Finite ℚ_[p] L] |
| 42 | |
| 43 | theorem unramified_finrank (hL : IsUnramified p L) : |
| 44 | Module.finrank ℚ_[p] L = (UnramifiedCoefficients.residueDegree (p := p) (k := FiniteFieldResidue.FieldResidue p L) : ℕ) := by |
| 45 | let : Module.Finite ℤ_[p] (FiniteFieldResidue.FieldIntegers p L) := hL.1 |
| 46 | let : Algebra.Etale ℤ_[p] (FiniteFieldResidue.FieldIntegers p L) := hL.2 |
| 47 | rw [IsFractionRing.finrank_eq ℤ_[p] ℚ_[p] (FiniteFieldResidue.FieldIntegers p L) L, |
| 48 | IsLocalRing.finrank_eq_finrank_residueField] |
| 49 | apply Nat.pow_right_injective (Fact.out : p.Prime).two_le |
| 50 | have he := Module.natCard_eq_pow_finrank (K := IsLocalRing.ResidueField ℤ_[p]) |
| 51 | (V := FiniteFieldResidue.FieldResidue p L) |
| 52 | have hbase : Nat.card (IsLocalRing.ResidueField ℤ_[p]) = p := by |
| 53 | rw [Nat.card_congr (PadicInt.residueField (p := p)).toEquiv, Nat.card_eq_fintype_card, ZMod.card] |
| 54 | rw [hbase, Nat.card_eq_fintype_card, UnramifiedCoefficients.residueDegree_card] at he |
| 55 | exact he.symm |
| 56 | |
| 57 | theorem unramified_eq_residueCoefficient (hL : IsUnramified p L) : |
| 58 | ResidueCoefficientField.residueCoefficientSubfield p L = L := by |
| 59 | apply IntermediateField.eq_of_le_of_finrank_eq (ResidueCoefficientField.residueCoefficientSubfield_le p L) |
| 60 | change Module.finrank ℚ_[p] (AlgebraicCoefficientFields.coefficientSubfield p (FiniteFieldResidue.residueEmbedding p L)) = Module.finrank ℚ_[p] L |
| 61 | rw [← (AlgebraicCoefficientFields.coefficientSubfieldEquiv p (FiniteFieldResidue.residueEmbedding p L)).toLinearEquiv.finrank_eq, |
| 62 | ResidueCoefficientField.residueCoefficient_finrank, unramified_finrank p L hL] |
| 63 | |
| 64 | theorem residueCoefficient_isUnramified : IsUnramified p (ResidueCoefficientField.residueCoefficientSubfield p L) := |
| 65 | ⟨CoefficientFunctoriality.ValuationRing.coefficientIntegersFinite p (FiniteFieldResidue.residueEmbedding p L), CoefficientFunctoriality.ValuationRing.coefficientIntegersEtale p (FiniteFieldResidue.residueEmbedding p L)⟩ |
| 66 | |
| 67 | end |
| 68 | |
| 69 | end OAI.NumberTheory.PadicHodge.WeakAdmissibility.UnramifiedSubfields |