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.Quaternion.Arithmetic.LocalBinaryNorm |
| 2 | import Mathlib.Topology.Algebra.Valued.LocallyCompact |
| 3 | |
| 4 | /-! # Norm Residue Field -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.Quaternion.Arithmetic.NormResidueField |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! The residue field of the norm valuation on a proper ultrametric |
| 13 | field is finite, and its zero class is detected by norm less than one. -/ |
| 14 | |
| 15 | open scoped Classical NNReal NormedField |
| 16 | open IsLocalRing |
| 17 | |
| 18 | variable (K : Type*) [NontriviallyNormedField K] [IsUltrametricDist K] |
| 19 | |
| 20 | abbrev normIntegerRing := (NormedField.valuation (K := K)).integer |
| 21 | |
| 22 | theorem normIntegerRing_norm_le_one (x : normIntegerRing K) : ‖(x : K)‖ ≤ 1 := x.property |
| 23 | |
| 24 | theorem normIntegerRing_residue_zero (x : normIntegerRing K) : |
| 25 | residue (normIntegerRing K) x = 0 ↔ ‖(x : K)‖ < 1 := by |
| 26 | rw [residue_eq_zero_iff, IsLocalRing.mem_maximalIdeal, mem_nonunits_iff, |
| 27 | Valuation.Integer.not_isUnit_iff_valuation_lt_one] |
| 28 | exact NNReal.coe_lt_coe.symm |
| 29 | |
| 30 | theorem normIntegerRing_finite_residue [ProperSpace K] : Finite (ResidueField (normIntegerRing K)) := by |
| 31 | have he : (normIntegerRing K : Set K) = Metric.closedBall 0 1 := by |
| 32 | ext x |
| 33 | change ‖x‖₊ ≤ 1 ↔ dist x 0 ≤ 1 |
| 34 | rw [dist_zero_right] |
| 35 | exact NNReal.coe_le_coe.symm |
| 36 | have hc : IsCompact (normIntegerRing K : Set K) := by |
| 37 | rw [he] |
| 38 | exact isCompact_closedBall _ _ |
| 39 | have hcompact : CompactSpace (normIntegerRing K) := isCompact_iff_compactSpace.mp hc |
| 40 | let : (Valued.v : Valuation K ℝ≥0).RankOne := |
| 41 | inferInstanceAs ((NormedField.valuation (K := K)).RankOne) |
| 42 | exact (Valued.integer.compactSpace_iff_completeSpace_and_isDiscreteValuationRing_and_finite_residueField |
| 43 | (K := K) (Γ₀ := ℝ≥0)).mp hcompact |>.2.2 |
| 44 | |
| 45 | theorem normIntegerRing_residue_char_ne_two (h2 : ‖(2 : K)‖ = 1) : |
| 46 | ringChar (ResidueField (normIntegerRing K)) ≠ 2 := by |
| 47 | intro hchar |
| 48 | have hz : (2 : ResidueField (normIntegerRing K)) = 0 := by |
| 49 | simpa only [hchar, Nat.cast_ofNat] using CharP.cast_eq_zero (ResidueField (normIntegerRing K)) |
| 50 | (ringChar (ResidueField (normIntegerRing K))) |
| 51 | have hres : residue (normIntegerRing K) (2 : normIntegerRing K) = 0 := by |
| 52 | simpa only [map_ofNat] using hz |
| 53 | have hn := (normIntegerRing_residue_zero K (2 : normIntegerRing K)).mp hres |
| 54 | change ‖(2 : K)‖ < 1 at hn |
| 55 | rw [h2] at hn |
| 56 | exact (lt_irrefl 1) hn |
| 57 | |
| 58 | end |
| 59 | |
| 60 | /-! A binary quaternion norm equation with unit coefficients is |
| 61 | solvable over any proper ultrametric field whose residue characteristic |
| 62 | is odd. -/ |
| 63 | |
| 64 | open scoped Classical |
| 65 | |
| 66 | variable {K : Type*} [NontriviallyNormedField K] [IsUltrametricDist K] [ProperSpace K] |
| 67 | |
| 68 | theorem unit_binary_norm_surjective (a b : K) (ha : ‖a‖ = 1) (hb : ‖b‖ = 1) |
| 69 | (h2 : ‖(2 : K)‖ = 1) : ∃ x y : K, x ^ 2 - a * y ^ 2 = b := by |
| 70 | let R := normIntegerRing K |
| 71 | let : Finite (IsLocalRing.ResidueField R) := normIntegerRing_finite_residue K |
| 72 | let aR : R := ⟨a, ha.le⟩ |
| 73 | let bR : R := ⟨b, hb.le⟩ |
| 74 | exact LocalBinaryNorm.local_binary_norm_surjective R (normIntegerRing_norm_le_one K) |
| 75 | (normIntegerRing_residue_zero K) (normIntegerRing_residue_char_ne_two K h2) |
| 76 | h2 aR bR ha hb |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.NumberTheory.Quaternion.Arithmetic.NormResidueField |