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.IntegralComparison.Endomorphism.DegreeUniqueness |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeIs |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.DegreeProductCoordinates |
| 4 | |
| 5 | /-! # Degree Law -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeLaw |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Multiplicativity of the geometric degree polynomials, proved from |
| 12 | native generic residue degrees on independently shifted endomorphisms. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeUniqueness OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeIs.Product |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.DegreeProductCoordinates |
| 18 | |
| 19 | universe v w |
| 20 | variable {K : Type} [Field K] [IsAlgClosed K] |
| 21 | (A : Over (Spec (CommRingCat.of K))) [GrpObj A] [IsCommMonObj A] |
| 22 | [IsProper A.hom] [Smooth A.hom] [GeometricallyIntegral A.hom] |
| 23 | |
| 24 | local instance : IsIntegral A.left := |
| 25 | GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 26 | |
| 27 | def degreePolynomial {ι : Type v} [Fintype ι] (f : ι → AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : MvPolynomial ι ℚ := |
| 28 | (FiniteSumDegree.exists_degree_polynomial A f).choose |
| 29 | |
| 30 | theorem degreePolynomial_totalDegree {ι : Type v} [Fintype ι] (f : ι → AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : |
| 31 | (degreePolynomial A f).totalDegree ≤ 2 * AlgebraicGeometry.Foundations.Scheme.TranscendenceDimension.schemeTranscendenceDimension A.hom := |
| 32 | (FiniteSumDegree.exists_degree_polynomial A f).choose_spec.1 |
| 33 | |
| 34 | theorem degreePolynomial_eval {ι : Type v} [Fintype ι] (f : ι → AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) |
| 35 | (a : ι → ℕ) [IsFinite (∑ i, a i • f i).toMul.hom.hom.left] |
| 36 | [IsDominant (∑ i, a i • f i).toMul.hom.hom.left] : |
| 37 | MvPolynomial.eval (fun i => (a i : ℚ)) (degreePolynomial A f) = |
| 38 | ((∑ i, a i • f i).toMul.hom.hom.left.residueDegree (genericPoint A.left) : ℚ) := |
| 39 | (FiniteSumDegree.exists_degree_polynomial A f).choose_spec.2 a |
| 40 | inferInstance inferInstance |
| 41 | |
| 42 | theorem degreePolynomial_mul {ι : Type v} {κ : Type w} [Fintype ι] [Fintype κ] |
| 43 | (f : ι → AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) (g : κ → AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A) : |
| 44 | DegreeProductCoordinates.productSub (degreePolynomial A |
| 45 | (fun t : Option ι × Option κ => DegreeUniqueness.withIdentity A f t.1 * DegreeUniqueness.withIdentity A g t.2)) = |
| 46 | DegreeProductCoordinates.leftSub (degreePolynomial A (DegreeUniqueness.withIdentity A f)) * |
| 47 | DegreeProductCoordinates.rightSub (degreePolynomial A (DegreeUniqueness.withIdentity A g)) := by |
| 48 | apply MultivariateTailIdentity.eq_of_double_option_tail_eval |
| 49 | intro z |
| 50 | obtain ⟨b, hb⟩ := DegreeUniqueness.withIdentity_eventually_isogeny A f (fun i => z (.inl i)) |
| 51 | refine ⟨b, fun n hn => ?_⟩ |
| 52 | obtain ⟨c, hc⟩ := DegreeUniqueness.withIdentity_eventually_isogeny A g (fun j => z (.inr j)) |
| 53 | refine ⟨c, fun m hm => ?_⟩ |
| 54 | let a : Option ι → ℕ := fun i => Option.elim i n (fun j => z (.inl j)) |
| 55 | let b' : Option κ → ℕ := fun i => Option.elim i m (fun j => z (.inr j)) |
| 56 | let s : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A := ∑ i, a i • DegreeUniqueness.withIdentity A f i |
| 57 | let t : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd A := ∑ j, b' j • DegreeUniqueness.withIdentity A g j |
| 58 | have : IsFinite s.toMul.hom.hom.left := (hb n hn).1 |
| 59 | have : IsDominant s.toMul.hom.hom.left := (hb n hn).2 |
| 60 | have : IsFinite t.toMul.hom.hom.left := (hc m hm).1 |
| 61 | have : IsDominant t.toMul.hom.hom.left := (hc m hm).2 |
| 62 | have he : (∑ ij : Option ι × Option κ, |
| 63 | (a ij.1 * b' ij.2) • (DegreeUniqueness.withIdentity A f ij.1 * DegreeUniqueness.withIdentity A g ij.2)) = s * t := |
| 64 | DegreeIs.Product.family_mul_sum A (DegreeUniqueness.withIdentity A f) (DegreeUniqueness.withIdentity A g) a b' |
| 65 | have : IsFinite (∑ ij : Option ι × Option κ, |
| 66 | (a ij.1 * b' ij.2) • (DegreeUniqueness.withIdentity A f ij.1 * DegreeUniqueness.withIdentity A g ij.2)).toMul.hom.hom.left := by |
| 67 | rw [he] |
| 68 | exact DegreeIs.Product.mul_isFinite A s t |
| 69 | have : IsDominant (∑ ij : Option ι × Option κ, |
| 70 | (a ij.1 * b' ij.2) • (DegreeUniqueness.withIdentity A f ij.1 * DegreeUniqueness.withIdentity A g ij.2)).toMul.hom.hom.left := by |
| 71 | rw [he] |
| 72 | exact DegreeIs.Product.mul_isDominant A s t |
| 73 | rw [DegreeProductCoordinates.eval_productSub, map_mul, DegreeProductCoordinates.eval_leftSub, DegreeProductCoordinates.eval_rightSub] |
| 74 | simp only [DegreeProductCoordinates.leftIndex_point, DegreeProductCoordinates.rightIndex_point] |
| 75 | change MvPolynomial.eval (fun ij : Option ι × Option κ => (a ij.1 : ℚ) * (b' ij.2 : ℚ)) _ = |
| 76 | MvPolynomial.eval (fun i => (a i : ℚ)) _ * MvPolynomial.eval (fun j => (b' j : ℚ)) _ |
| 77 | simp only [← Nat.cast_mul] |
| 78 | rw [degreePolynomial_eval, degreePolynomial_eval, degreePolynomial_eval, he] |
| 79 | exact_mod_cast DegreeIs.Product.mul_residueDegree A s t |
| 80 | |
| 81 | end |
| 82 | |
| 83 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Endomorphism.DegreeLaw |