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.AbelianModuli.HilbertConstruction.Spec.MapSmoothFiberCriterion |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Smooth.FiberCartesianComparison |
| 3 | |
| 4 | /-! # Scheme Smooth Fiber Criterion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.SchemeSmoothFiberCriterion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The pointwise smooth-fiber criterion holds for arbitrary affine source and target schemes. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | theorem affineScheme_stalk_formallySmooth_of_smooth_fiber |
| 17 | {X S : Scheme.{u}} [IsAffine X] [IsAffine S] (f : X ⟶ S) |
| 18 | [Flat f] [LocallyOfFinitePresentation f] (x : X) [Smooth (f.fiberToSpecResidueField (f x))] : |
| 19 | (f.stalkMap x).hom.FormallySmooth := by |
| 20 | let g : Spec Γ(X, ⊤) ⟶ Spec Γ(S, ⊤) := X.isoSpec.inv ≫ f ≫ S.isoSpec.hom |
| 21 | have : Flat g := inferInstance |
| 22 | have : LocallyOfFinitePresentation g := inferInstance |
| 23 | have H : IsPullback X.isoSpec.hom f g S.isoSpec.hom := |
| 24 | IsPullback.of_horiz_isIso ⟨by |
| 25 | dsimp only [g] |
| 26 | simp only [← Category.assoc, Iso.hom_inv_id, Category.id_comp]⟩ |
| 27 | have hfib : Smooth (g.fiberToSpecResidueField (S.isoSpec.hom (f x))) := |
| 28 | (HilbertConstruction.Smooth.FiberCartesianComparison.smooth_fiber_iff_of_isPullback _ f g _ H (f x)).mp inferInstance |
| 29 | have he : g (X.isoSpec.hom x) = S.isoSpec.hom (f x) := by |
| 30 | simp [g] |
| 31 | have hlocal : (g.stalkMap (X.isoSpec.hom x)).hom.FormallySmooth := by |
| 32 | obtain ⟨φ, hφ⟩ := Spec.map_surjective g |
| 33 | have : Flat (Spec.map φ) := hφ.symm ▸ (inferInstanceAs (Flat g)) |
| 34 | have : LocallyOfFinitePresentation (Spec.map φ) := hφ.symm ▸ (inferInstanceAs (LocallyOfFinitePresentation g)) |
| 35 | have : Smooth ((Spec.map φ).fiberToSpecResidueField (Spec.map φ (X.isoSpec.hom x))) := by |
| 36 | rw [hφ, he] |
| 37 | exact hfib |
| 38 | exact (congrArg (fun a : Spec Γ(X, ⊤) ⟶ Spec Γ(S, ⊤) => |
| 39 | (a.stalkMap (X.isoSpec.hom x)).hom.FormallySmooth) hφ).mp |
| 40 | (HilbertConstruction.Spec.MapSmoothFiberCriterion.specMap_stalk_formallySmooth_of_smooth_fiber φ (X.isoSpec.hom x)) |
| 41 | change ((X.isoSpec.inv ≫ f ≫ S.isoSpec.hom).stalkMap (X.isoSpec.hom x)).hom.FormallySmooth at hlocal |
| 42 | rw [Scheme.Hom.stalkMap_comp, Scheme.Hom.stalkMap_comp] at hlocal |
| 43 | let x' := X.isoSpec.inv (X.isoSpec.hom x) |
| 44 | let A₀ := (Spec Γ(S, ⊤)).presheaf.stalk (S.isoSpec.hom (f x')) |
| 45 | let A₁ := S.presheaf.stalk (f x') |
| 46 | let A₂ := X.presheaf.stalk x' |
| 47 | let A₃ := (Spec Γ(X, ⊤)).presheaf.stalk (X.isoSpec.hom x) |
| 48 | let a : A₀ ⟶ A₁ := S.isoSpec.hom.stalkMap (f x') |
| 49 | let b : A₁ ⟶ A₂ := f.stalkMap x' |
| 50 | let c : A₂ ⟶ A₃ := X.isoSpec.inv.stalkMap (X.isoSpec.hom x) |
| 51 | have : IsIso a := inferInstanceAs (IsIso (S.isoSpec.hom.stalkMap (f x'))) |
| 52 | have : IsIso c := inferInstanceAs (IsIso (X.isoSpec.inv.stalkMap (X.isoSpec.hom x))) |
| 53 | change ((a ≫ b) ≫ c).hom.FormallySmooth at hlocal |
| 54 | rw [CommRingCat.hom_comp, |
| 55 | RingHom.FormallySmooth.respectsIso.cancel_right_isIso, CommRingCat.hom_comp, |
| 56 | RingHom.FormallySmooth.respectsIso.cancel_left_isIso] at hlocal |
| 57 | have hx : X.isoSpec.inv (X.isoSpec.hom x) = x := by simp |
| 58 | exact (RingHom.FormallySmooth.respectsIso.arrow_mk_iso_iff (f.arrowStalkMapIsoOfEq hx)).mp hlocal |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.SchemeSmoothFiberCriterion |