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.GeometricComparisonAdapter |
| 2 | import OAI.NumberTheory.PadicHodge.Arithmetic |
| 3 | |
| 4 | /-! # Intrinsic Purity -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntrinsicPurity.CM.ExtremeSlopesAdapter |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Assembly bridges for CMExtraction. GeometricComparison's native comparison numbers combine |
| 11 | with FrobeniusSlope's determinant formula and GaloisValuation's extreme signs. The original |
| 12 | complex grading/projector hypotheses are retained explicitly. -/ |
| 13 | |
| 14 | open scoped TensorProduct |
| 15 | |
| 16 | /-- The normalized Newton function has the slope formula at the whole summand. -/ |
| 17 | theorem normalized_newton_of_constant_slope |
| 18 | (q : ℕ) [Fact q.Prime] |
| 19 | (L : IntermediateField ℚ_[q] (AlgebraicClosure ℚ_[q])) |
| 20 | [FiniteDimensional ℚ_[q] L] |
| 21 | {V : Type*} [AddCommGroup V] [Module L V] [FiniteDimensional L V] |
| 22 | [Module ℚ_[q] V] [IsScalarTower ℚ_[q] L V] |
| 23 | (φ : V ≃ₗ[L] V) (r : ℚ) |
| 24 | (hslopes : ∀ x, Module.End.HasEigenvalue |
| 25 | (φ.toLinearMap.baseChange (AlgebraicClosure ℚ_[q])) x → |
| 26 | Valuation.CM.ExtremeSlopesAdapter.canonicalAddValuation q x = (r : WithTop ℚ)) : |
| 27 | Filtration.CM.ExtremeSlopesAdapter.normalizedSummandNewton q L φ ⊤ = (Module.finrank L V : ℚ) * r := by |
| 28 | have hd : (Module.finrank ℚ_[q] L : ℚ) ≠ 0 := by |
| 29 | exact_mod_cast (ne_of_gt (Module.finrank_pos : 0 < Module.finrank ℚ_[q] L)) |
| 30 | simp only [Filtration.CM.ExtremeSlopesAdapter.normalizedSummandNewton, Submodule.restrictScalars_top] |
| 31 | have hn := Newton.CM.ExtremeSlopesAdapter.rational_newton_of_constant_slope q L φ r hslopes |
| 32 | simp only [Filtration.CM.ExtremeSlopesAdapter.summandNewton, ↓reduceIte] |
| 33 | rw [hn] |
| 34 | field_simp |
| 35 | |
| 36 | /-- Cancel the positive coefficient degree in the two independently derived |
| 37 | formulas: GeometricComparison's Hodge comparison and FrobeniusSlope's Frobenius determinant. -/ |
| 38 | theorem hodge_number_of_compared_newton |
| 39 | (degree dim hodge : ℕ) (hdegree : 0 < degree) (newton slope : ℚ) |
| 40 | (hcomparison : newton = (degree : ℚ) * (hodge : ℚ)) |
| 41 | (hNewton : newton = (degree : ℚ) * (dim : ℚ) * slope) : |
| 42 | (hodge : ℚ) = (dim : ℚ) * slope := by |
| 43 | have hd : (degree : ℚ) ≠ 0 := Nat.cast_ne_zero.mpr hdegree.ne' |
| 44 | apply (mul_left_cancel₀ hd) |
| 45 | calc |
| 46 | (degree : ℚ) * (hodge : ℚ) = newton := hcomparison.symm |
| 47 | _ = (degree : ℚ) * ((dim : ℚ) * slope) := by rw [hNewton, mul_assoc] |
| 48 | |
| 49 | /-- Given the actual graded complex projector onto the compared summand, |
| 50 | the two derived numerical identities yield the existing ExtremeSlopes pure-type result. -/ |
| 51 | theorem pure_type_of_compared_newton |
| 52 | {W : Type*} [AddCommGroup W] [Module ℂ W] [FiniteDimensional ℂ W] |
| 53 | (A B S : Submodule ℂ W) (h_HodgeDecomposition : IsCompl A B) |
| 54 | (P : Module.End ℂ W) (hRange : LinearMap.range P = S) |
| 55 | (hA : ∀ x ∈ A, P x ∈ A) (hB : ∀ x ∈ B, P x ∈ B) |
| 56 | (hne : S ≠ ⊥) |
| 57 | (degree : ℕ) (hdegree : 0 < degree) (newton slope : ℚ) |
| 58 | (hcomparison : newton = (degree : ℚ) * (Module.finrank ℂ ↥(S ⊓ A) : ℚ)) |
| 59 | (hNewton : newton = (degree : ℚ) * (Module.finrank ℂ S : ℚ) * slope) |
| 60 | (hextreme : slope = 0 ∨ slope = 1) : |
| 61 | (slope = 1 ↔ S ≤ A) ∧ (slope = 0 ↔ S ≤ B) := by |
| 62 | have hn := hodge_number_of_compared_newton degree (Module.finrank ℂ S) |
| 63 | (Module.finrank ℂ ↥(S ⊓ A)) hdegree newton slope hcomparison hNewton |
| 64 | have h := ExtremeSlopes.CM.Construction.pure_type_of_extreme_number A B h_HodgeDecomposition P hA hB |
| 65 | (by rwa [hRange]) slope hextreme (by rwa [hRange]) |
| 66 | simpa only [hRange] using h |
| 67 | |
| 68 | /-- Terminal adapter for the actual GeometricComparison witness. The dimension and |
| 69 | comparison hypotheses are the proved fields of `NativeSummandComparison`; |
| 70 | the slopes come from full FrobeniusSlope, and extremality from full GaloisValuation. Only the |
| 71 | original complex grading and projector hypotheses are retained. -/ |
| 72 | theorem pure_type_of_native_summand |
| 73 | (q : ℕ) [Fact q.Prime] |
| 74 | (L : IntermediateField ℚ_[q] (AlgebraicClosure ℚ_[q])) |
| 75 | [FiniteDimensional ℚ_[q] L] |
| 76 | {V : Type*} [AddCommGroup V] [Module L V] [FiniteDimensional L V] |
| 77 | [Module ℚ_[q] V] [IsScalarTower ℚ_[q] L V] |
| 78 | (φ : V ≃ₗ[L] V) |
| 79 | {W : Type*} [AddCommGroup W] [Module ℂ W] [FiniteDimensional ℂ W] |
| 80 | (A B S : Submodule ℂ W) (h_HodgeDecomposition : IsCompl A B) |
| 81 | (P : Module.End ℂ W) (hRange : LinearMap.range P = S) |
| 82 | (hA : ∀ x ∈ A, P x ∈ A) (hB : ∀ x ∈ B, P x ∈ B) |
| 83 | (hne : S ≠ ⊥) |
| 84 | (hDim : Module.finrank L V = Module.finrank ℂ S) |
| 85 | (hcomparison : |
| 86 | (Padic.valuation (p := q) (LinearMap.det (φ.restrictScalars ℚ_[q]).toLinearMap) : ℚ) = |
| 87 | (Module.finrank ℚ_[q] L : ℚ) * (Module.finrank ℂ ↥(S ⊓ A) : ℚ)) |
| 88 | (slope : ℚ) |
| 89 | (hslopes : ∀ x, Module.End.HasEigenvalue |
| 90 | (φ.toLinearMap.baseChange (AlgebraicClosure ℚ_[q])) x → |
| 91 | Valuation.CM.ExtremeSlopesAdapter.canonicalAddValuation q x = (slope : WithTop ℚ)) |
| 92 | (hextreme : slope = 0 ∨ slope = 1) : |
| 93 | (slope = 1 ↔ S ≤ A) ∧ (slope = 0 ↔ S ≤ B) := by |
| 94 | have hNewton := Newton.CM.ExtremeSlopesAdapter.rational_newton_of_constant_slope q L φ slope hslopes |
| 95 | rw [hDim] at hNewton |
| 96 | exact pure_type_of_compared_newton A B S h_HodgeDecomposition P hRange hA hB hne |
| 97 | (Module.finrank ℚ_[q] L) Module.finrank_pos _ slope hcomparison hNewton hextreme |
| 98 | |
| 99 | /-- The GaloisValuation sign rule makes the slope formula extreme, for every parameter |
| 100 | extension satisfying that rule. -/ |
| 101 | theorem extreme_slope_of_sign |
| 102 | (b : Bool) (initial value : ℚ) (h_initial : initial = -3 / 2 ∨ initial = 3 / 2) |
| 103 | (h_sign : value = (AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue b : ℚ) * initial) : |
| 104 | (1 / 2 - value / 3 : ℚ) = 0 ∨ (1 / 2 - value / 3 : ℚ) = 1 := by |
| 105 | rw [h_sign] |
| 106 | rcases h_initial with hi | hi <;> cases b <;> norm_num [AlgebraicGeometry.ComplexMultiplication.SignSwitch.CM.signValue, hi] |
| 107 | |
| 108 | end |
| 109 | |
| 110 | end OAI.NumberTheory.PadicHodge.IntrinsicPurity.CM.ExtremeSlopesAdapter |