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.ComplexPoints.Analytic.SchemePointHomeomorphs |
| 2 | import Mathlib.AlgebraicGeometry.Pullbacks |
| 3 | |
| 4 | /-! # Scheme Point Closed Map -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.ComplexPoints.Analytic |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! |
| 13 | # Actual pullbacks and images of complex scheme points |
| 14 | |
| 15 | The ordinary scheme pullback is equipped with its complex structure map. Its |
| 16 | universal property gives the precise point-set identity needed to test images |
| 17 | under a morphism against affine test spaces. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 21 | |
| 22 | variable {X Y Z T : Over Foundations.Scheme.ProjectiveSpace.complexBase} |
| 23 | |
| 24 | /-- The ordinary scheme fiber product, regarded as a scheme over the same complex base. -/ |
| 25 | def SchemePointHomeomorphs.schemeComplexPoints.pullbackOver (f : X ⟶ Z) (g : Y ⟶ Z) : Over Foundations.Scheme.ProjectiveSpace.complexBase := |
| 26 | Over.mk (pullback.snd f.left g.left ≫ Y.hom) |
| 27 | |
| 28 | /-- The left projection of the actual fiber product over the complex base. -/ |
| 29 | def SchemePointHomeomorphs.schemeComplexPoints.pullbackToLeft (f : X ⟶ Z) (g : Y ⟶ Z) : SchemePointHomeomorphs.schemeComplexPoints.pullbackOver f g ⟶ X := |
| 30 | Over.homMk (pullback.fst f.left g.left) (by |
| 31 | change pullback.fst f.left g.left ≫ X.hom = pullback.snd f.left g.left ≫ Y.hom |
| 32 | calc |
| 33 | _ = (pullback.fst f.left g.left ≫ f.left) ≫ Z.hom := by |
| 34 | rw [Category.assoc, Over.w f] |
| 35 | _ = (pullback.snd f.left g.left ≫ g.left) ≫ Z.hom := by |
| 36 | rw [pullback.condition] |
| 37 | _ = _ := by rw [Category.assoc, Over.w g]) |
| 38 | |
| 39 | /-- The right projection of the actual fiber product over the complex base. -/ |
| 40 | def SchemePointHomeomorphs.schemeComplexPoints.pullbackToRight (f : X ⟶ Z) (g : Y ⟶ Z) : SchemePointHomeomorphs.schemeComplexPoints.pullbackOver f g ⟶ Y := |
| 41 | Over.homMk (pullback.snd f.left g.left) (by rfl) |
| 42 | |
| 43 | /-- The two projections satisfy the actual scheme pullback relation. -/ |
| 44 | theorem SchemePointHomeomorphs.schemeComplexPoints.pullback_condition (f : X ⟶ Z) (g : Y ⟶ Z) : |
| 45 | SchemePointHomeomorphs.schemeComplexPoints.pullbackToLeft f g ≫ f = SchemePointHomeomorphs.schemeComplexPoints.pullbackToRight f g ≫ g := by |
| 46 | apply Over.OverMorphism.ext |
| 47 | exact pullback.condition |
| 48 | |
| 49 | /-- Compatible morphisms over the complex base lift to the actual fiber product. -/ |
| 50 | def SchemePointHomeomorphs.schemeComplexPoints.pullbackLift (f : X ⟶ Z) (g : Y ⟶ Z) (x : T ⟶ X) (y : T ⟶ Y) |
| 51 | (h : x ≫ f = y ≫ g) : T ⟶ SchemePointHomeomorphs.schemeComplexPoints.pullbackOver f g := |
| 52 | Over.homMk |
| 53 | (pullback.lift x.left y.left (congrArg (fun q : T ⟶ Z => q.left) h)) (by |
| 54 | change (pullback.lift x.left y.left _) ≫ |
| 55 | (pullback.snd f.left g.left ≫ Y.hom) = T.hom |
| 56 | rw [← Category.assoc, pullback.lift_snd, Over.w y]) |
| 57 | |
| 58 | @[simp] |
| 59 | theorem SchemePointHomeomorphs.schemeComplexPoints.pullbackLift_toLeft (f : X ⟶ Z) (g : Y ⟶ Z) (x : T ⟶ X) (y : T ⟶ Y) |
| 60 | (h : x ≫ f = y ≫ g) : |
| 61 | SchemePointHomeomorphs.schemeComplexPoints.pullbackLift f g x y h ≫ SchemePointHomeomorphs.schemeComplexPoints.pullbackToLeft f g = x := by |
| 62 | apply Over.OverMorphism.ext |
| 63 | exact pullback.lift_fst _ _ _ |
| 64 | |
| 65 | @[simp] |
| 66 | theorem SchemePointHomeomorphs.schemeComplexPoints.pullbackLift_toRight (f : X ⟶ Z) (g : Y ⟶ Z) (x : T ⟶ X) (y : T ⟶ Y) |
| 67 | (h : x ≫ f = y ≫ g) : |
| 68 | SchemePointHomeomorphs.schemeComplexPoints.pullbackLift f g x y h ≫ SchemePointHomeomorphs.schemeComplexPoints.pullbackToRight f g = y := by |
| 69 | apply Over.OverMorphism.ext |
| 70 | exact pullback.lift_snd _ _ _ |
| 71 | |
| 72 | /-- Pulling an image back along a test map is the image from the actual fiber product. -/ |
| 73 | theorem SchemePointHomeomorphs.schemeComplexPoints.preimage_image_eq_pullback_image (f : X ⟶ Z) (g : Y ⟶ Z) |
| 74 | (s : Set (SchemePointHomeomorphs.schemeComplexPoints X)) : |
| 75 | SchemePointHomeomorphs.schemeComplexPoints.map g ⁻¹' (SchemePointHomeomorphs.schemeComplexPoints.map f '' s) = |
| 76 | SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.pullbackToRight f g) '' (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.pullbackToLeft f g) ⁻¹' s) := by |
| 77 | ext y |
| 78 | constructor |
| 79 | · rintro ⟨x, hx, hxy⟩ |
| 80 | refine ⟨SchemePointHomeomorphs.schemeComplexPoints.pullbackLift f g x y hxy, ?_, ?_⟩ |
| 81 | · change (SchemePointHomeomorphs.schemeComplexPoints.pullbackLift f g x y hxy ≫ SchemePointHomeomorphs.schemeComplexPoints.pullbackToLeft f g) ∈ s |
| 82 | exact (SchemePointHomeomorphs.schemeComplexPoints.pullbackLift_toLeft f g x y hxy).symm ▸ hx |
| 83 | · exact SchemePointHomeomorphs.schemeComplexPoints.pullbackLift_toRight f g x y hxy |
| 84 | · rintro ⟨p, hp, rfl⟩ |
| 85 | refine ⟨SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.pullbackToLeft f g) p, hp, ?_⟩ |
| 86 | change (p ≫ SchemePointHomeomorphs.schemeComplexPoints.pullbackToLeft f g) ≫ f = (p ≫ SchemePointHomeomorphs.schemeComplexPoints.pullbackToRight f g) ≫ g |
| 87 | simpa only [Category.assoc] using |
| 88 | congrArg (fun q => p ≫ q) (SchemePointHomeomorphs.schemeComplexPoints.pullback_condition f g) |
| 89 | |
| 90 | end |
| 91 | |
| 92 | /-! |
| 93 | # Closed maps tested on actual affine pullbacks |
| 94 | |
| 95 | This module establishes the topological descent step for closed immersions. |
| 96 | Its local premise is an ordinary closed-map assertion on each actual affine |
| 97 | pullback; the closed-immersion module proves that premise from the algebraic |
| 98 | closed-immersion property. |
| 99 | -/ |
| 100 | |
| 101 | open _root_.CategoryTheory |
| 102 | |
| 103 | variable {X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase} |
| 104 | |
| 105 | /-- Closedness in the affine-test topology is checked on the actual affine test maps. -/ |
| 106 | theorem SchemePointHomeomorphs.schemeComplexPoints.isClosed_iff_affineTests (s : Set (SchemePointHomeomorphs.schemeComplexPoints X)) : |
| 107 | IsClosed s ↔ ∀ (A : CommAlgCat ℂ) (f : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ A ⟶ X), |
| 108 | IsClosed (SchemePointHomeomorphs.schemeComplexPoints.affinePointMap A f ⁻¹' s) := by |
| 109 | constructor |
| 110 | · intro hs A f |
| 111 | exact hs.preimage (SchemePointHomeomorphs.schemeComplexPoints.continuous_affinePointMap A f) |
| 112 | · intro hs |
| 113 | rw [← isOpen_compl_iff] |
| 114 | apply (SchemePointHomeomorphs.schemeComplexPoints.isOpen_iff_affineTests _).mpr |
| 115 | intro A f |
| 116 | exact (hs A f).isOpen_compl |
| 117 | |
| 118 | /-- Closedness of all affine pullback point maps implies closedness of the global point map. -/ |
| 119 | theorem SchemePointHomeomorphs.schemeComplexPoints.isClosedMap_map_of_affine_pullbacks (f : X ⟶ Y) |
| 120 | (h : ∀ (A : CommAlgCat ℂ) (g : Foundations.Scheme.AffineComplexPoints.affineSchemeOver ℂ A ⟶ Y), |
| 121 | IsClosedMap (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.pullbackToRight f g))) : |
| 122 | IsClosedMap (SchemePointHomeomorphs.schemeComplexPoints.map f) := by |
| 123 | intro s hs |
| 124 | apply (SchemePointHomeomorphs.schemeComplexPoints.isClosed_iff_affineTests _).mpr |
| 125 | intro A g |
| 126 | have hclosed : IsClosed |
| 127 | (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.pullbackToRight f g) '' (SchemePointHomeomorphs.schemeComplexPoints.map (SchemePointHomeomorphs.schemeComplexPoints.pullbackToLeft f g) ⁻¹' s)) := |
| 128 | h A g _ (hs.preimage (SchemePointHomeomorphs.schemeComplexPoints.continuous_map (SchemePointHomeomorphs.schemeComplexPoints.pullbackToLeft f g))) |
| 129 | change IsClosed ((SchemePointHomeomorphs.affineSchemePointEquiv A) ⁻¹' (SchemePointHomeomorphs.schemeComplexPoints.map g ⁻¹' (SchemePointHomeomorphs.schemeComplexPoints.map f '' s))) |
| 130 | rw [SchemePointHomeomorphs.schemeComplexPoints.preimage_image_eq_pullback_image f g s] |
| 131 | exact hclosed.preimage (SchemePointHomeomorphs.affineSchemePointHomeomorph A).continuous |
| 132 | |
| 133 | end |
| 134 | |
| 135 | end OAI.AlgebraicGeometry.ComplexPoints.Analytic |