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.Divisors.LineBundles.PositiveOrderIs |
| 2 | import Mathlib.Analysis.AbsoluteValue.Equivalence |
| 3 | |
| 4 | /-! # DVR Absolute Value -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Divisors.LineBundles.DVRAbsoluteValue.BundleCycles |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The real absolute value of an actual DVR and its fraction field. |
| 11 | It retains the same valuation ring and distinguishes the same orders. -/ |
| 12 | |
| 13 | open scoped NNReal |
| 14 | |
| 15 | variable (A K : Type*) [CommRing A] [IsDomain A] [IsDiscreteValuationRing A] |
| 16 | [Field K] [Algebra A K] [IsFractionRing A K] |
| 17 | |
| 18 | def dvrAbsoluteValue : AbsoluteValue K ℝ := |
| 19 | (IsDiscreteValuationRing.maximalIdeal A).adicAbv (by norm_num : (1 : ℝ≥0) < 2) |
| 20 | |
| 21 | theorem dvrAbsoluteValue_le_iff (x y : K) : |
| 22 | dvrAbsoluteValue A K x ≤ dvrAbsoluteValue A K y ↔ |
| 23 | (IsDiscreteValuationRing.maximalIdeal A).valuation K x ≤ |
| 24 | (IsDiscreteValuationRing.maximalIdeal A).valuation K y := by |
| 25 | change ((WithZeroMulInt.toNNReal (by norm_num : (2 : ℝ≥0) ≠ 0) _ : ℝ≥0) : ℝ) ≤ |
| 26 | ((WithZeroMulInt.toNNReal (by norm_num : (2 : ℝ≥0) ≠ 0) _ : ℝ≥0) : ℝ) ↔ _ |
| 27 | exact NNReal.coe_le_coe.trans |
| 28 | (WithZeroMulInt.toNNReal_strictMono (by norm_num : (1 : ℝ≥0) < 2)).le_iff_le |
| 29 | |
| 30 | theorem dvrAbsoluteValue_lt_iff (x y : K) : |
| 31 | dvrAbsoluteValue A K x < dvrAbsoluteValue A K y ↔ |
| 32 | (IsDiscreteValuationRing.maximalIdeal A).valuation K x < |
| 33 | (IsDiscreteValuationRing.maximalIdeal A).valuation K y := by |
| 34 | rw [lt_iff_not_ge, lt_iff_not_ge, dvrAbsoluteValue_le_iff] |
| 35 | |
| 36 | theorem dvrAbsoluteValue_eq_iff (x y : K) : |
| 37 | dvrAbsoluteValue A K x = dvrAbsoluteValue A K y ↔ |
| 38 | (IsDiscreteValuationRing.maximalIdeal A).valuation K x = |
| 39 | (IsDiscreteValuationRing.maximalIdeal A).valuation K y := by |
| 40 | rw [le_antisymm_iff, le_antisymm_iff, dvrAbsoluteValue_le_iff, dvrAbsoluteValue_le_iff] |
| 41 | |
| 42 | theorem dvrAbsoluteValue_nontrivial : (dvrAbsoluteValue A K).IsNontrivial := by |
| 43 | obtain ⟨π, hπ⟩ := (IsDiscreteValuationRing.maximalIdeal A).valuation_exists_uniformizer K |
| 44 | refine ⟨π, ?_, ?_⟩ |
| 45 | · intro h |
| 46 | rw [h, map_zero] at hπ |
| 47 | exact WithZero.coe_ne_zero hπ.symm |
| 48 | · intro h |
| 49 | have he := (dvrAbsoluteValue_eq_iff A K π 1).mp (h.trans (map_one _).symm) |
| 50 | rw [hπ, map_one] at he |
| 51 | exact (by decide : WithZero.exp (-1 : ℤ) ≠ 1) he |
| 52 | |
| 53 | theorem dvrAbsoluteValue_le_one_iff (x : K) : |
| 54 | dvrAbsoluteValue A K x ≤ 1 ↔ ∃ a : A, algebraMap A K a = x := by |
| 55 | have he : dvrAbsoluteValue A K x ≤ 1 ↔ |
| 56 | (IsDiscreteValuationRing.maximalIdeal A).valuation K x ≤ 1 := by |
| 57 | simpa only [map_one] using dvrAbsoluteValue_le_iff A K x 1 |
| 58 | rw [he] |
| 59 | exact ⟨IsDiscreteValuationRing.exists_lift_of_le_one, fun ⟨a, ha⟩ => |
| 60 | ha ▸ (IsDiscreteValuationRing.maximalIdeal A).valuation_le_one a⟩ |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.Divisors.LineBundles.DVRAbsoluteValue.BundleCycles |