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.Endomorphism.FiniteGeneration |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.PositiveMultiplication |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Finite.GroupHomFlat |
| 4 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiniteEndomorphism |
| 5 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.PolynomialPositivity |
| 6 | import Mathlib.RingTheory.IntegralClosure.Algebra.Basic |
| 7 | import Mathlib.Algebra.Polynomial.Div |
| 8 | |
| 9 | /-! # Shift Isogeny -/ |
| 10 | |
| 11 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Frobenius.ShiftIsogeny |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! Integral endomorphisms have finite, surjective and flat sufficiently |
| 16 | large integer shifts. A monic annihilator supplies a composition factor |
| 17 | of a positive multiplication map. This applies to the actual geometric |
| 18 | Frobenius without a spectral or characteristic-polynomial hypothesis. -/ |
| 19 | |
| 20 | open _root_.AlgebraicGeometry _root_.CategoryTheory |
| 21 | open scoped _root_.CategoryTheory.MonObj |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | /-- Polynomial division constructs the actual composition factor. -/ |
| 26 | theorem integral_shift_factor {R : Type*} [Ring R] (f : R) |
| 27 | (Q : Polynomial ℤ) (hQ : Polynomial.aeval f Q = 0) (n : ℕ) : |
| 28 | ∃ g : R, g * ((n : R) - f) = ↑(Q.eval (n : ℤ)) := by |
| 29 | obtain ⟨H, hH⟩ := Polynomial.X_sub_C_dvd_sub_C_eval (p := Q) (a := (n : ℤ)) |
| 30 | have he : Q - Polynomial.C (Q.eval (n : ℤ)) = |
| 31 | H * (Polynomial.X - Polynomial.C (n : ℤ)) := by |
| 32 | rw [hH, mul_comm] |
| 33 | have ha := congrArg (Polynomial.aeval f) he |
| 34 | simp only [map_sub, map_mul, Polynomial.aeval_C, Polynomial.aeval_X, |
| 35 | hQ, zero_sub, map_natCast] at ha |
| 36 | refine ⟨Polynomial.aeval f H, ?_⟩ |
| 37 | calc |
| 38 | _ = -(Polynomial.aeval f H * (f - (n : R))) := by rw [← mul_neg, neg_sub] |
| 39 | _ = ↑(Q.eval (n : ℤ)) := by rw [← ha, neg_neg]; rfl |
| 40 | |
| 41 | theorem monic_eventually_positive (Q : Polynomial ℤ) (hQ : Q.Monic) : |
| 42 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → 0 < Q.eval (n : ℤ) := by |
| 43 | obtain ⟨b, hb⟩ := AlgebraicGeometry.FormalGeometry.Completion.PolynomialPositivity.Construction.polynomial_eventually_nat_pos_of_leadingCoeff_pos |
| 44 | (Q.map (Int.castRingHom ℚ)) (by rw [(hQ.map _).leadingCoeff]; exact zero_lt_one) |
| 45 | refine ⟨b, fun n hn => ?_⟩ |
| 46 | have h := hb n hn |
| 47 | rw [Polynomial.eval_natCast_map] at h |
| 48 | change (0 : ℚ) < (Q.eval (n : ℤ) : ℤ) at h |
| 49 | exact_mod_cast h |
| 50 | |
| 51 | /-- An integral ring element has sufficiently large shifts dividing a |
| 52 | positive integer inside the original ring. -/ |
| 53 | theorem integral_shift_eventually_positive_factor {R : Type*} [Ring R] |
| 54 | (f : R) (hf : IsIntegral ℤ f) : |
| 55 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → |
| 56 | ∃ m : ℕ, 0 < m ∧ ∃ g : R, g * ((n : R) - f) = (m : R) := by |
| 57 | obtain ⟨Q, hQ, hQf⟩ := hf |
| 58 | obtain ⟨b, hb⟩ := monic_eventually_positive Q hQ |
| 59 | refine ⟨b, fun n hn => ?_⟩ |
| 60 | have hp := hb n hn |
| 61 | obtain ⟨g, hg⟩ := integral_shift_factor f Q hQf n |
| 62 | refine ⟨(Q.eval (n : ℤ)).toNat, by omega, g, ?_⟩ |
| 63 | rw [hg, ← Int.cast_natCast ((Q.eval (n : ℤ)).toNat), Int.toNat_of_nonneg hp.le] |
| 64 | |
| 65 | variable {K : Type u} [Field K] [IsAlgClosed K] |
| 66 | (A : Over (Spec (CommRingCat.of K))) [GrpObj A] [IsCommMonObj A] |
| 67 | [IsProper A.hom] [Smooth A.hom] [GeometricallyIntegral A.hom] |
| 68 | |
| 69 | theorem endomorphism_shift_eventually_isogeny (f : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : |
| 70 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → |
| 71 | IsFinite ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left ∧ |
| 72 | Surjective ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left ∧ |
| 73 | Flat ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom.left := by |
| 74 | let : Module.Finite ℤ (AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) := |
| 75 | Module.Finite.iff_addGroup_fg.mpr (AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.FiniteGeneration.Construction.algebraicEnd_finiteGenerated A) |
| 76 | obtain ⟨b, hb⟩ := integral_shift_eventually_positive_factor f (IsIntegral.of_finite ℤ f) |
| 77 | refine ⟨b, fun n hn => ?_⟩ |
| 78 | obtain ⟨m, hm, g, hg⟩ := hb n hn |
| 79 | let s := ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) - f).toMul.hom.hom |
| 80 | let t := g.toMul.hom.hom |
| 81 | have he : s.left ≫ t.left = ((𝟙 A : A ⟶ A) ^ m).left := by |
| 82 | have h := congrArg (fun z : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A => z.toMul.hom.hom.left) hg |
| 83 | change s.left ≫ t.left = (m : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A).toMul.hom.hom.left at h |
| 84 | rw [← nsmul_one m, AlgebraicGeometry.FormalGeometry.Completion.Multiplication.Construction.algebraicEnd_nsmul_hom] at h |
| 85 | exact h |
| 86 | have : IsProper t.left := by |
| 87 | have : IsProper (t.left ≫ A.hom) := by rw [Over.w]; infer_instance |
| 88 | exact IsProper.of_comp t.left A.hom |
| 89 | have : IsFinite (s.left ≫ t.left) := by |
| 90 | rw [he] |
| 91 | exact AlgebraicGeometry.FormalGeometry.Completion.PositiveMultiplication.Construction.multiplication_positive_isFinite A m hm |
| 92 | have : IsFinite s.left := IsFinite.of_comp s.left t.left |
| 93 | have : IsIntegral A.left := GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 94 | have : IsLocallyNoetherian A.left := LocallyOfFiniteType.isLocallyNoetherian A.hom |
| 95 | have : CompactSpace A.left := QuasiCompact.compactSpace_of_compactSpace A.hom |
| 96 | have : IsNoetherian A.left := ⟨⟩ |
| 97 | have : Surjective s.left := ArithmeticGeometry.OrdinaryLocus.Openness.FiniteEndomorphism.Construction.surjective_finite_endomorphism_of_isIntegral s.left |
| 98 | exact ⟨inferInstance, inferInstance, AlgebraicGeometry.FormalGeometry.Completion.Finite.GroupHomFlat.Construction.finite_surjective_groupHom_flat s⟩ |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Frobenius.ShiftIsogeny |