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.AbelianScheme.CartierDuality.MultiplicationFlat |
| 2 | |
| 3 | /-! # Group Hom Flat -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Finite.GroupHomFlat.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | Finite surjective homomorphisms between smooth group schemes are flat. |
| 11 | Translations spread generic flatness across each geometric fiber, and |
| 12 | the existing finite-morphism criterion descends flatness to the base. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | open _root_.CategoryTheory.MonoidalCategory _root_.CategoryTheory.CartesianMonoidalCategory |
| 17 | open scoped _root_.CategoryTheory.MonObj _root_.CategoryTheory.Obj |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem groupHom_translation |
| 22 | {S : Scheme.{u}} {A B : Over S} [GrpObj A] [GrpObj B] |
| 23 | (f : A ⟶ B) [IsMonHom f] (b : 𝟙_ (Over S) ⟶ A) : |
| 24 | (GrpObj.mulRight b).hom ≫ f = f ≫ (GrpObj.mulRight (b ≫ f)).hom := by |
| 25 | change ((𝟙 A) * (toUnit A ≫ b)) ≫ f = f ≫ ((𝟙 B) * (toUnit B ≫ b ≫ f)) |
| 26 | rw [MonObj.mul_comp, MonObj.comp_mul, Category.id_comp, Category.comp_id] |
| 27 | rw [Category.assoc, ← Category.assoc f (toUnit B), comp_toUnit] |
| 28 | |
| 29 | theorem groupHom_transitive_automorphisms |
| 30 | {k : Type u} [Field k] [IsAlgClosed k] |
| 31 | {A B : Over (Spec (.of k))} [GrpObj A] [GrpObj B] |
| 32 | [LocallyOfFiniteType A.hom] (f : A ⟶ B) [IsMonHom f] |
| 33 | (x y : A.left) (hx : IsClosed {x}) (hy : IsClosed {y}) : |
| 34 | ∃ (α : A.left ≅ A.left) (β : B.left ≅ B.left), |
| 35 | α.hom x = y ∧ α.hom ≫ f.left = f.left ≫ β.hom := by |
| 36 | let x' : 𝟙_ (Over (Spec (.of k))) ⟶ A := |
| 37 | Over.homMk (pointOfClosedPoint A.hom x hx) (pointOfClosedPoint_comp A.hom x hx) |
| 38 | let y' : 𝟙_ (Over (Spec (.of k))) ⟶ A := |
| 39 | Over.homMk (pointOfClosedPoint A.hom y hy) (pointOfClosedPoint_comp A.hom y hy) |
| 40 | let b := x'⁻¹ * y' |
| 41 | let α := (Over.forget (Spec (.of k))).mapIso (GrpObj.mulRight b) |
| 42 | let β := (Over.forget (Spec (.of k))).mapIso (GrpObj.mulRight (b ≫ f)) |
| 43 | have hxy : x' ≫ (GrpObj.mulRight b).hom = y' := by |
| 44 | change x' ≫ ((𝟙 A) * (toUnit A ≫ b)) = y' |
| 45 | rw [MonObj.comp_mul, Category.comp_id, ← Category.assoc, |
| 46 | comp_toUnit, toUnit_unit, Category.id_comp] |
| 47 | exact mul_inv_cancel_left x' y' |
| 48 | refine ⟨α, β, ?_, congrArg Over.Hom.left (groupHom_translation f b)⟩ |
| 49 | have h : x'.left ≫ α.hom = y'.left := congrArg Over.Hom.left hxy |
| 50 | have heval := congrArg (fun z : Spec (.of k) ⟶ A.left => z (IsLocalRing.closedPoint k)) h |
| 51 | change α.hom (x'.left (IsLocalRing.closedPoint k)) = y'.left (IsLocalRing.closedPoint k) at heval |
| 52 | have hx' : x'.left (IsLocalRing.closedPoint k) = x := pointOfClosedPoint_apply A.hom x hx _ |
| 53 | have hy' : y'.left (IsLocalRing.closedPoint k) = y := pointOfClosedPoint_apply A.hom y hy _ |
| 54 | rwa [hx', hy'] at heval |
| 55 | |
| 56 | theorem finite_surjective_groupHom_flat_geometric |
| 57 | {k : Type u} [Field k] [IsAlgClosed k] |
| 58 | {A B : Over (Spec (.of k))} [GrpObj A] [GrpObj B] |
| 59 | [Smooth A.hom] [Smooth B.hom] (f : A ⟶ B) [IsMonHom f] |
| 60 | [IsFinite f.left] [Surjective f.left] : Flat f.left := by |
| 61 | have : IsReduced B.left := ArithmeticGeometry.OrdinaryLocus.Openness.SmoothReduced.Construction.isReduced_smooth_over_field B.hom |
| 62 | have : Nonempty B.left := ⟨η[B].left (IsLocalRing.closedPoint k)⟩ |
| 63 | have : JacobsonSpace A.left := LocallyOfFiniteType.jacobsonSpace A.hom |
| 64 | have hfp : LocallyOfFinitePresentation (f.left ≫ B.hom) := by rw [f.w]; infer_instance |
| 65 | have : LocallyOfFinitePresentation f.left := |
| 66 | Picard.Homomorphisms.FinitePresentation.Construction.locallyOfFinitePresentation_of_comp_of_finiteType hfp inferInstance |
| 67 | obtain ⟨U, hU, hflat⟩ := CartierDuality.GenericFlat.Construction.GenericFlatOpen.exists_nonempty_flat_source_open_of_reduced f.left |
| 68 | have : Flat (U.ι ≫ f.left) := hflat |
| 69 | exact CartierDuality.MultiplicationFlat.Construction.Multiplication.flat_of_transitive_automorphisms f.left |
| 70 | (groupHom_transitive_automorphisms f) U hU |
| 71 | |
| 72 | theorem finite_surjective_groupHom_flat |
| 73 | {S : Scheme.{u}} {A B : Over S} [GrpObj A] [GrpObj B] |
| 74 | [Smooth A.hom] [Smooth B.hom] (f : A ⟶ B) [IsMonHom f] |
| 75 | [IsFinite f.left] [Surjective f.left] : Flat f.left := by |
| 76 | have hfp : LocallyOfFinitePresentation (f.left ≫ B.hom) := by rw [f.w]; infer_instance |
| 77 | have : LocallyOfFinitePresentation f.left := |
| 78 | Picard.Homomorphisms.FinitePresentation.Construction.locallyOfFinitePresentation_of_comp_of_finiteType hfp inferInstance |
| 79 | apply ArithmeticGeometry.OrdinaryLocus.Openness.FiberwiseFlatness.Construction.flat_finite_of_flat_geometric_baseChanges f |
| 80 | intro k _ _ s |
| 81 | let F := Over.pullback s |
| 82 | have : Smooth (F.obj A).hom := inferInstanceAs (Smooth (CategoryTheory.Limits.pullback.snd A.hom s)) |
| 83 | have : Smooth (F.obj B).hom := inferInstanceAs (Smooth (CategoryTheory.Limits.pullback.snd B.hom s)) |
| 84 | have : IsFinite (F.map f).left := MorphismProperty.overPullbackMap (P := @IsFinite) s f inferInstance |
| 85 | have : Surjective (F.map f).left := MorphismProperty.overPullbackMap (P := @Surjective) s f inferInstance |
| 86 | exact finite_surjective_groupHom_flat_geometric (F.map f) |
| 87 | |
| 88 | end |
| 89 | |
| 90 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.Finite.GroupHomFlat.Construction |