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.HilbertDifference |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.NumericalDegreeProperties |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.PolynomialQuadratic |
| 4 | |
| 5 | /-! # Polynomial Height -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.PolynomialHeight |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The actual endomorphism Hilbert invariant satisfies the polynomial |
| 12 | height identities required for descent through successive zero subgroups. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | |
| 16 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 17 | |
| 18 | namespace Construction |
| 19 | |
| 20 | universe u |
| 21 | |
| 22 | variable {K : Type u} [Field K] [IsAlgClosed K] |
| 23 | (A : Over (Spec (CommRingCat.of K))) [GrpObj A] [IsCommMonObj A] |
| 24 | [GeometricallyIntegral A.hom] [IsProper A.hom] [Smooth A.hom] |
| 25 | |
| 26 | theorem endomorphismHilbertDifference_coeff_parallelogram |
| 27 | (D : HilbertDifference.Construction.EndomorphismNumericalPresentation A) (d : ℕ) (f g : Endomorphisms.Construction.AlgebraicEnd A) |
| 28 | (hf : (HilbertDifference.Construction.endomorphismHilbertDifference A D f).natDegree ≤ d) |
| 29 | (hg : (HilbertDifference.Construction.endomorphismHilbertDifference A D g).natDegree ≤ d) |
| 30 | (hfg : (HilbertDifference.Construction.endomorphismHilbertDifference A D (f + g)).natDegree ≤ d) : |
| 31 | (HilbertDifference.Construction.endomorphismHilbertDifference A D (f + g)).coeff d + |
| 32 | (HilbertDifference.Construction.endomorphismHilbertDifference A D (f - g)).coeff d = |
| 33 | 2 * ((HilbertDifference.Construction.endomorphismHilbertDifference A D f).coeff d + (HilbertDifference.Construction.endomorphismHilbertDifference A D g).coeff d) := by |
| 34 | let : Field Γ(Spec (CommRingCat.of K), ⊤) := Quotients.FiniteDescent.FieldPoint.Construction.FieldPointPrime.sectionsField K |
| 35 | have : IsIntegral A.left := GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 36 | have : Infinite Γ(Spec (CommRingCat.of K), ⊤) := |
| 37 | Infinite.of_injective (Scheme.ΓSpecIso (CommRingCat.of K)).inv |
| 38 | (ConcreteCategory.bijective_of_isIso (Scheme.ΓSpecIso (CommRingCat.of K)).inv).1 |
| 39 | let e := Affine.ProjectiveEmbedding.Construction.projectiveAffineEmbedding A D.projective |
| 40 | let B (t : Endomorphisms.Construction.AlgebraicEnd A) := D.bundle.pullback t.toMul.hom.hom.left |
| 41 | have hB (t : Endomorphisms.Construction.AlgebraicEnd A) : Frame.SectionDetection.Construction.HasFrameSections (B t).sheaf := D.frames.pullback t.toMul.hom.hom.left |
| 42 | have h₁ := LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient_tensor_generated_left e (B (f + g)) (B (f - g)) |
| 43 | (hB (f + g)) 0 d hfg |
| 44 | have h₂ := LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient_tensor_generated_left e (B f) ((B f).tensor ((B g).tensor (B g))) |
| 45 | (hB f) 0 d hf |
| 46 | have h₃ := LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient_tensor_generated_left e (B f) ((B g).tensor (B g)) |
| 47 | (hB f) 0 d hf |
| 48 | have h₄ := LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient_tensor_generated_left e (B g) (B g) (hB g) 0 d hg |
| 49 | have hi := PicardQuadratic.Construction.algebraicEndLineBundleClass_parallelogram A D.bundle D.symmetric f g |
| 50 | rw [two_nsmul, two_nsmul] at hi |
| 51 | have hm := congrArg Additive.toMul hi |
| 52 | change AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (B (f + g)) * AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (B (f - g)) = |
| 53 | (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (B f) * AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (B f)) * |
| 54 | (AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (B g) * AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf (B g)) at hm |
| 55 | rw [mul_assoc] at hm |
| 56 | have he : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf ((B (f + g)).tensor (B (f - g))) = |
| 57 | AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle.classOf ((B f).tensor ((B f).tensor ((B g).tensor (B g)))) := hm |
| 58 | obtain ⟨iso⟩ := Quotient.exact he |
| 59 | have hc := LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient_iso e _ _ iso 0 d |
| 60 | change LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient e (B (f + g)) 0 d + LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient e (B (f - g)) 0 d = |
| 61 | 2 * (LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient e (B f) 0 d + LineBundleHilbertCoefficients.Construction.lineBundleHilbertCoefficient e (B g) 0 d) |
| 62 | linarith |
| 63 | |
| 64 | omit [IsAlgClosed K] [IsProper A.hom] [Smooth A.hom] [IsCommMonObj A] in |
| 65 | theorem endomorphismHilbertDifference_eventually_integer |
| 66 | (D : HilbertDifference.Construction.EndomorphismNumericalPresentation A) (f : Endomorphisms.Construction.AlgebraicEnd A) : |
| 67 | ∃ b : ℕ, ∀ n : ℕ, b ≤ n → ∃ z : ℤ, (HilbertDifference.Construction.endomorphismHilbertDifference A D f).eval (n : ℚ) = z := by |
| 68 | let : Field Γ(Spec (CommRingCat.of K), ⊤) := Quotients.FiniteDescent.FieldPoint.Construction.FieldPointPrime.sectionsField K |
| 69 | exact NumericalDegreeProperties.Construction.lineBundleHilbertDifference_eventually_integer (Affine.ProjectiveEmbedding.Construction.projectiveAffineEmbedding A D.projective) |
| 70 | (D.bundle.pullback f.toMul.hom.hom.left) 0 |
| 71 | |
| 72 | def endomorphismPolynomialQuadraticHeight (D : HilbertDifference.Construction.EndomorphismNumericalPresentation A) : |
| 73 | PolynomialQuadratic.Construction.PolynomialQuadraticHeight (Endomorphisms.Construction.AlgebraicEnd A) where |
| 74 | value := HilbertDifference.Construction.endomorphismHilbertDifference A D |
| 75 | zero := HilbertDifference.Construction.endomorphismHilbertDifference_zero A D |
| 76 | detectsZero f hf := (HilbertDifference.Construction.endomorphismHilbertDifference_eq_zero_iff A D f).mp hf |
| 77 | positive := HilbertDifference.Construction.endomorphismHilbertDifference_leadingCoeff_pos A D |
| 78 | integer_values := endomorphismHilbertDifference_eventually_integer A D |
| 79 | coeff_parallelogram := endomorphismHilbertDifference_coeff_parallelogram A D |
| 80 | |
| 81 | end Construction |
| 82 | |
| 83 | end |
| 84 | |
| 85 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.PolynomialHeight |