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.EffectiveHilbertDifference |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.GeneratedAmpleBundle |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.ProjectiveEmbedding |
| 4 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.PicardQuadratic |
| 5 | |
| 6 | /-! # Hilbert Difference -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.HilbertDifference |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! An actual polynomial-valued positive invariant of endomorphisms. |
| 13 | The presentation and generated symmetric ample bundle are derived from the native group. |
| 14 | No quadratic numerical identity is asserted for this Hilbert difference. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | |
| 18 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 19 | |
| 20 | namespace Construction |
| 21 | |
| 22 | universe u |
| 23 | |
| 24 | variable {K : Type u} [Field K] |
| 25 | (A : Over (Spec (CommRingCat.of K))) [GrpObj A] [IsCommMonObj A] |
| 26 | |
| 27 | structure EndomorphismNumericalPresentation where |
| 28 | projective : AbelianModuli.HilbertConstruction.Projective.ProjectivePresentations.ProjectivePresentation A |
| 29 | bundle : AbelianModuli.HilbertConstruction.Line.Bundles.LineBundle A.left |
| 30 | ample : bundle.IsAmple |
| 31 | frames : Frame.SectionDetection.Construction.HasFrameSections bundle.sheaf |
| 32 | symmetric : Nonempty ((bundle.pullback (GrpObj.inv (X := A)).left).sheaf ≅ bundle.sheaf) |
| 33 | |
| 34 | def endomorphismNumericalPresentation [IsAlgClosed K] [IsProper A.hom] [Smooth A.hom] |
| 35 | [GeometricallyIntegral A.hom] : EndomorphismNumericalPresentation A := by |
| 36 | apply Classical.choice |
| 37 | obtain ⟨P⟩ := Geometric.Projectivity.Construction.geometric_group_projectivePresentation A |
| 38 | obtain ⟨L, hL, hg, hs⟩ := GeneratedAmpleBundle.Construction.exists_symmetric_generated_ample_lineBundle A |
| 39 | exact ⟨⟨P, L, hL, hg, hs⟩⟩ |
| 40 | |
| 41 | variable [GeometricallyIntegral A.hom] |
| 42 | |
| 43 | def endomorphismHilbertDifference (D : EndomorphismNumericalPresentation A) |
| 44 | (f : Endomorphisms.Construction.AlgebraicEnd A) : Polynomial ℚ := by |
| 45 | let : Field Γ(Spec (CommRingCat.of K), ⊤) := Quotients.FiniteDescent.FieldPoint.Construction.FieldPointPrime.sectionsField K |
| 46 | have : IsIntegral A.left := GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 47 | exact EffectiveHilbertDifference.Construction.lineBundleHilbertDifference (Affine.ProjectiveEmbedding.Construction.projectiveAffineEmbedding A D.projective) |
| 48 | (D.bundle.pullback f.toMul.hom.hom.left) 0 |
| 49 | |
| 50 | theorem endomorphismHilbertDifference_zero (D : EndomorphismNumericalPresentation A) : |
| 51 | endomorphismHilbertDifference A D 0 = 0 := by |
| 52 | let : Field Γ(Spec (CommRingCat.of K), ⊤) := Quotients.FiniteDescent.FieldPoint.Construction.FieldPointPrime.sectionsField K |
| 53 | have : IsIntegral A.left := GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 54 | have hc := congrArg Additive.toMul (PicardQuadratic.Construction.algebraicEndLineBundleClass_zero A D.bundle) |
| 55 | obtain ⟨e⟩ := Quotient.exact hc |
| 56 | exact EffectiveHilbertDifference.Construction.lineBundleHilbertDifference_eq_zero_of_trivial |
| 57 | (Affine.ProjectiveEmbedding.Construction.projectiveAffineEmbedding A D.projective) _ 0 e |
| 58 | |
| 59 | theorem endomorphismHilbertDifference_leadingCoeff_pos [IsAlgClosed K] [IsProper A.hom] |
| 60 | (D : EndomorphismNumericalPresentation A) (f : Endomorphisms.Construction.AlgebraicEnd A) (hf : f ≠ 0) : |
| 61 | 0 < (endomorphismHilbertDifference A D f).leadingCoeff := by |
| 62 | let : Field Γ(Spec (CommRingCat.of K), ⊤) := Quotients.FiniteDescent.FieldPoint.Construction.FieldPointPrime.sectionsField K |
| 63 | have : IsIntegral A.left := GeometricallyIntegral.isIntegral_of_subsingleton A.hom |
| 64 | apply EffectiveHilbertDifference.Construction.lineBundleHilbertDifference_leadingCoeff_pos |
| 65 | (Affine.ProjectiveEmbedding.Construction.projectiveAffineEmbedding A D.projective) _ 0 (D.frames.pullback f.toMul.hom.hom.left) |
| 66 | intro he |
| 67 | apply hf |
| 68 | apply (PicardQuadratic.Construction.algebraicEndLineBundleClass_eq_zero_iff A D.bundle D.ample f).mp |
| 69 | apply Additive.toMul.injective |
| 70 | exact Quotient.sound he |
| 71 | |
| 72 | theorem endomorphismHilbertDifference_eq_zero_iff [IsAlgClosed K] [IsProper A.hom] |
| 73 | (D : EndomorphismNumericalPresentation A) (f : Endomorphisms.Construction.AlgebraicEnd A) : |
| 74 | endomorphismHilbertDifference A D f = 0 ↔ f = 0 := by |
| 75 | constructor |
| 76 | · intro h |
| 77 | by_contra hf |
| 78 | have hp := endomorphismHilbertDifference_leadingCoeff_pos A D f hf |
| 79 | rw [h, Polynomial.leadingCoeff_zero] at hp |
| 80 | exact (lt_irrefl 0) hp |
| 81 | · rintro rfl |
| 82 | exact endomorphismHilbertDifference_zero A D |
| 83 | |
| 84 | end Construction |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.Endomorphism.HilbertDifference |