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.AbelianModuli.HilbertConstruction.Affine.MonoRecognition |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.SubfunctorRepresentations |
| 3 | import Mathlib.CategoryTheory.Limits.Constructions.Over.Products |
| 4 | |
| 5 | /-! # Pullback Locus Recognition -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.PullbackLocusRecognition |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A represented affine lifting condition identifies the actual pullback of a monomorphism as a quasi-compact locally closed immersion. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry OAI.AlgebraicGeometry.HilbertScheme.Presentations.SubfunctorRepresentations |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {S : Scheme.{u}} {G Z M : Over S} |
| 18 | variable (p : Z ⟶ G) [Mono p] (g : M ⟶ G) |
| 19 | |
| 20 | theorem pullback_snd_lift_iff {T : Over S} (x : T ⟶ M) : |
| 21 | (∃ a : T ⟶ pullback p g, a ≫ pullback.snd p g = x) ↔ |
| 22 | ∃! y : T ⟶ Z, y ≫ p = x ≫ g := by |
| 23 | constructor |
| 24 | · rintro ⟨a, ha⟩ |
| 25 | have hy : (a ≫ pullback.fst p g) ≫ p = x ≫ g := by |
| 26 | rw [Category.assoc, pullback.condition, ← Category.assoc, ha] |
| 27 | exact ⟨a ≫ pullback.fst p g, hy, fun y hy' => (cancel_mono p).mp (hy'.trans hy.symm)⟩ |
| 28 | · rintro ⟨y, hy, _⟩ |
| 29 | exact ⟨pullback.lift y x hy, pullback.lift_snd y x hy⟩ |
| 30 | |
| 31 | theorem pullback_locus_of_affine_lifts (F : Subfunctor (yoneda.obj M)) (hF : HilbertScheme.Presentations.SubfunctorRepresentations.ImmersionRepresentable F) |
| 32 | (h : ∀ (R : CommRingCat.{u}) (f : Spec R ⟶ S) (x : Over.mk f ⟶ M), |
| 33 | x ∈ F.obj (.op (Over.mk f)) ↔ ∃! y : Over.mk f ⟶ Z, y ≫ p = x ≫ g) : |
| 34 | IsImmersion (pullback.snd p g).left ∧ QuasiCompact (pullback.snd p g).left := by |
| 35 | obtain ⟨W, j, hj, hqc, e, he⟩ := hF |
| 36 | let := hj |
| 37 | let := hqc |
| 38 | have : Mono j := Over.mono_of_mono_left j |
| 39 | obtain ⟨i, hi⟩ := MonoRecognition.overMono_iso_of_affine_lifts (pullback.snd p g) j (fun R f x => |
| 40 | (pullback_snd_lift_iff p g x).trans ((h R f x).symm.trans |
| 41 | (HilbertScheme.Presentations.SubfunctorRepresentations.represented_subfunctor_mem F j e he (Over.mk f) x))) |
| 42 | have hleft : i.hom.left ≫ j.left = (pullback.snd p g).left := congrArg Over.Hom.left hi |
| 43 | have : IsIso i.hom.left := inferInstanceAs (IsIso ((Over.forget S).map i.hom)) |
| 44 | rw [← hleft] |
| 45 | exact ⟨inferInstance, inferInstance⟩ |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.PullbackLocusRecognition |