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.NumberTheory.PadicHodge.IntegralComparison.Geometric.FrobeniusFactorShiftEtale |
| 2 | import OAI.ArithmeticGeometry.OrdinaryLocus.Openness.FiberwiseFlatness |
| 3 | |
| 4 | /-! # Frobenius Shift Etale -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Reference.FrobeniusShiftEtale |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Prime-to-characteristic positive shifts of Frobenius are finite, |
| 11 | surjective and étale on the original finite-field group scheme. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | open scoped _root_.CategoryTheory.Obj |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | |
| 19 | universe u |
| 20 | |
| 21 | theorem groupHom_flat {S : Scheme.{u}} {X Y : Over S} [GrpObj X] [GrpObj Y] |
| 22 | [Smooth X.hom] [Smooth Y.hom] (f : X ⟶ Y) [IsMonHom f] |
| 23 | [IsFinite f.left] [Surjective f.left] : Flat f.left := by |
| 24 | let : LocallyOfFinitePresentation (f.left ≫ Y.hom) := by rw [Over.w]; infer_instance |
| 25 | let : LocallyOfFinitePresentation f.left := AlgebraicGeometry.AbelianScheme.TorsionQuotient.FinitePresentationOf.FinitePresentation.of_comp f.left Y.hom |
| 26 | apply ArithmeticGeometry.OrdinaryLocus.Openness.FiberwiseFlatness.Construction.flat_finite_of_flat_geometric_baseChanges f |
| 27 | intro K _ _ t |
| 28 | let F := Over.pullback t |
| 29 | let : Smooth (F.obj X).hom := |
| 30 | inferInstanceAs (Smooth (CategoryTheory.Limits.pullback.snd X.hom t)) |
| 31 | let : Smooth (F.obj Y).hom := |
| 32 | inferInstanceAs (Smooth (CategoryTheory.Limits.pullback.snd Y.hom t)) |
| 33 | let : IsFinite (F.map f).left := MorphismProperty.overPullbackMap (P := @IsFinite) t f inferInstance |
| 34 | let : Surjective (F.map f).left := MorphismProperty.overPullbackMap (P := @Surjective) t f inferInstance |
| 35 | exact AlgebraicGeometry.FormalGeometry.Completion.Finite.GroupHomFlat.Construction.finite_surjective_groupHom_flat (F.map f) |
| 36 | |
| 37 | variable (k : Type u) [Field k] [Fintype k] |
| 38 | (X : Over (Spec (CommRingCat.of k))) [GrpObj X] [IsCommMonObj X] |
| 39 | |
| 40 | theorem formallyUnramified (n : ℕ) (hn : (n : k) ≠ 0) : |
| 41 | FormallyUnramified ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd X) + AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.algebraicFrobenius k X).toMul.hom.hom.left := by |
| 42 | simpa only [neg_one_mul, sub_neg_eq_add] using |
| 43 | Frobenius.FactorShiftUnramified.formallyUnramified k X (-1) n hn |
| 44 | |
| 45 | variable [IsProper X.hom] [Smooth X.hom] [GeometricallyIntegral X.hom] |
| 46 | |
| 47 | theorem finite_etale (n : ℕ) (hn : (n : k) ≠ 0) : |
| 48 | IsFinite ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd X) + AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.algebraicFrobenius k X).toMul.hom.hom.left ∧ |
| 49 | Surjective ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd X) + AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.algebraicFrobenius k X).toMul.hom.hom.left ∧ |
| 50 | Etale ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd X) + AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.algebraicFrobenius k X).toMul.hom.hom.left := by |
| 51 | let f := ((n : AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.AlgebraicEnd X) + AlgebraicGeometry.FormalGeometry.Completion.Endomorphisms.Construction.algebraicFrobenius k X).toMul.hom.hom |
| 52 | let : FormallyUnramified f.left := formallyUnramified k X n hn |
| 53 | let : IsProper (f.left ≫ X.hom) := by rw [Over.w]; infer_instance |
| 54 | let : IsProper f.left := IsProper.of_comp f.left X.hom |
| 55 | let : IsFinite f.left := AlgebraicGeometry.AbelianScheme.TorsionQuotient.Quasi.TorsionGeometry.finite_of_proper_formallyUnramified f.left |
| 56 | let : IsIntegral X.left := GeometricallyIntegral.isIntegral_of_subsingleton X.hom |
| 57 | let : IsLocallyNoetherian X.left := LocallyOfFiniteType.isLocallyNoetherian X.hom |
| 58 | let : CompactSpace X.left := QuasiCompact.compactSpace_of_compactSpace X.hom |
| 59 | let : IsNoetherian X.left := ⟨⟩ |
| 60 | let : Surjective f.left := ArithmeticGeometry.OrdinaryLocus.Openness.FiniteEndomorphism.Construction.surjective_finite_endomorphism_of_isIntegral f.left |
| 61 | let : Flat f.left := groupHom_flat f |
| 62 | let : LocallyOfFinitePresentation (f.left ≫ X.hom) := by rw [Over.w]; infer_instance |
| 63 | let : LocallyOfFinitePresentation f.left := AlgebraicGeometry.AbelianScheme.TorsionQuotient.FinitePresentationOf.FinitePresentation.of_comp f.left X.hom |
| 64 | exact ⟨inferInstance, inferInstance, Etale.of_formallyUnramified_of_flat f.left⟩ |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Reference.FrobeniusShiftEtale |