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.FormalGeometry.Completion.NonnegativeQuadraticMk |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.QuadraticHeightDescent |
| 3 | |
| 4 | /-! # Quadratic Kernel Quotient -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A fixed integral normalization of a nonnegative quadratic function |
| 11 | gives a discrete positive height on the quotient by its actual zero subgroup. -/ |
| 12 | |
| 13 | universe u |
| 14 | |
| 15 | variable {G : Type u} [AddCommGroup G] (q : NonnegativeQuadraticMk.Construction.NonnegativeQuadratic G) |
| 16 | |
| 17 | theorem NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.quotientValue_nonneg (x : G ⧸ q.zeroKernel) : 0 ≤ q.quotientValue x := by |
| 18 | induction x using Quotient.inductionOn' with |
| 19 | | h x => exact q.nonneg x |
| 20 | |
| 21 | theorem NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.quotientValue_eq_zero_iff (x : G ⧸ q.zeroKernel) : q.quotientValue x = 0 ↔ x = 0 := by |
| 22 | induction x using Quotient.inductionOn' with |
| 23 | | h x => exact (QuotientAddGroup.eq_zero_iff (N := q.zeroKernel) x).symm |
| 24 | |
| 25 | def NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.quotientQuadratic : NonnegativeQuadraticMk.Construction.NonnegativeQuadratic (G ⧸ q.zeroKernel) where |
| 26 | value := q.quotientValue |
| 27 | zero := q.zero |
| 28 | nonneg := q.quotientValue_nonneg |
| 29 | parallelogram x y := by |
| 30 | induction x using Quotient.inductionOn' with |
| 31 | | h x => |
| 32 | induction y using Quotient.inductionOn' with |
| 33 | | h y => exact q.parallelogram x y |
| 34 | |
| 35 | def NonnegativeQuadraticMk.Construction.NonnegativeQuadratic.quotientHeight (D : ℕ) (hD : 0 < D) |
| 36 | (hint : ∀ x : G, ∃ z : ℤ, (D : ℚ) * q.value x = z) : |
| 37 | QuadraticHeightDescent.Construction.DiscreteQuadraticHeight (G ⧸ q.zeroKernel) where |
| 38 | value x := (D : ℝ) * (q.quotientValue x : ℝ) |
| 39 | zero := by change (D : ℝ) * (q.value 0 : ℝ) = 0; rw [q.zero, Rat.cast_zero, mul_zero] |
| 40 | positive x hx := by |
| 41 | induction x using Quotient.inductionOn' with |
| 42 | | h x => |
| 43 | have hq : q.value x ≠ 0 := by |
| 44 | intro h |
| 45 | exact hx ((q.quotientValue_eq_zero_iff (QuotientAddGroup.mk x)).mp h) |
| 46 | have hp := mul_pos (Nat.cast_pos.mpr hD : (0 : ℚ) < D) (lt_of_le_of_ne (q.nonneg x) hq.symm) |
| 47 | obtain ⟨z, hz⟩ := hint x |
| 48 | rw [hz] at hp |
| 49 | have hzpos : 0 < z := by exact_mod_cast hp |
| 50 | have hzR : (D : ℝ) * (q.value x : ℝ) = (z : ℝ) := by exact_mod_cast hz |
| 51 | change 1 ≤ (D : ℝ) * (q.value x : ℝ) |
| 52 | rw [hzR] |
| 53 | exact_mod_cast (show (1 : ℤ) ≤ z by omega) |
| 54 | parallelogram x y := by |
| 55 | have h := congrArg (fun a : ℚ => (a : ℝ)) (q.quotientQuadratic.parallelogram x y) |
| 56 | push_cast at h |
| 57 | change (D : ℝ) * (q.quotientValue (x + y) : ℝ) + (D : ℝ) * (q.quotientValue (x - y) : ℝ) = _ |
| 58 | change (q.quotientValue (x + y) : ℝ) + (q.quotientValue (x - y) : ℝ) = |
| 59 | 2 * ((q.quotientValue x : ℝ) + (q.quotientValue y : ℝ)) at h |
| 60 | nlinarith |
| 61 | |
| 62 | end |
| 63 | |
| 64 | end OAI.AlgebraicGeometry.FormalGeometry.Completion |