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.HodgeConjecture.CMExtraction.Unipotent |
| 2 | import Mathlib.MeasureTheory.Measure.Haar.Basic |
| 3 | import Mathlib.NumberTheory.Padics.ProperSpace |
| 4 | |
| 5 | /-! # Padic Integral Haar -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.PadicIntegralHaar.Iwasawa |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual p-adic integer subset is compact and open. Its normalized |
| 12 | additive Haar measure supplies the auxiliary integral choice internally. -/ |
| 13 | |
| 14 | open _root_.MeasureTheory _root_.TopologicalSpace |
| 15 | |
| 16 | variable (q : ℕ) [Fact q.Prime] |
| 17 | |
| 18 | theorem padicIntegralSet_compact : IsCompact (Unipotent.Iwasawa.padicIntegralSet q) := by |
| 19 | let : CompactSpace ℤ_[q] := PadicInt.compactSpace q |
| 20 | change IsCompact (Set.range (fun x : ℤ_[q] => (x : ℚ_[q]))) |
| 21 | exact isCompact_range (show Continuous (fun x : ℤ_[q] => (x : ℚ_[q])) from |
| 22 | (PadicInt.isOpenEmbedding_coe (p := q)).continuous) |
| 23 | |
| 24 | theorem padicIntegralSet_open : IsOpen (Unipotent.Iwasawa.padicIntegralSet q) := |
| 25 | PadicInt.isOpenEmbedding_coe.isOpen_range |
| 26 | |
| 27 | def padicIntegralPositiveCompact : PositiveCompacts ℚ_[q] where |
| 28 | carrier := Unipotent.Iwasawa.padicIntegralSet q |
| 29 | isCompact' := padicIntegralSet_compact q |
| 30 | interior_nonempty' := by |
| 31 | rw [(padicIntegralSet_open q).interior_eq] |
| 32 | exact ⟨0, 0, map_zero (PadicInt.Coe.ringHom (p := q))⟩ |
| 33 | |
| 34 | variable [MeasurableSpace ℚ_[q]] [BorelSpace ℚ_[q]] |
| 35 | |
| 36 | def padicIntegralHaar : Measure ℚ_[q] := Measure.addHaarMeasure (padicIntegralPositiveCompact q) |
| 37 | |
| 38 | instance padicIntegralHaar_invariant : (padicIntegralHaar q).IsAddLeftInvariant := |
| 39 | inferInstanceAs ((Measure.addHaarMeasure (padicIntegralPositiveCompact q)).IsAddLeftInvariant) |
| 40 | |
| 41 | theorem padicIntegralHaar_volume : padicIntegralHaar q (Unipotent.Iwasawa.padicIntegralSet q) = 1 := |
| 42 | Measure.addHaarMeasure_self |
| 43 | |
| 44 | omit [MeasurableSpace ℚ_[q]] [BorelSpace ℚ_[q]] in |
| 45 | theorem padic_residue_card : Nat.card (IsLocalRing.ResidueField ℤ_[q]) = q := by |
| 46 | rw [Nat.card_congr PadicInt.residueField.toEquiv] |
| 47 | simp |
| 48 | |
| 49 | end |
| 50 | |
| 51 | end OAI.AlgebraicGeometry.HodgeConjecture.CMExtraction.PadicIntegralHaar.Iwasawa |