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.Foundations.Scheme.AffineSchemeComplexPoints |
| 2 | import OAI.AlgebraicGeometry.Foundations.Scheme.ImmersionComplexPoints |
| 3 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.SchemePointUnderlying |
| 4 | import OAI.AlgebraicGeometry.CycleClass.Geometric.ReducedClosed |
| 5 | |
| 6 | /-! # Scheme Point Separation -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.SchemePointSeparation.Constructions.Algebraization |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! |
| 13 | # Algebraic closed subsets from regular-function separators |
| 14 | |
| 15 | Regular functions on affine open charts give Zariski open separators of |
| 16 | complex points. Such separators identify exactly the complex points of the |
| 17 | reduced closed subscheme supported on their Zariski closure. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry Set |
| 21 | |
| 22 | theorem underlying_mem_basicOpen_iff |
| 23 | (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) [IsAffine X.left] (p : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) |
| 24 | (r : Γ(X.left, ⊤)) : |
| 25 | ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying p ∈ X.left.basicOpen r ↔ Foundations.Scheme.AffineSchemeComplexPoints.affineNativePointEquiv X p r ≠ 0 := by |
| 26 | rw [← X.left.map_PrimeSpectrum_basicOpen_of_affine r] |
| 27 | change X.left.isoSpec.hom (p.left ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.basePoint) ∈ PrimeSpectrum.basicOpen r ↔ _ |
| 28 | have heq := congrArg (fun f : Foundations.Scheme.ProjectiveSpace.complexBase ⟶ Spec Γ(X.left, ⊤) => |
| 29 | f ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.basePoint) (Foundations.Scheme.AffineSchemeComplexPoints.affineNativePointEquiv_spec X p) |
| 30 | rw [Scheme.Hom.comp_apply] at heq |
| 31 | change ¬ r ∈ (X.left.isoSpec.hom (p.left ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.basePoint)).asIdeal ↔ _ |
| 32 | rw [← heq] |
| 33 | change ¬ (Foundations.Scheme.AffineSchemeComplexPoints.affineNativePointEquiv X p r) ∈ (⊥ : Ideal ℂ) ↔ _ |
| 34 | simp only [Ideal.mem_bot] |
| 35 | |
| 36 | theorem exists_open_separator_of_affine_regular_function |
| 37 | {X T : Over Foundations.Scheme.ProjectiveSpace.complexBase} [IsAffine T.left] |
| 38 | (i : T ⟶ X) [IsOpenImmersion i.left] |
| 39 | {S : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)} (p : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints T) |
| 40 | (r : Γ(T.left, ⊤)) (hr : Foundations.Scheme.AffineSchemeComplexPoints.affineNativePointEquiv T p r ≠ 0) |
| 41 | (hzero : ∀ q : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints T, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map i q ∈ S → |
| 42 | Foundations.Scheme.AffineSchemeComplexPoints.affineNativePointEquiv T q r = 0) : |
| 43 | ∃ U : X.left.Opens, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map i p) ∈ U ∧ |
| 44 | ∀ q ∈ S, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying q ∉ U := by |
| 45 | let U : X.left.Opens := ⟨i.left '' (T.left.basicOpen r : Set T.left), |
| 46 | i.left.isOpenEmbedding.isOpenMap _ (T.left.basicOpen r).isOpen⟩ |
| 47 | refine ⟨U, ⟨ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying p, (underlying_mem_basicOpen_iff T p r).mpr hr, rfl⟩, ?_⟩ |
| 48 | intro q hq hqU |
| 49 | obtain ⟨x, hx, hxq⟩ := hqU |
| 50 | have hqrange : q.left (⊥ : PrimeSpectrum ℂ) ∈ range i.left := ⟨x, hxq⟩ |
| 51 | obtain ⟨q', hq'⟩ := Foundations.Scheme.ImmersionComplexPoints.surjectiveOnStalks_relativeFieldPoint_existsLift i q |
| 52 | (⊥ : PrimeSpectrum ℂ) hqrange |
| 53 | have hqx : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying q' = x := by |
| 54 | apply i.left.isOpenEmbedding.injective |
| 55 | have h := congrArg ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying hq' |
| 56 | change i.left (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying q') = ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying q at h |
| 57 | exact h.trans hxq.symm |
| 58 | have hnonzero : Foundations.Scheme.AffineSchemeComplexPoints.affineNativePointEquiv T q' r ≠ 0 := |
| 59 | (underlying_mem_basicOpen_iff T q' r).mp (hqx.symm ▸ hx) |
| 60 | exact hnonzero (hzero q' (by change (q' ≫ i) ∈ S; rwa [hq'])) |
| 61 | |
| 62 | theorem exists_reduced_closed_subscheme_of_open_separators |
| 63 | (X : Over Foundations.Scheme.ProjectiveSpace.complexBase) (S : Set (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X)) |
| 64 | (hsep : ∀ p ∉ S, ∃ U : X.left.Opens, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying p ∈ U ∧ |
| 65 | ∀ q ∈ S, ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying q ∉ U) : |
| 66 | ∃ (Z : Over Foundations.Scheme.ProjectiveSpace.complexBase) (i : Z ⟶ X), |
| 67 | IsReduced Z.left ∧ IsClosedImmersion i.left ∧ range (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.map i) = S := by |
| 68 | let C : TopologicalSpace.Closeds X.left := |
| 69 | ⟨closure (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying '' S), isClosed_closure⟩ |
| 70 | have hC (p : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints X) : ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying p ∈ C ↔ p ∈ S := by |
| 71 | constructor |
| 72 | · intro hp |
| 73 | by_contra hpS |
| 74 | obtain ⟨U, hpU, hU⟩ := hsep p hpS |
| 75 | have hclosure : closure (ComplexPoints.Analytic.SchemePointHomeomorphs.schemeComplexPoints.underlying '' S) ⊆ (U : Set X.left)ᶜ := by |
| 76 | apply closure_minimal _ U.isOpen.isClosed_compl |
| 77 | rintro _ ⟨q, hq, rfl⟩ |
| 78 | exact hU q hq |
| 79 | exact hclosure hp hpU |
| 80 | · intro hp |
| 81 | exact subset_closure ⟨p, hp, rfl⟩ |
| 82 | let Z := Over.mk (CycleClass.Geometric.ReducedClosed.reducedClosedι C ≫ X.hom) |
| 83 | let i : Z ⟶ X := Over.homMk (CycleClass.Geometric.ReducedClosed.reducedClosedι C) rfl |
| 84 | have hi : IsClosedImmersion i.left := inferInstanceAs (IsClosedImmersion (CycleClass.Geometric.ReducedClosed.reducedClosedι C)) |
| 85 | refine ⟨Z, i, inferInstanceAs (IsReduced (CycleClass.Geometric.ReducedClosed.reducedClosedScheme C)), hi, ?_⟩ |
| 86 | change range (fun q => q ≫ i) = S |
| 87 | rw [Foundations.Scheme.ImmersionComplexPoints.range_closedImmersion_complexPointMap i] |
| 88 | ext p |
| 89 | change p.left (⊥ : PrimeSpectrum ℂ) ∈ range (CycleClass.Geometric.ReducedClosed.reducedClosedι C) ↔ p ∈ S |
| 90 | rw [CycleClass.Geometric.ReducedClosed.range_reducedClosedι] |
| 91 | exact hC p |
| 92 | |
| 93 | end |
| 94 | |
| 95 | end OAI.AlgebraicGeometry.ComplexGroups.HolomorphicAlgebraicity.SchemePointSeparation.Constructions.Algebraization |