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.PELModuli.IntegralModel.Presentations.Hilbert |
| 2 | |
| 3 | /-! # Fixed Family Equations -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Presentations.FixedFamilyEquations |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! The full Presentations equations input constructs a closed parameter locus |
| 12 | for any finite family of relative equations, by taking zero varying |
| 13 | endomorphisms. The zero-tuple ambient is proved to be the base itself. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 18 | open scoped _root_.CategoryTheory.MonObj |
| 19 | |
| 20 | variable {S : Scheme.{0}} [IsLocallyNoetherian S] |
| 21 | (A : Over S) [GrpObj A] [IsCommMonObj A] |
| 22 | [Smooth A.hom] [IsProper A.hom] [GeometricallyConnected A.hom] |
| 23 | |
| 24 | def emptyEndomorphismTuple (T : Over S) : (HilbertScheme.Presentations.Endomorphisms.Core.endomorphismTuples A 0).obj (op T) := |
| 25 | fun i => Fin.elim0 i |
| 26 | |
| 27 | theorem exists_e34_relative_equation_locus |
| 28 | (hPresentations : Hilbert.EndomorphismEquationsInput.{0}) |
| 29 | (BA : HilbertScheme.Presentations.Has.Core.ProjectivePresentation A) (R : HilbertScheme.Presentations.Endomorphisms.Core.FiniteEndomorphismEquations A 0) : |
| 30 | ∃ Z : Over S, IsClosedImmersion Z.hom ∧ |
| 31 | HilbertScheme.Presentations.Endomorphisms.Core.SatisfiesEquations R (emptyEndomorphismTuple A Z) ∧ |
| 32 | ∀ T : Over S, HilbertScheme.Presentations.Endomorphisms.Core.SatisfiesEquations R (emptyEndomorphismTuple A T) ↔ |
| 33 | ∃! _f : T ⟶ Z, True := by |
| 34 | obtain ⟨B, L, _, ⟨M⟩⟩ := hPresentations A BA 0 (fun i => Fin.elim0 i) R |
| 35 | have hend (T : Over S) : emptyEndomorphismTuple A T ∈ M.endLocus.obj (op T) := |
| 36 | (M.end_mem T _).mpr (fun i => Fin.elim0 i) |
| 37 | have huniq (T : Over S) : Subsingleton (T ⟶ M.endScheme) := by |
| 38 | constructor |
| 39 | intro f h |
| 40 | apply (M.endEquivalence.app (op T)).toEquiv.injective |
| 41 | apply Subtype.ext |
| 42 | exact funext (fun i => Fin.elim0 i) |
| 43 | let unit : Over S := Over.mk (𝟙 S) |
| 44 | let z : unit ⟶ M.endScheme := |
| 45 | M.endEquivalence.inv.app (op unit) ⟨emptyEndomorphismTuple A unit, hend unit⟩ |
| 46 | let q : M.endScheme ⟶ unit := Over.homMk M.endScheme.hom (by simp [unit]) |
| 47 | let e : M.endScheme ≅ unit := |
| 48 | { hom := q |
| 49 | inv := z |
| 50 | hom_inv_id := (huniq M.endScheme).elim _ _ |
| 51 | inv_hom_id := by |
| 52 | apply Over.OverMorphism.ext |
| 53 | exact z.w } |
| 54 | have hiso : IsIso M.endScheme.hom := |
| 55 | inferInstanceAs (IsIso ((Over.forget S).mapIso e).hom) |
| 56 | let := hiso |
| 57 | let := M.equations_closed |
| 58 | have hclosed : IsClosedImmersion M.solutionScheme.hom := by |
| 59 | rw [← M.forgetEquations.w] |
| 60 | exact IsClosedImmersion.comp M.forgetEquations.left M.endScheme.hom |
| 61 | have hsol (T : Over S) (v : (HilbertScheme.Presentations.Endomorphisms.Core.endomorphismTuples A 0).obj (op T)) : |
| 62 | v = emptyEndomorphismTuple A T := funext (fun i => Fin.elim0 i) |
| 63 | have huniv : HilbertScheme.Presentations.Endomorphisms.Core.SatisfiesEquations R (emptyEndomorphismTuple A M.solutionScheme) := by |
| 64 | let v := M.solutionEquivalence.hom.app (op M.solutionScheme) (𝟙 M.solutionScheme) |
| 65 | have hv := ((M.solution_mem M.solutionScheme v.val).mp v.property).2 |
| 66 | rw [hsol M.solutionScheme v.val] at hv |
| 67 | exact hv |
| 68 | refine ⟨M.solutionScheme, hclosed, huniv, fun T => ?_⟩ |
| 69 | constructor |
| 70 | · intro h |
| 71 | let v : M.solutionLocus.obj (op T) := |
| 72 | ⟨emptyEndomorphismTuple A T, (M.solution_mem T _).mpr ⟨fun i => Fin.elim0 i, h⟩⟩ |
| 73 | refine ⟨M.solutionEquivalence.inv.app (op T) v, trivial, fun f _ => ?_⟩ |
| 74 | apply (M.solutionEquivalence.app (op T)).toEquiv.injective |
| 75 | apply Subtype.ext |
| 76 | exact funext (fun i => Fin.elim0 i) |
| 77 | · rintro ⟨f, _, _⟩ |
| 78 | let v := M.solutionEquivalence.hom.app (op T) f |
| 79 | have hv := ((M.solution_mem T v.val).mp v.property).2 |
| 80 | rw [hsol T v.val] at hv |
| 81 | exact hv |
| 82 | |
| 83 | end |
| 84 | |
| 85 | /-! Fixed morphism pairs give natural Presentations equations, whose closed locus |
| 86 | classifies their equality after every parameter base change. -/ |
| 87 | |
| 88 | set_option backward.isDefEq.respectTransparency false |
| 89 | set_option backward.isDefEq.respectTransparency.types false |
| 90 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite |
| 91 | open scoped _root_.CategoryTheory.MonObj |
| 92 | |
| 93 | variable {S : Scheme.{0}} (A : Over S) [GrpObj A] |
| 94 | {X Y : Over S} |
| 95 | |
| 96 | def fixedRelativeMorphism (l : X ⟶ Y) : |
| 97 | HilbertScheme.Presentations.Endomorphisms.Core.endomorphismTuples A 0 ⟶ HilbertScheme.Presentations.HomFunctor.Hom.morphismFunctor X Y where |
| 98 | app T := ↾fun _ => (prod.snd : T.unop ⨯ X ⟶ X) ≫ l |
| 99 | naturality {T U} a := by |
| 100 | apply ConcreteCategory.hom_ext |
| 101 | intro v |
| 102 | change (prod.snd : U.unop ⨯ X ⟶ X) ≫ l = |
| 103 | prod.map a.unop (𝟙 X) ≫ (prod.snd : T.unop ⨯ X ⟶ X) ≫ l |
| 104 | rw [← Category.assoc, prod.map_snd, Category.comp_id] |
| 105 | |
| 106 | variable [Flat X.hom] [IsProper X.hom] [LocallyOfFinitePresentation X.hom] [IsSeparated Y.hom] |
| 107 | |
| 108 | def fixedFamilyMorphismEquation (l r : X ⟶ Y) : HilbertScheme.Presentations.Endomorphisms.Core.FamilyMorphismEquation (HilbertScheme.Presentations.Endomorphisms.Core.endomorphismTuples A 0) where |
| 109 | source := X |
| 110 | target := Y |
| 111 | flat := inferInstance |
| 112 | proper := inferInstance |
| 113 | finitelyPresented := inferInstance |
| 114 | separated := inferInstance |
| 115 | lhs := fixedRelativeMorphism A l |
| 116 | rhs := fixedRelativeMorphism A r |
| 117 | |
| 118 | def fixedFamilyEquations {m : ℕ} (l r : Fin m → (X ⟶ Y)) : HilbertScheme.Presentations.Endomorphisms.Core.FiniteEndomorphismEquations A 0 := |
| 119 | List.ofFn (fun i => fixedFamilyMorphismEquation A (l i) (r i)) |
| 120 | |
| 121 | theorem fixedFamilyEquations_satisfies_iff {m : ℕ} (l r : Fin m → (X ⟶ Y)) (T : Over S) : |
| 122 | HilbertScheme.Presentations.Endomorphisms.Core.SatisfiesEquations (fixedFamilyEquations A l r) (emptyEndomorphismTuple A T) ↔ |
| 123 | ∀ i, (prod.snd : T ⨯ X ⟶ X) ≫ l i = (prod.snd : T ⨯ X ⟶ X) ≫ r i := by |
| 124 | constructor |
| 125 | · intro h i |
| 126 | exact h _ (List.mem_ofFn.mpr ⟨i, rfl⟩) |
| 127 | · intro h e he |
| 128 | obtain ⟨i, rfl⟩ := List.mem_ofFn.mp he |
| 129 | exact h i |
| 130 | |
| 131 | variable [IsLocallyNoetherian S] [IsCommMonObj A] |
| 132 | [Smooth A.hom] [IsProper A.hom] [GeometricallyConnected A.hom] |
| 133 | |
| 134 | theorem exists_e34_fixed_relative_equation_locus |
| 135 | (hPresentations : Hilbert.EndomorphismEquationsInput.{0}) (BA : HilbertScheme.Presentations.Has.Core.ProjectivePresentation A) |
| 136 | {m : ℕ} (l r : Fin m → (X ⟶ Y)) : |
| 137 | ∃ Z : Over S, IsClosedImmersion Z.hom ∧ |
| 138 | (∀ i, (prod.snd : Z ⨯ X ⟶ X) ≫ l i = (prod.snd : Z ⨯ X ⟶ X) ≫ r i) ∧ |
| 139 | ∀ T : Over S, |
| 140 | (∀ i, (prod.snd : T ⨯ X ⟶ X) ≫ l i = (prod.snd : T ⨯ X ⟶ X) ≫ r i) ↔ |
| 141 | ∃! _f : T ⟶ Z, True := by |
| 142 | obtain ⟨Z, hZ, hU, hclass⟩ := |
| 143 | exists_e34_relative_equation_locus A hPresentations BA (fixedFamilyEquations A l r) |
| 144 | exact ⟨Z, hZ, (fixedFamilyEquations_satisfies_iff A l r Z).mp hU, |
| 145 | fun T => (fixedFamilyEquations_satisfies_iff A l r T).symm.trans (hclass T)⟩ |
| 146 | |
| 147 | end |
| 148 | |
| 149 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Presentations.FixedFamilyEquations |