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.AlgebraicGeometry.Morphisms.Immersion |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.QuasiCompact |
| 4 | |
| 5 | /-! # Subfunctor Representations -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.SubfunctorRepresentations |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Converting between natural subfunctor representations and their concrete |
| 12 | factorization properties, without assuming representability of a target result. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u |
| 17 | variable {S : Scheme.{u}} {M Z : Over S} |
| 18 | |
| 19 | theorem represented_subfunctor_mem (F : Subfunctor (yoneda.obj M)) (j : Z ⟶ M) |
| 20 | (e : yoneda.obj Z ≅ F.toFunctor) (he : e.hom ≫ F.ι = yoneda.map j) |
| 21 | (T : Over S) (x : T ⟶ M) : x ∈ F.obj (.op T) ↔ ∃ y : T ⟶ Z, y ≫ j = x := by |
| 22 | have hval (y : T ⟶ Z) : (e.hom.app (.op T) y).val = y ≫ j := by |
| 23 | change ((e.hom ≫ F.ι).app (.op T)) y = (yoneda.map j).app (.op T) y |
| 24 | exact ConcreteCategory.congr_hom (NatTrans.congr_app he (.op T)) y |
| 25 | constructor |
| 26 | · intro hx |
| 27 | let y := e.inv.app (.op T) ⟨x, hx⟩ |
| 28 | refine ⟨y, ?_⟩ |
| 29 | rw [← hval] |
| 30 | exact congrArg Subtype.val ((e.app (.op T)).inv_hom_id_apply ⟨x, hx⟩) |
| 31 | · rintro ⟨y, rfl⟩ |
| 32 | rw [← hval] |
| 33 | exact (e.hom.app (.op T) y).property |
| 34 | |
| 35 | theorem subfunctor_representation_of_lifts (F : Subfunctor (yoneda.obj M)) (j : Z ⟶ M) [Mono j] |
| 36 | (h : ∀ (T : Over S) (x : T ⟶ M), x ∈ F.obj (.op T) ↔ ∃ y : T ⟶ Z, y ≫ j = x) : |
| 37 | ∃ e : yoneda.obj Z ≅ F.toFunctor, e.hom ≫ F.ι = yoneda.map j := by |
| 38 | let t : yoneda.obj Z ⟶ F.toFunctor := { |
| 39 | app T := ↾fun y => ⟨y ≫ j, (h T.unop _).mpr ⟨y, rfl⟩⟩ |
| 40 | naturality := by |
| 41 | intro T U a |
| 42 | apply ConcreteCategory.hom_ext |
| 43 | intro y |
| 44 | exact Subtype.ext (Category.assoc _ _ _) } |
| 45 | have : IsIso t := by |
| 46 | apply (NatTrans.isIso_iff_isIso_app t).mpr |
| 47 | intro T |
| 48 | apply (isIso_iff_bijective _).mpr |
| 49 | constructor |
| 50 | · intro y z hyz |
| 51 | exact (cancel_mono j).mp (congrArg Subtype.val hyz) |
| 52 | · intro x |
| 53 | obtain ⟨y, hy⟩ := (h T.unop x.val).mp x.property |
| 54 | exact ⟨y, Subtype.ext hy⟩ |
| 55 | exact ⟨asIso t, rfl⟩ |
| 56 | |
| 57 | /-- A subfunctor is represented by a quasi-compact locally closed immersion. |
| 58 | This property is used for closure constructions on already proved loci. -/ |
| 59 | def ImmersionRepresentable (F : Subfunctor (yoneda.obj M)) : Prop := |
| 60 | ∃ (Z : Over S) (j : Z ⟶ M), IsImmersion j.left ∧ QuasiCompact j.left ∧ |
| 61 | ∃ e : yoneda.obj Z ≅ F.toFunctor, e.hom ≫ F.ι = yoneda.map j |
| 62 | |
| 63 | end |
| 64 | |
| 65 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.SubfunctorRepresentations |