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 Mathlib.RingTheory.Polynomial.Resultant.Basic |
| 2 | import Mathlib.FieldTheory.IsAlgClosed.AlgebraicClosure |
| 3 | import Mathlib.LinearAlgebra.Charpoly.BaseChange |
| 4 | import Mathlib.LinearAlgebra.Charpoly.Basic |
| 5 | |
| 6 | /-! # Determinant Polynomial Resultant -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.DeterminantPolynomialResultant |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The determinant of a polynomial in an endomorphism is the resultant |
| 13 | of its characteristic polynomial and that polynomial. A split-polynomial |
| 14 | version applies to any multiplicative homogeneous scalar-valued map. -/ |
| 15 | |
| 16 | open _root_.Polynomial |
| 17 | open scoped TensorProduct |
| 18 | |
| 19 | set_option backward.defeqAttrib.useBackward true |
| 20 | set_option backward.isDefEq.respectTransparency false |
| 21 | |
| 22 | variable {K : Type*} [Field K] |
| 23 | |
| 24 | theorem monic_resultant_right_degree (W R : Polynomial K) (hW : W.Monic) |
| 25 | (n : ℕ) (hn : R.natDegree ≤ n) : |
| 26 | W.resultant R W.natDegree n = W.resultant R := by |
| 27 | obtain ⟨k, rfl⟩ := Nat.exists_eq_add_of_le hn |
| 28 | rw [resultant_add_right_deg _ _ _ _ _ le_rfl, coeff_natDegree, hW.leadingCoeff, one_pow, one_mul] |
| 29 | |
| 30 | theorem resultant_eq_multiplicative_eval {A : Type*} [Ring A] [Algebra K A] |
| 31 | (D : A →* K) (F : A) (W : Polynomial K) (hW : W.Monic) |
| 32 | (hscalar : ∀ c : K, D (algebraMap K A c) = c ^ W.natDegree) |
| 33 | (hshift : ∀ c : K, W.eval c = D (algebraMap K A c - F)) |
| 34 | (R : Polynomial K) (hR : R.Splits) : |
| 35 | W.resultant R = D (Polynomial.aeval F R) := by |
| 36 | induction hR using Submonoid.closure_induction with |
| 37 | | mem P hP => |
| 38 | obtain (⟨c, rfl⟩ | ⟨a, rfl⟩) := hP |
| 39 | · rw [natDegree_C, resultant_C_zero_right, aeval_C, hscalar] |
| 40 | · rw [show X + C a = X - C (-a) by rw [map_neg, sub_neg_eq_add]] |
| 41 | rw [natDegree_X_sub_C, resultant_X_sub_C_right _ _ _ le_rfl, |
| 42 | map_sub, aeval_X, aeval_C] |
| 43 | have he : F - algebraMap K A (-a) = |
| 44 | algebraMap K A (-1) * (algebraMap K A (-a) - F) := by |
| 45 | simp only [map_neg, map_one, neg_one_mul, neg_sub] |
| 46 | rw [he, map_mul, hscalar, ← hshift] |
| 47 | | one => simp only [natDegree_one, resultant_one_right, pow_zero, map_one] |
| 48 | | mul P Q _ _ ihP ihQ => |
| 49 | rw [← monic_resultant_right_degree W (P * Q) hW (P.natDegree + Q.natDegree) natDegree_mul_le, |
| 50 | resultant_mul_right W P Q W.natDegree le_rfl, ihP, ihQ, map_mul, map_mul] |
| 51 | |
| 52 | theorem det_aeval_of_splits {V : Type*} [AddCommGroup V] [Module K V] |
| 53 | [FiniteDimensional K V] (T : Module.End K V) (R : Polynomial K) (hR : R.Splits) : |
| 54 | (Polynomial.aeval T R).det = T.charpoly.resultant R := by |
| 55 | symm |
| 56 | apply resultant_eq_multiplicative_eval LinearMap.det T T.charpoly T.charpoly_monic |
| 57 | (fun c => ?_) (fun c => T.eval_charpoly c) R hR |
| 58 | rw [LinearMap.charpoly_natDegree] |
| 59 | change LinearMap.det (c • (1 : Module.End K V)) = _ |
| 60 | rw [LinearMap.det_smul, map_one, mul_one] |
| 61 | |
| 62 | theorem aeval_baseChange {V : Type*} [AddCommGroup V] [Module K V] |
| 63 | (L : Type*) [Field L] [Algebra K L] (T : Module.End K V) (R : Polynomial K) : |
| 64 | (Polynomial.aeval T R).baseChange L = |
| 65 | Polynomial.aeval (T.baseChange L) (R.map (algebraMap K L)) := by |
| 66 | have h := Polynomial.aeval_algHom_apply (Module.End.baseChangeHom K L V) T R |
| 67 | change Polynomial.aeval (T.baseChange L) R = (Polynomial.aeval T R).baseChange L at h |
| 68 | rw [Polynomial.aeval_map_algebraMap] |
| 69 | exact h.symm |
| 70 | |
| 71 | theorem det_aeval {V : Type*} [AddCommGroup V] [Module K V] |
| 72 | [FiniteDimensional K V] (T : Module.End K V) (R : Polynomial K) : |
| 73 | (Polynomial.aeval T R).det = T.charpoly.resultant R := by |
| 74 | let L := AlgebraicClosure K |
| 75 | apply (algebraMap K L).injective |
| 76 | rw [← LinearMap.det_baseChange, aeval_baseChange] |
| 77 | have h := det_aeval_of_splits (T.baseChange L) (R.map (algebraMap K L)) (IsAlgClosed.splits _) |
| 78 | rw [LinearMap.charpoly_baseChange] at h |
| 79 | rw [h, natDegree_map_eq_of_injective (algebraMap K L).injective, |
| 80 | natDegree_map_eq_of_injective (algebraMap K L).injective, resultant_map_map] |
| 81 | |
| 82 | end |
| 83 | |
| 84 | end OAI.NumberTheory.PadicHodge.IntegralComparison.DeterminantPolynomialResultant |