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.ComplexGroups.HolomorphicAlgebraicity.GenericPolynomialGCD |
| 2 | import Mathlib.RingTheory.Radical.Basic |
| 3 | import Mathlib.FieldTheory.Perfect |
| 4 | |
| 5 | /-! # Generic Squarefree -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericSquarefree.Constructions.GenericGCD |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Removing repeated roots over a coefficient domain |
| 13 | |
| 14 | Take the radical over the fraction field, then clear denominators in its |
| 15 | divisibility and Bezout identities. These finite identities preserve the |
| 16 | root set and certify separability wherever their scalar denominators are |
| 17 | nonzero. |
| 18 | -/ |
| 19 | |
| 20 | open Set _root_.Polynomial UniqueFactorizationMonoid |
| 21 | open scoped nonZeroDivisors |
| 22 | |
| 23 | variable {A : Type*} [CommRing A] [IsDomain A] [CharZero A] |
| 24 | |
| 25 | attribute [local instance] Polynomial.algebra Polynomial.isLocalization |
| 26 | |
| 27 | theorem exists_squarefree_certificate (P : A[X]) (hP : P ≠ 0) : |
| 28 | ∃ (Q : A[X]) (n : ℕ) (a b c : A) (H J U V : A[X]), |
| 29 | Q ≠ 0 ∧ a ≠ 0 ∧ b ≠ 0 ∧ c ≠ 0 ∧ |
| 30 | C a * P = Q * H ∧ C b * Q ^ (n + 1) = P * J ∧ |
| 31 | U * Q + V * derivative Q = C c := by |
| 32 | classical |
| 33 | let K := FractionRing A |
| 34 | let : CharZero K := ⟨fun m n h => Nat.cast_injective (R := A) |
| 35 | (IsFractionRing.injective A K (by simpa only [map_natCast] using h))⟩ |
| 36 | let φ : A[X] →+* K[X] := Polynomial.mapRingHom (algebraMap A K) |
| 37 | have hφ : Function.Injective φ := |
| 38 | Polynomial.map_injective (algebraMap A K) (IsFractionRing.injective A K) |
| 39 | have hφP : φ P ≠ 0 := by |
| 40 | intro h |
| 41 | exact hP (hφ (by simpa only [map_zero] using h)) |
| 42 | let q : K[X] := radical (φ P) |
| 43 | have hq : q ≠ 0 := radical_ne_zero |
| 44 | have hqsep : q.Separable := PerfectField.separable_iff_squarefree.mpr squarefree_radical |
| 45 | let Q := IsLocalization.integerNormalization A⁰ q |
| 46 | obtain ⟨s, hs, hQs⟩ := IsLocalization.integerNormalization_spec A⁰ q |
| 47 | have hQmap : φ Q = C (algebraMap A K s) * q := by |
| 48 | simpa only [φ, Polynomial.coe_mapRingHom, ← algebraMap_smul, Algebra.smul_def, |
| 49 | Polynomial.algebraMap_apply] using hQs |
| 50 | have hsu : IsUnit (C (algebraMap A K s) : K[X]) := |
| 51 | isUnit_C.mpr (isUnit_iff_ne_zero.mpr ((IsFractionRing.to_map_eq_zero_iff |
| 52 | (R := A) (K := K)).not.mpr (nonZeroDivisors.ne_zero hs))) |
| 53 | have hassoc : Associated (φ Q) q := by |
| 54 | rw [hQmap] |
| 55 | exact associated_unit_mul_left _ _ hsu |
| 56 | have hQ : Q ≠ 0 := by |
| 57 | intro h |
| 58 | have hz : φ Q = 0 := by rw [h, map_zero] |
| 59 | exact hq ((hassoc.eq_zero_iff).mp hz) |
| 60 | have hQsep : (φ Q).Separable := by |
| 61 | rw [hQmap] |
| 62 | exact Separable.unit_mul hsu hqsep |
| 63 | have hdiv : φ Q ∣ φ P := hassoc.dvd.trans radical_dvd_self |
| 64 | obtain ⟨a, ha, H, hH⟩ := GenericPolynomialGCD.Constructions.GenericGCD.clear_mapped_divisibility (K := K) Q P hdiv |
| 65 | obtain ⟨n, hn⟩ := exists_dvd_radical_self_pow hφP |
| 66 | have hpow : φ P ∣ φ (Q ^ (n + 1)) := by |
| 67 | rw [map_pow] |
| 68 | exact (hn.trans (pow_dvd_pow_of_dvd hassoc.dvd' n)).trans |
| 69 | (pow_dvd_pow _ (Nat.le_succ n)) |
| 70 | obtain ⟨b, hb, J, hJ⟩ := GenericPolynomialGCD.Constructions.GenericGCD.clear_mapped_divisibility (K := K) P (Q ^ (n + 1)) hpow |
| 71 | let I := Ideal.span ({Q, derivative Q} : Set A[X]) |
| 72 | have hone : (1 : K[X]) ∈ I.map φ := by |
| 73 | rw [Ideal.map_span, Set.image_pair] |
| 74 | change (1 : K[X]) ∈ Ideal.span ({φ Q, (derivative Q).map (algebraMap A K)} : Set K[X]) |
| 75 | rw [← derivative_map] |
| 76 | exact Ideal.mem_span_pair.mpr hQsep |
| 77 | obtain ⟨c, hc, hmem⟩ := GenericPolynomialGCD.Constructions.GenericGCD.clear_mapped_ideal_membership (K := K) I 1 |
| 78 | (by simpa only [Polynomial.map_one] using hone) |
| 79 | obtain ⟨U, V, hUV⟩ := Ideal.mem_span_pair.mp hmem |
| 80 | exact ⟨Q, n, a, b, c, H, J, U, V, hQ, ha, hb, hc, hH, hJ, |
| 81 | by simpa only [mul_one] using hUV⟩ |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.GenericSquarefree.Constructions.GenericGCD |