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.Yoneda |
| 3 | import Mathlib.CategoryTheory.ConcreteCategory.EpiMono |
| 4 | |
| 5 | /-! # Represented Subfunctor -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.RepresentedSubfunctor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Extract the universal object and exact classifying property from a |
| 12 | natural representation of a subfunctor. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory Opposite |
| 15 | |
| 16 | universe u v |
| 17 | variable {C : Type u} [Category.{v} C] (F : Cᵒᵖ ⥤ Type v) (Q : Subfunctor F) |
| 18 | (Z : C) (e : yoneda.obj Z ≅ Q.toFunctor) |
| 19 | |
| 20 | def representedSubfunctorUniversal : F.obj (op Z) := |
| 21 | (e.hom.app (op Z) (𝟙 Z)).val |
| 22 | |
| 23 | theorem representedSubfunctorUniversal_mem : |
| 24 | representedSubfunctorUniversal F Q Z e ∈ Q.obj (op Z) := |
| 25 | (e.hom.app (op Z) (𝟙 Z)).property |
| 26 | |
| 27 | theorem representedSubfunctorUniversal_naturality {T : C} (f : T ⟶ Z) : |
| 28 | (e.hom.app (op T) f).val = F.map f.op (representedSubfunctorUniversal F Q Z e) := by |
| 29 | have h := ConcreteCategory.congr_hom (e.hom.naturality f.op) (𝟙 Z) |
| 30 | change e.hom.app (op T) (f ≫ 𝟙 Z) = |
| 31 | Q.toFunctor.map f.op (e.hom.app (op Z) (𝟙 Z)) at h |
| 32 | rw [Category.comp_id] at h |
| 33 | exact congrArg Subtype.val h |
| 34 | |
| 35 | theorem representedSubfunctorUniversal_classifies (T : C) (x : F.obj (op T)) : |
| 36 | x ∈ Q.obj (op T) ↔ |
| 37 | ∃! f : T ⟶ Z, F.map f.op (representedSubfunctorUniversal F Q Z e) = x := by |
| 38 | have he := ConcreteCategory.bijective_of_isIso (e.hom.app (op T)) |
| 39 | constructor |
| 40 | · intro hx |
| 41 | obtain ⟨f, hf⟩ := he.surjective ⟨x, hx⟩ |
| 42 | change T ⟶ Z at f |
| 43 | refine ⟨f, ?_, ?_⟩ |
| 44 | · change F.map f.op (representedSubfunctorUniversal F Q Z e) = x |
| 45 | rw [← representedSubfunctorUniversal_naturality, hf] |
| 46 | · intro a ha |
| 47 | apply he.injective |
| 48 | apply Subtype.ext |
| 49 | rw [representedSubfunctorUniversal_naturality, ha, hf] |
| 50 | · rintro ⟨f, hf, _⟩ |
| 51 | rw [← hf] |
| 52 | exact Q.map f.op (representedSubfunctorUniversal_mem F Q Z e) |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.RepresentedSubfunctor |