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.Albanese.Construction.DominantDimension |
| 2 | |
| 3 | /-! # Dominant Smooth -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Albanese.Construction.DominantSmooth |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 10 | |
| 11 | /-- In characteristic zero, a dominant finite-type morphism of integral |
| 12 | varieties is smooth at the generic point of its source. -/ |
| 13 | theorem dominant_genericPoint_mem_smoothLocus |
| 14 | {X Y : Scheme} [IsIntegral X] [IsIntegral Y] |
| 15 | (i : X ⟶ Y) [IsDominant i] [LocallyOfFinitePresentation i] |
| 16 | (f : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) : genericPoint X ∈ i.smoothLocus := by |
| 17 | have hpoint := DominantDimension.dominant_genericPoint i |
| 18 | have hchar : CharZero Y.functionField := |
| 19 | charZero_of_injective_ringHom (Foundations.Scheme.FunctionFieldScalar.functionFieldScalarMap f).injective |
| 20 | have hfield : IsField (Y.presheaf.stalk (i (genericPoint X))) := by |
| 21 | rw [hpoint] |
| 22 | exact Field.toIsField Y.functionField |
| 23 | have : CharZero (Y.presheaf.stalk (i (genericPoint X))) := by |
| 24 | rw [hpoint] |
| 25 | exact hchar |
| 26 | let _ := hfield.toField |
| 27 | have := LocallyOfFiniteType.stalkMap i (genericPoint X) |
| 28 | rw [Scheme.Hom.mem_smoothLocus] |
| 29 | algebraize [(i.stalkMap (genericPoint X)).hom] |
| 30 | exact Algebra.FormallySmooth.of_perfectField |
| 31 | |
| 32 | /-- Dominance in characteristic zero supplies a dense smooth locus. -/ |
| 33 | theorem dominant_dense_smoothLocus |
| 34 | {X Y : Scheme} [IsIntegral X] [IsIntegral Y] |
| 35 | (i : X ⟶ Y) [IsDominant i] [LocallyOfFinitePresentation i] |
| 36 | (f : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) : Dense (i.smoothLocus : Set X) := by |
| 37 | apply dense_iff_closure_eq.mpr |
| 38 | apply Set.eq_univ_of_univ_subset |
| 39 | rw [← genericPoint_spec X] |
| 40 | exact closure_mono (Set.singleton_subset_iff.mpr |
| 41 | (dominant_genericPoint_mem_smoothLocus i f)) |
| 42 | |
| 43 | set_option backward.isDefEq.respectTransparency false in |
| 44 | /-- Postcomposition with an isomorphism preserves the smooth locus. -/ |
| 45 | theorem smoothLocus_comp_isIso {X Y Z : Scheme} (f : X ⟶ Y) (g : Y ⟶ Z) |
| 46 | [LocallyOfFinitePresentation f] [IsIso g] : (f ≫ g).smoothLocus = f.smoothLocus := by |
| 47 | ext x |
| 48 | change ((f ≫ g).stalkMap x).hom.FormallySmooth ↔ (f.stalkMap x).hom.FormallySmooth |
| 49 | rw [Scheme.Hom.stalkMap_comp] |
| 50 | exact RingHom.FormallySmooth.respectsIso.cancel_left_isIso (g.stalkMap (f x)) (f.stalkMap x) |
| 51 | |
| 52 | set_option backward.defeqAttrib.useBackward true in |
| 53 | set_option backward.isDefEq.respectTransparency false in |
| 54 | /-- A nonempty smooth locus extends to every point when algebraic |
| 55 | automorphisms act transitively on the source and commute with the morphism. -/ |
| 56 | theorem smooth_of_point_equivariant (X Y : Over Foundations.Scheme.ProjectiveSpace.complexBase) |
| 57 | [LocallyOfFiniteType X.hom] (f : X ⟶ Y) [LocallyOfFinitePresentation f.left] |
| 58 | (hsmooth : (f.left.smoothLocus : Set X.left).Nonempty) |
| 59 | (htrans : ∀ p q : Over.mk (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) ⟶ X, |
| 60 | ∃ (e : X ≅ X) (d : Y ≅ Y), p ≫ e.hom = q ∧ e.hom ≫ f = f ≫ d.hom) : |
| 61 | Smooth f.left := by |
| 62 | have : JacobsonSpace X.left := LocallyOfFiniteType.jacobsonSpace X.hom |
| 63 | rw [← Scheme.Hom.smoothLocus_eq_top_iff, ← TopologicalSpace.Opens.coe_eq_univ, |
| 64 | ← not_ne_iff, ← Set.nonempty_compl] |
| 65 | intro hbad |
| 66 | obtain ⟨x, hx, hxc⟩ := nonempty_inter_closedPoints hbad |
| 67 | f.left.smoothLocus.2.isClosed_compl.isLocallyClosed |
| 68 | obtain ⟨y, hy, hyc⟩ := nonempty_inter_closedPoints hsmooth |
| 69 | f.left.smoothLocus.2.isLocallyClosed |
| 70 | let p : Over.mk (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) ⟶ X := |
| 71 | Over.homMk _ ((pointEquivClosedPoint X.hom).symm ⟨x, hxc⟩).2 |
| 72 | let q : Over.mk (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) ⟶ X := |
| 73 | Over.homMk _ ((pointEquivClosedPoint X.hom).symm ⟨y, hyc⟩).2 |
| 74 | obtain ⟨e, d, he, hcomm⟩ := htrans p q |
| 75 | have hexy : e.hom.left x = y := by |
| 76 | simpa [p, q, pointEquivClosedPoint] using congr(($he).left (IsLocalRing.closedPoint ℂ)) |
| 77 | have : IsIso e.hom.left := (Over.forget _).map_isIso e.hom |
| 78 | have : IsIso d.hom.left := (Over.forget _).map_isIso d.hom |
| 79 | have hxpre : x ∈ e.hom.left ⁻¹ᵁ f.left.smoothLocus := by |
| 80 | change e.hom.left x ∈ f.left.smoothLocus |
| 81 | rw [hexy] |
| 82 | exact hy |
| 83 | have hcomm' : e.hom.left ≫ f.left = f.left ≫ d.hom.left := congrArg Over.Hom.left hcomm |
| 84 | rw! [Scheme.Hom.preimage_smoothLocus_eq, hcomm', smoothLocus_comp_isIso] at hxpre |
| 85 | exact hx hxpre |
| 86 | |
| 87 | open MonoidalCategory CartesianMonoidalCategory MonObj |
| 88 | |
| 89 | /-- Group homomorphisms intertwine translation by a point with translation |
| 90 | by its image. -/ |
| 91 | theorem mulRight_hom_comp (G H : Over Foundations.Scheme.ProjectiveSpace.complexBase) [GrpObj G] [GrpObj H] |
| 92 | (f : G ⟶ H) [IsMonHom f] (z : Over.mk (𝟙 Foundations.Scheme.ProjectiveSpace.complexBase) ⟶ G) : |
| 93 | (GrpObj.mulRight z).hom ≫ f = f ≫ (GrpObj.mulRight (z ≫ f)).hom := by |
| 94 | change (𝟙 G * (toUnit G ≫ z)) ≫ f = f ≫ (𝟙 H * (toUnit H ≫ z ≫ f)) |
| 95 | rw [MonObj.mul_comp, MonObj.comp_mul] |
| 96 | simp [Category.assoc] |
| 97 | |
| 98 | /-- A dominant homomorphism of complex abelian varieties is smooth at every |
| 99 | point. Generic smoothness and translation equivariance supply the proof. -/ |
| 100 | theorem dominant_abelian_hom_smooth (A B : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) |
| 101 | (f : A.toOver ⟶ B.toOver) [IsMonHom f] [IsDominant f.left] : Smooth f.left := by |
| 102 | have : IsIntegral A.toOver.left := inferInstanceAs (IsIntegral A.carrier) |
| 103 | have : IsIntegral B.toOver.left := inferInstanceAs (IsIntegral B.carrier) |
| 104 | have : LocallyOfFiniteType A.toOver.hom := |
| 105 | inferInstanceAs (LocallyOfFiniteType A.variety.structureMap) |
| 106 | have : LocallyOfFiniteType B.toOver.hom := |
| 107 | inferInstanceAs (LocallyOfFiniteType B.variety.structureMap) |
| 108 | have : IsLocallyNoetherian B.toOver.left := |
| 109 | LocallyOfFiniteType.isLocallyNoetherian B.toOver.hom |
| 110 | have : LocallyOfFiniteType (f.left ≫ B.toOver.hom) := by rw [f.w]; infer_instance |
| 111 | have : LocallyOfFiniteType f.left := locallyOfFiniteType_of_comp f.left B.toOver.hom |
| 112 | apply smooth_of_point_equivariant A.toOver B.toOver f |
| 113 | (dominant_dense_smoothLocus f.left B.toOver.hom).nonempty |
| 114 | intro p q |
| 115 | let z := p⁻¹ * q |
| 116 | refine ⟨GrpObj.mulRight z, GrpObj.mulRight (z ≫ f), ?_, mulRight_hom_comp _ _ f z⟩ |
| 117 | rw [SubgroupScheme.point_mulRight] |
| 118 | simp [z] |
| 119 | |
| 120 | /-- Homomorphic refinements of generated targets are smooth surjections. -/ |
| 121 | theorem refinement_smooth (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) |
| 122 | (A B : ComplexMultiplication.CMAbelianVariety.CM.AbelianVariety) (a : X.toOver ⟶ A.toOver) (b : X.toOver ⟶ B.toOver) |
| 123 | (φ : A.toOver ⟶ B.toOver) [IsMonHom φ] (hφ : a ≫ φ = b) |
| 124 | (hb : GeneratedClosed.Generates X B b) : Smooth φ.left := by |
| 125 | have : Surjective φ.left := GeneratedClosed.refinement_surjective X A B a b φ hφ hb |
| 126 | have : IsDominant φ.left := ⟨φ.left.surjective.denseRange⟩ |
| 127 | exact dominant_abelian_hom_smooth A B φ |
| 128 | |
| 129 | end |
| 130 | |
| 131 | end OAI.AlgebraicGeometry.Albanese.Construction.DominantSmooth |