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.HilbertScheme.Presentations.Closed.AmbientProjectivePresentation |
| 2 | |
| 3 | /-! # Ambient Fiber Polynomial -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Closed.AmbientFiberPolynomial.Core |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Inclusion in a closed projective ambient scheme preserves exactly |
| 10 | the statement's field-fiber Hilbert-polynomial predicate, including its |
| 11 | arbitrary Cartesian coordinate comparisons. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | variable {S : Scheme.{u}} {X Y : Over S} (j : X ⟶ Y) [IsClosedImmersion j.left] |
| 17 | variable (B : Has.Core.ProjectivePresentation Y) {T : Over S} (F : Hilbert.Functor.Family X T) (P : Polynomial ℚ) |
| 18 | |
| 19 | theorem hasFiberHilbertPolynomial_of_pushforward |
| 20 | (h : Has.Core.HasFiberHilbertPolynomial B (Hilbert.ClosedAmbientMap.pushforwardFamily j F) P) : |
| 21 | Has.Core.HasFiberHilbertPolynomial (B.precompose j) F P := by |
| 22 | intro K _ a |
| 23 | let t : Over S := Over.mk (a ≫ T.hom) |
| 24 | let b : t ⟶ T := Over.homMk a rfl |
| 25 | let J := Hilbert.Functor.pullbackFamily X b F |
| 26 | let e := AmbientProjectivePresentation.Hilbert.closedAmbientSubschemeIso j J |
| 27 | have hh := h K a |
| 28 | dsimp only at hh ⊢ |
| 29 | rw [← Hilbert.ClosedAmbientNaturality.pushforwardFamily_baseChange] at hh |
| 30 | obtain ⟨q, f, hq, hf, hinc, hproj, hP⟩ := hh |
| 31 | let g : (Hilbert.ClosedAmbientMap.pushforwardFamily j J).val.subscheme ⟶ Proj (Hilbert.Polynomial.GradedHilbert.grading K B.dimension) := f |
| 32 | let : IsClosedImmersion g := hf |
| 33 | have hgi : g ≫ q = (Hilbert.ClosedAmbientMap.pushforwardFamily j J).val.subschemeι ≫ |
| 34 | (prod.snd : t ⨯ Y ⟶ Y).left ≫ B.embedding := hinc |
| 35 | have hgp : g ≫ Has.Core.projectiveSpaceMap K B.dimension = |
| 36 | Hilbert.Functor.familyProjection Y (Hilbert.ClosedAmbientMap.pushforwardFamily j J).val := hproj |
| 37 | have hc : IsClosedImmersion (e.hom ≫ g) := inferInstance |
| 38 | refine ⟨q, e.hom ≫ g, hq, hc, ?_, ?_, ?_⟩ |
| 39 | · exact (Category.assoc e.hom g q).trans |
| 40 | ((congrArg (fun z => e.hom ≫ z) hgi).trans |
| 41 | (AmbientProjectivePresentation.Hilbert.closedAmbientSubschemeIso_hom_projective j J B)) |
| 42 | · exact (Category.assoc e.hom g _).trans |
| 43 | ((congrArg (fun z => e.hom ≫ z) hgp).trans |
| 44 | (AmbientProjectivePresentation.Hilbert.closedAmbientSubschemeIso_hom_projection j J)) |
| 45 | · have hk := Scheme.Hom.ker_comp_of_isIso e.hom g |
| 46 | exact (congrArg (fun I => Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 47 | (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf I).toIdeal P) hk).mpr hP |
| 48 | |
| 49 | theorem hasFiberHilbertPolynomial_pushforward |
| 50 | (h : Has.Core.HasFiberHilbertPolynomial (B.precompose j) F P) : |
| 51 | Has.Core.HasFiberHilbertPolynomial B (Hilbert.ClosedAmbientMap.pushforwardFamily j F) P := by |
| 52 | intro K _ a |
| 53 | let t : Over S := Over.mk (a ≫ T.hom) |
| 54 | let b : t ⟶ T := Over.homMk a rfl |
| 55 | let J := Hilbert.Functor.pullbackFamily X b F |
| 56 | let e := AmbientProjectivePresentation.Hilbert.closedAmbientSubschemeIso j J |
| 57 | have hh := h K a |
| 58 | dsimp only at hh ⊢ |
| 59 | rw [← Hilbert.ClosedAmbientNaturality.pushforwardFamily_baseChange] |
| 60 | obtain ⟨q, f, hq, hf, hinc, hproj, hP⟩ := hh |
| 61 | let g : J.val.subscheme ⟶ Proj (Hilbert.Polynomial.GradedHilbert.grading K B.dimension) := f |
| 62 | let : IsClosedImmersion g := hf |
| 63 | have hgi : g ≫ q = J.val.subschemeι ≫ |
| 64 | (prod.snd : t ⨯ X ⟶ X).left ≫ (B.precompose j).embedding := hinc |
| 65 | have hgp : g ≫ Has.Core.projectiveSpaceMap K B.dimension = Hilbert.Functor.familyProjection X J.val := hproj |
| 66 | have hc : IsClosedImmersion (e.inv ≫ g) := inferInstance |
| 67 | refine ⟨q, e.inv ≫ g, hq, hc, ?_, ?_, ?_⟩ |
| 68 | · exact (Category.assoc e.inv g q).trans |
| 69 | ((congrArg (fun z => e.inv ≫ z) hgi).trans |
| 70 | ((Iso.inv_comp_eq e).mpr (AmbientProjectivePresentation.Hilbert.closedAmbientSubschemeIso_hom_projective j J B).symm)) |
| 71 | · exact (Category.assoc e.inv g _).trans |
| 72 | ((congrArg (fun z => e.inv ≫ z) hgp).trans |
| 73 | ((Iso.inv_comp_eq e).mpr (AmbientProjectivePresentation.Hilbert.closedAmbientSubschemeIso_hom_projection j J).symm)) |
| 74 | · have hk := Scheme.Hom.ker_comp_of_isIso e.inv g |
| 75 | exact (congrArg (fun I => Hilbert.Polynomial.GradedHilbert.HasHilbertPolynomial |
| 76 | (ChartHomogeneousIdeal.GradedHilbert.homogeneousIdealOfSheaf I).toIdeal P) hk).mpr hP |
| 77 | |
| 78 | theorem hasFiberHilbertPolynomial_pushforward_iff : |
| 79 | Has.Core.HasFiberHilbertPolynomial B (Hilbert.ClosedAmbientMap.pushforwardFamily j F) P ↔ |
| 80 | Has.Core.HasFiberHilbertPolynomial (B.precompose j) F P := |
| 81 | ⟨hasFiberHilbertPolynomial_of_pushforward j B F P, |
| 82 | hasFiberHilbertPolynomial_pushforward j B F P⟩ |
| 83 | |
| 84 | theorem hasFiberHilbertPolynomial_closedAmbient_iff |
| 85 | {X : Over S} (BX : Has.Core.ProjectivePresentation X) {T : Over S} |
| 86 | (F : Hilbert.Functor.Family X T) (P : Polynomial ℚ) : |
| 87 | Has.Core.HasFiberHilbertPolynomial (Intrinsic.ProjectivePresentation.GradedHilbert.canonicalProjectivePresentation S BX.dimension) |
| 88 | (Hilbert.ClosedAmbientMap.pushforwardFamily BX.closedAmbientEmbedding F) P ↔ Has.Core.HasFiberHilbertPolynomial BX F P := by |
| 89 | have h := hasFiberHilbertPolynomial_pushforward_iff BX.closedAmbientEmbedding |
| 90 | (Intrinsic.ProjectivePresentation.GradedHilbert.canonicalProjectivePresentation S BX.dimension) F P |
| 91 | rwa [Has.Core.ProjectivePresentation.canonical_precompose] at h |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Closed.AmbientFiberPolynomial.Core |