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.Finite.ProjectiveEquationLoci |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Presentations.EquationBaseChange |
| 3 | |
| 4 | /-! # Projective Fixed Equation Locus -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ProjectiveFixedEquationLocus |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Fixed morphism equations with a projective source have a closed |
| 11 | base locus on all tests. This uses the proved projective equation |
| 12 | theorem directly, with no Hilbert/Hom or equation-locus input. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 15 | |
| 16 | open OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.ProjectiveEquationLoci.Core |
| 17 | |
| 18 | variable {S : Scheme.{0}} {X Y : Over S} |
| 19 | |
| 20 | def fixedProjectiveMorphism (l : X ⟶ Y) : |
| 21 | yoneda.obj (Over.mk (𝟙 S)) ⟶ HilbertScheme.Presentations.HomFunctor.Hom.morphismFunctor X Y where |
| 22 | app T := ↾fun _ => (prod.snd : T.unop ⨯ X ⟶ X) ≫ l |
| 23 | naturality {T U} a := by |
| 24 | apply ConcreteCategory.hom_ext |
| 25 | intro v |
| 26 | change (prod.snd : U.unop ⨯ X ⟶ X) ≫ l = |
| 27 | prod.map a.unop (𝟙 X) ≫ (prod.snd : T.unop ⨯ X ⟶ X) ≫ l |
| 28 | rw [← Category.assoc, prod.map_snd, Category.comp_id] |
| 29 | |
| 30 | variable [Flat X.hom] [IsProper X.hom] [LocallyOfFinitePresentation X.hom] |
| 31 | [IsSeparated Y.hom] |
| 32 | |
| 33 | def fixedProjectiveEquation (l r : X ⟶ Y) : |
| 34 | HilbertScheme.Presentations.Endomorphisms.Core.FamilyMorphismEquation (yoneda.obj (Over.mk (𝟙 S))) where |
| 35 | source := X |
| 36 | target := Y |
| 37 | flat := inferInstance |
| 38 | proper := inferInstance |
| 39 | finitelyPresented := inferInstance |
| 40 | separated := inferInstance |
| 41 | lhs := fixedProjectiveMorphism l |
| 42 | rhs := fixedProjectiveMorphism r |
| 43 | |
| 44 | theorem exists_projective_fixed_pullback_equation_locus |
| 45 | [IsLocallyNoetherian S] (B : HilbertScheme.Presentations.Has.Core.ProjectivePresentation X) |
| 46 | {m : ℕ} (l r : Fin m → (X ⟶ Y)) : |
| 47 | ∃ Z : Over S, IsClosedImmersion Z.hom ∧ |
| 48 | (∀ i, (Over.pullback Z.hom).map (l i) = (Over.pullback Z.hom).map (r i)) ∧ |
| 49 | ∀ T : Over S, |
| 50 | (∀ i, (Over.pullback T.hom).map (l i) = (Over.pullback T.hom).map (r i)) ↔ |
| 51 | ∃! _f : T ⟶ Z, True := by |
| 52 | let M : Over S := Over.mk (𝟙 S) |
| 53 | let : IsLocallyNoetherian M.left := inferInstanceAs (IsLocallyNoetherian S) |
| 54 | let R := List.ofFn (fun i => fixedProjectiveEquation (l i) (r i)) |
| 55 | have hR : ∀ q ∈ R, Nonempty (HilbertScheme.Presentations.Has.Core.ProjectivePresentation q.source) := by |
| 56 | intro q hq |
| 57 | obtain ⟨i, rfl⟩ := List.mem_ofFn.mp hq |
| 58 | exact ⟨B⟩ |
| 59 | obtain ⟨Z, j, hj, htest⟩ := HilbertScheme.Presentations.Finite.ProjectiveEquationLoci.Core.finite_projective_equations_closed_lifts R hR (𝟙 (yoneda.obj M)) |
| 60 | let : IsClosedImmersion j.left := hj |
| 61 | change ∀ (T : Over S) (x : T ⟶ M), HilbertScheme.Presentations.Endomorphisms.Core.SatisfiesEquations R x ↔ |
| 62 | ∃! y : T ⟶ Z, y ≫ j = x at htest |
| 63 | have hw : (show Z.left ⟶ S from j.left) = Z.hom := by |
| 64 | calc |
| 65 | (show Z.left ⟶ S from j.left) = (show Z.left ⟶ S from j.left) ≫ 𝟙 S := |
| 66 | (Category.comp_id _).symm |
| 67 | _ = Z.hom := j.w |
| 68 | have hZ : IsClosedImmersion Z.hom := by |
| 69 | exact hw ▸ hj |
| 70 | let x (T : Over S) : T ⟶ M := Over.homMk T.hom (Category.comp_id _) |
| 71 | have hx (T : Over S) (f : T ⟶ Z) : f ≫ j = x T := by |
| 72 | apply Over.OverMorphism.ext |
| 73 | change f.left ≫ (show Z.left ⟶ S from j.left) = T.hom |
| 74 | rw [hw] |
| 75 | exact f.w |
| 76 | have heq (T : Over S) : |
| 77 | (∀ i, (Over.pullback T.hom).map (l i) = (Over.pullback T.hom).map (r i)) ↔ |
| 78 | HilbertScheme.Presentations.Endomorphisms.Core.SatisfiesEquations R (x T) := by |
| 79 | constructor |
| 80 | · intro h q hq |
| 81 | obtain ⟨i, rfl⟩ := List.mem_ofFn.mp hq |
| 82 | exact (PELModuli.IntegralModel.Presentations.EquationBaseChange.fixed_relative_equation_iff_pullback T (l i) (r i)).mpr (h i) |
| 83 | · intro h i |
| 84 | exact (PELModuli.IntegralModel.Presentations.EquationBaseChange.fixed_relative_equation_iff_pullback T (l i) (r i)).mp |
| 85 | (h _ (List.mem_ofFn.mpr ⟨i, rfl⟩)) |
| 86 | have hclass (T : Over S) : |
| 87 | (∀ i, (Over.pullback T.hom).map (l i) = (Over.pullback T.hom).map (r i)) ↔ |
| 88 | ∃! _f : T ⟶ Z, True := by |
| 89 | rw [heq T, htest T (x T)] |
| 90 | constructor |
| 91 | · rintro ⟨f, _, hf⟩ |
| 92 | exact ⟨f, trivial, fun q _ => hf q (hx T q)⟩ |
| 93 | · rintro ⟨f, _, hf⟩ |
| 94 | exact ⟨f, hx T f, fun q _ => hf q trivial⟩ |
| 95 | refine ⟨Z, hZ, (hclass Z).mpr ?_, hclass⟩ |
| 96 | let : IsClosedImmersion Z.hom := hZ |
| 97 | let : Mono j := Over.mono_of_mono_left j |
| 98 | exact ⟨𝟙 Z, trivial, fun q _ => (cancel_mono j).mp ((hx Z q).trans (hx Z (𝟙 Z)).symm)⟩ |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.ProjectiveFixedEquationLocus |