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.HilbertScheme.Presentations.Projective.FamilyEquationLocus |
| 2 | |
| 3 | /-! # Projective Equation Loci -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.ProjectiveEquationLoci.Core |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Finite natural equations with projective sources are represented by |
| 10 | a closed parameter scheme, with their exact natural solution subfunctor. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | variable {S : Scheme.{u}} {F : (Over S)ᵒᵖ ⥤ Type u} |
| 16 | |
| 17 | theorem finite_projective_equations_closed_lifts |
| 18 | (R : List (Endomorphisms.Core.FamilyMorphismEquation F)) |
| 19 | (hR : ∀ r ∈ R, Nonempty (Has.Core.ProjectivePresentation r.source)) |
| 20 | {M : Over S} [IsLocallyNoetherian M.left] (φ : yoneda.obj M ⟶ F) : |
| 21 | ∃ (Z : Over S) (j : Z ⟶ M), IsClosedImmersion j.left ∧ |
| 22 | ∀ (T : Over S) (x : T ⟶ M), Endomorphisms.Core.SatisfiesEquations R (φ.app (.op T) x) ↔ |
| 23 | ∃! y : T ⟶ Z, y ≫ j = x := by |
| 24 | induction R generalizing M with |
| 25 | | nil => |
| 26 | refine ⟨M, 𝟙 M, inferInstanceAs (IsClosedImmersion (𝟙 M.left)), ?_⟩ |
| 27 | intro T x |
| 28 | constructor |
| 29 | · intro _ |
| 30 | exact ⟨x, Category.comp_id x, fun y hy => by simpa only [Category.comp_id] using hy⟩ |
| 31 | · intro _ r hr |
| 32 | cases hr |
| 33 | | cons r R ih => |
| 34 | obtain ⟨B⟩ := hR r (List.mem_cons_self ..) |
| 35 | obtain ⟨Z₁, j₁, hj₁, h₁⟩ := r.projective_closed_locus B φ |
| 36 | let : IsClosedImmersion j₁.left := hj₁ |
| 37 | let : Mono j₁ := Over.mono_of_mono_left j₁ |
| 38 | let : IsLocallyNoetherian Z₁.left := by |
| 39 | exact LocallyOfFiniteType.isLocallyNoetherian j₁.left |
| 40 | obtain ⟨Z₂, j₂, hj₂, h₂⟩ := ih (fun s hs => hR s (List.mem_cons_of_mem r hs)) |
| 41 | (yoneda.map j₁ ≫ φ) |
| 42 | let : IsClosedImmersion j₂.left := hj₂ |
| 43 | let : Mono j₂ := Over.mono_of_mono_left j₂ |
| 44 | refine ⟨Z₂, j₂ ≫ j₁, inferInstanceAs (IsClosedImmersion (j₂.left ≫ j₁.left)), ?_⟩ |
| 45 | intro T x |
| 46 | constructor |
| 47 | · intro hx |
| 48 | obtain ⟨y, hy, _⟩ := (h₁ T x).mp (hx r (List.mem_cons_self ..)) |
| 49 | have hyR : Endomorphisms.Core.SatisfiesEquations R ((yoneda.map j₁ ≫ φ).app (.op T) y) := by |
| 50 | change Endomorphisms.Core.SatisfiesEquations R (φ.app (.op T) (y ≫ j₁)) |
| 51 | rw [hy] |
| 52 | exact fun s hs => hx s (List.mem_cons_of_mem r hs) |
| 53 | obtain ⟨z, hz, _⟩ := (h₂ T y).mp hyR |
| 54 | have hz' : z ≫ (j₂ ≫ j₁) = x := by rw [← Category.assoc, hz, hy] |
| 55 | exact ⟨z, hz', fun w hw => (cancel_mono (j₂ ≫ j₁)).mp (hw.trans hz'.symm)⟩ |
| 56 | · rintro ⟨z, rfl, _⟩ |
| 57 | have hfirst := (h₁ T ((z ≫ j₂) ≫ j₁)).mpr |
| 58 | ⟨z ≫ j₂, rfl, fun w hw => (cancel_mono j₁).mp hw⟩ |
| 59 | have hrest := (h₂ T (z ≫ j₂)).mpr |
| 60 | ⟨z, rfl, fun w hw => (cancel_mono j₂).mp hw⟩ |
| 61 | change Endomorphisms.Core.SatisfiesEquations R (φ.app (.op T) ((z ≫ j₂) ≫ j₁)) at hrest |
| 62 | intro s hs |
| 63 | rcases List.mem_cons.mp hs with rfl | hs |
| 64 | · simpa only [Category.assoc] using hfirst |
| 65 | · simpa only [Category.assoc] using hrest s hs |
| 66 | |
| 67 | theorem finite_projective_equations_closed_locus |
| 68 | (R : List (Endomorphisms.Core.FamilyMorphismEquation F)) |
| 69 | (hR : ∀ r ∈ R, Nonempty (Has.Core.ProjectivePresentation r.source)) |
| 70 | {M : Over S} [IsLocallyNoetherian M.left] (φ : yoneda.obj M ⟶ F) : |
| 71 | ∃ (Z : Over S) (j : Z ⟶ M), IsClosedImmersion j.left ∧ |
| 72 | (∀ (T : Over S) (x : T ⟶ M), Endomorphisms.Core.SatisfiesEquations R (φ.app (.op T) x) ↔ |
| 73 | ∃! y : T ⟶ Z, y ≫ j = x) ∧ |
| 74 | ∃ e : yoneda.obj Z ≅ ((Endomorphisms.Core.solutionSubfunctor R).preimage φ).toFunctor, |
| 75 | e.hom ≫ ((Endomorphisms.Core.solutionSubfunctor R).preimage φ).ι = yoneda.map j := by |
| 76 | obtain ⟨Z, j, hj, htest⟩ := finite_projective_equations_closed_lifts R hR φ |
| 77 | let : IsClosedImmersion j.left := hj |
| 78 | let : Mono j := Over.mono_of_mono_left j |
| 79 | refine ⟨Z, j, hj, htest, ?_⟩ |
| 80 | apply SubfunctorRepresentations.subfunctor_representation_of_lifts |
| 81 | intro T x |
| 82 | constructor |
| 83 | · intro hx |
| 84 | exact ((htest T x).mp hx).exists |
| 85 | · rintro ⟨y, hy⟩ |
| 86 | exact (htest T x).mpr ⟨y, hy, fun z hz => (cancel_mono j).mp (hz.trans hy.symm)⟩ |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.ProjectiveEquationLoci.Core |