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 Mathlib.CategoryTheory.Subfunctor.Basic |
| 2 | import Mathlib.CategoryTheory.Limits.Types.Pullbacks |
| 3 | import Mathlib.CategoryTheory.Limits.Shapes.Pullback.IsPullback.Basic |
| 4 | |
| 5 | /-! # Subfunctor Chart -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SubfunctorChart.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A monomorphism with the proved pointwise factorization condition |
| 12 | gives an actual Cartesian representation of a subfunctor on a chart. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits Opposite |
| 15 | |
| 16 | universe u v |
| 17 | variable {C : Type u} [Category.{v} C] {A T M : C} |
| 18 | (P : Subfunctor (yoneda.obj A)) (a : T ⟶ A) (m : M ⟶ T) |
| 19 | (h : ∀ (U : C) (j : U ⟶ T), (j ≫ a) ∈ P.obj (op U) ↔ ∃ z : U ⟶ M, z ≫ m = j) |
| 20 | |
| 21 | def subfunctorChartMap : yoneda.obj M ⟶ P.toFunctor where |
| 22 | app U := TypeCat.ofHom (fun f => ⟨f ≫ (m ≫ a), |
| 23 | P.map f.op ((h M m).mpr ⟨𝟙 M, Category.id_comp m⟩)⟩) |
| 24 | naturality := by |
| 25 | intro U V j |
| 26 | apply ConcreteCategory.hom_ext |
| 27 | intro f |
| 28 | apply Subtype.ext |
| 29 | exact Category.assoc _ _ _ |
| 30 | |
| 31 | theorem subfunctorChart_isPullback [Mono m] : |
| 32 | IsPullback (yoneda.map m) (subfunctorChartMap P a m h) (yoneda.map a) P.ι := by |
| 33 | apply IsPullback.of_forall_isPullback_app |
| 34 | intro U |
| 35 | apply (Types.isPullback_iff _ _ _ _).mpr |
| 36 | refine ⟨?_, ?_, ?_⟩ |
| 37 | · apply ConcreteCategory.hom_ext |
| 38 | intro f |
| 39 | exact Category.assoc _ _ _ |
| 40 | · intro f g hfg |
| 41 | exact (cancel_mono m).mp hfg.1 |
| 42 | · intro j x hx |
| 43 | change j ≫ a = x.val at hx |
| 44 | have hp : (j ≫ a) ∈ P.obj U := hx.symm ▸ x.property |
| 45 | obtain ⟨z, hz⟩ := (h U.unop j).mp hp |
| 46 | refine ⟨z, hz, Subtype.ext ?_⟩ |
| 47 | change z ≫ (m ≫ a) = x.val |
| 48 | rw [← Category.assoc, hz] |
| 49 | exact hx |
| 50 | |
| 51 | end |
| 52 | |
| 53 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SubfunctorChart.Construction |