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.FormalGeometry.Completion.Finite.Normalization |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.SmoothStalkDomains |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.UnramifiedNormalization |
| 4 | |
| 5 | /-! # Smooth Base Finite Normalization -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.SmoothBaseFiniteNormalization.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: finite normalization over the actual smooth integral base |
| 13 | |
| 14 | The affine trace bound applies on every nonempty affine chart. Relative |
| 15 | normalization commutes with these open base changes, so the finite maps |
| 16 | descend to the actual normalization factor. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry |
| 20 | |
| 21 | set_option backward.defeqAttrib.useBackward true |
| 22 | set_option backward.isDefEq.respectTransparency false |
| 23 | set_option backward.isDefEq.respectTransparency.types false |
| 24 | |
| 25 | universe u |
| 26 | |
| 27 | /-- Finiteness of the actual integral factor over a smooth integral field scheme. -/ |
| 28 | theorem smooth_base_proper_fromNormalization_finite (K : Type u) [Field K] |
| 29 | {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y] |
| 30 | (pY : Y ⟶ Spec (CommRingCat.of K)) [Smooth pY] |
| 31 | (f : X ⟶ Y) [IsProper f] [Surjective f] [FormallyUnramified f.fromNormalization] : |
| 32 | IsFinite f.fromNormalization := by |
| 33 | rw [IsZariskiLocalAtTarget.iff_of_openCover (P := @IsFinite) Y.affineCover] |
| 34 | intro i |
| 35 | let R := Y.affineOpenCover.X i |
| 36 | let g : Spec R ⟶ Y := Y.affineOpenCover.f i |
| 37 | change IsFinite (pullback.snd f.fromNormalization g) |
| 38 | rcases isEmpty_or_nonempty (Spec R) with hZ | hZ |
| 39 | · have := hZ |
| 40 | infer_instance |
| 41 | have : IsIntegral (Spec R) := isIntegral_of_isOpenImmersion g |
| 42 | have : IsDomain R := (affine_isIntegral_iff R).mp inferInstance |
| 43 | have : IsLocallyNoetherian (Spec R) := LocallyOfFiniteType.isLocallyNoetherian (g ≫ pY) |
| 44 | have : IsNoetherianRing R := (isLocallyNoetherian_Spec).mp inferInstance |
| 45 | have : IsIntegrallyClosed Γ(Spec R, ⊤) := |
| 46 | SmoothStalkDomains.Construction.smooth_field_affine_sections_isIntegrallyClosed K (g ≫ pY) ⊤ (isAffineOpen_top _) |
| 47 | have : IsIntegrallyClosed R := IsIntegrallyClosed.of_equiv |
| 48 | (Scheme.ΓSpecIso R).commRingCatIsoToRingEquiv |
| 49 | let f' := pullback.snd f g |
| 50 | have : Surjective f' := inferInstance |
| 51 | have : Nonempty (pullback f g : Scheme.{u}) := |
| 52 | ⟨(f'.surjective (Nonempty.some hZ)).choose⟩ |
| 53 | have : IsIntegral (pullback f g) := isIntegral_of_isOpenImmersion (pullback.fst f g) |
| 54 | have : FormallyUnramified f'.fromNormalization := by |
| 55 | have H : FormallyUnramified |
| 56 | (f.normalizationPullback g ≫ pullback.snd f.fromNormalization g) := |
| 57 | MorphismProperty.comp_mem @FormallyUnramified _ _ inferInstance |
| 58 | (MorphismProperty.pullback_snd _ _ inferInstance) |
| 59 | simpa only [Scheme.Hom.normalizationPullback_snd] using H |
| 60 | have : IsFinite f'.fromNormalization := Finite.Normalization.Construction.normal_base_proper_fromNormalization_finite R f' |
| 61 | have H : IsFinite (f.normalizationPullback g ≫ pullback.snd f.fromNormalization g) := by |
| 62 | simpa only [Scheme.Hom.normalizationPullback_snd] using this |
| 63 | exact (MorphismProperty.cancel_left_of_respectsIso @IsFinite |
| 64 | (f.normalizationPullback g) (pullback.snd f.fromNormalization g)).mp H |
| 65 | |
| 66 | /-- The finite normalization factor of the actual proper smooth family, with all hypotheses |
| 67 | on the original smooth proper field schemes. -/ |
| 68 | theorem proper_smooth_fromNormalization_finite (K : Type u) [Field K] |
| 69 | {X Y : Scheme.{u}} [IsIntegral X] [IsIntegral Y] |
| 70 | (pX : X ⟶ Spec (CommRingCat.of K)) [IsProper pX] [Smooth pX] |
| 71 | (pY : Y ⟶ Spec (CommRingCat.of K)) [Smooth pY] |
| 72 | (f : X ⟶ Y) [IsProper f] [Smooth f] [Surjective f] : IsFinite f.fromNormalization := by |
| 73 | have := UnramifiedNormalization.Construction.proper_smooth_fromNormalization_formallyUnramified K pX f |
| 74 | exact smooth_base_proper_fromNormalization_finite K pY f |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.SmoothBaseFiniteNormalization.Construction |