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.SubfunctorChart |
| 2 | import Mathlib.AlgebraicGeometry.Sites.Representability |
| 3 | |
| 4 | /-! # Subfunctor Scheme Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SubfunctorSchemeGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A sheaf subfunctor of a scheme's points is represented by gluing |
| 11 | its actual monomorphic charts over an open cover of the scheme. -/ |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | |
| 15 | open _root_.AlgebraicGeometry _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 16 | |
| 17 | namespace Construction |
| 18 | |
| 19 | universe u |
| 20 | variable {S : Scheme.{u}} (P : Subfunctor (yoneda.obj S)) (U : S.OpenCover.{u}) |
| 21 | (M : ∀ i, Over (U.X i)) [∀ i, Mono (M i).hom] |
| 22 | (h : ∀ i (Z : Scheme.{u}) (j : Z ⟶ U.X i), |
| 23 | (j ≫ U.f i) ∈ P.obj (op Z) ↔ ∃ z : Z ⟶ (M i).left, z ≫ (M i).hom = j) |
| 24 | |
| 25 | theorem subfunctorChartMap_isOpenImmersion (i : U.I₀) : |
| 26 | IsOpenImmersion.presheaf (SubfunctorChart.Construction.subfunctorChartMap P (U.f i) (M i).hom (h i)) := by |
| 27 | have : MorphismProperty.IsStableUnderBaseChange (@IsOpenImmersion).presheaf := |
| 28 | MorphismProperty.relative_isStableUnderBaseChange _ |
| 29 | exact MorphismProperty.of_isPullback (SubfunctorChart.Construction.subfunctorChart_isPullback P (U.f i) (M i).hom (h i)) |
| 30 | (MorphismProperty.relative_map (F := yoneda) (P := @IsOpenImmersion) inferInstance) |
| 31 | |
| 32 | instance subfunctorChartMap_locallySurjective : |
| 33 | Presheaf.IsLocallySurjective Scheme.zariskiTopology |
| 34 | (Sigma.desc (fun i => SubfunctorChart.Construction.subfunctorChartMap P (U.f i) (M i).hom (h i))) where |
| 35 | imageSieve_mem {Z} x := by |
| 36 | apply Scheme.zariskiTopology.superset_covering _ |
| 37 | (Scheme.zariskiTopology.pullback_stable x.val U.mem_grothendieckTopology) |
| 38 | intro W f hf |
| 39 | obtain ⟨i, j, hj⟩ := (Sieve.mem_ofArrows_iff U.X U.f (f ≫ x.val)).mp hf |
| 40 | have hp : (j ≫ U.f i) ∈ P.obj (op W) := hj ▸ P.map f.op x.property |
| 41 | obtain ⟨z, hz⟩ := (h i W j).mp hp |
| 42 | refine ⟨(Sigma.ι (fun i => yoneda.obj (M i).left) i).app (op W) z, ?_⟩ |
| 43 | have he := congrArg (fun t => t.app (op W)) |
| 44 | (Sigma.ι_comp_desc (fun i => SubfunctorChart.Construction.subfunctorChartMap P (U.f i) (M i).hom (h i)) i) |
| 45 | have hv := ConcreteCategory.congr_hom he z |
| 46 | refine hv.trans (Subtype.ext ?_) |
| 47 | change z ≫ ((M i).hom ≫ U.f i) = f ≫ x.val |
| 48 | rw [← Category.assoc, hz] |
| 49 | exact hj.symm |
| 50 | |
| 51 | include h in |
| 52 | theorem subfunctor_isRepresentable_of_openCover |
| 53 | (hP : Presieve.IsSheaf Scheme.zariskiTopology P.toFunctor) : P.toFunctor.IsRepresentable := by |
| 54 | let F : Sheaf Scheme.zariskiTopology (Type u) := |
| 55 | ⟨P.toFunctor, (isSheaf_iff_isSheaf_of_type _ _).mpr hP⟩ |
| 56 | let g : ∀ i : U.I₀, yoneda.obj (M i).left ⟶ F.obj := |
| 57 | fun i => SubfunctorChart.Construction.subfunctorChartMap P (U.f i) (M i).hom (h i) |
| 58 | have hg : ∀ i : U.I₀, IsOpenImmersion.presheaf (g i) := |
| 59 | fun i => subfunctorChartMap_isOpenImmersion P U M h i |
| 60 | exact Scheme.LocalRepresentability.isRepresentable (F := F) (ι := U.I₀) |
| 61 | (X := fun i => (M i).left) (f := g) hg |
| 62 | |
| 63 | end Construction |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SubfunctorSchemeGluing |