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