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.GeometricFiniteness |
| 2 | import OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.MultiplicationFlat |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.FlatRank |
| 4 | |
| 5 | /-! # Geometric Isomorphisms -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.GeometricIsomorphisms.Construction.Schemes |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # CartierDuality: geometric fibers detect isomorphisms of finite locally free schemes |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | /-- A morphism between finite locally free schemes is an isomorphism |
| 20 | if all its algebraically closed base changes are isomorphisms. -/ |
| 21 | theorem isIso_of_algClosed_baseChanges {S : Scheme.{u}} {X Y : Over S} |
| 22 | [IsFinite X.hom] [Flat X.hom] [LocallyOfFinitePresentation X.hom] |
| 23 | [IsFinite Y.hom] [Flat Y.hom] [LocallyOfFinitePresentation Y.hom] |
| 24 | (f : X ⟶ Y) |
| 25 | (h : ∀ (K : Type u) [Field K] [IsAlgClosed K] (a : Spec (.of K) ⟶ S), |
| 26 | IsIso ((Over.pullback a).map f).left) : IsIso f.left := by |
| 27 | have : IsFinite (f.left ≫ Y.hom) := by rw [f.w]; infer_instance |
| 28 | have : IsFinite f.left := IsFinite.of_comp f.left Y.hom |
| 29 | have hfp : LocallyOfFinitePresentation (f.left ≫ Y.hom) := by rw [f.w]; infer_instance |
| 30 | have : LocallyOfFinitePresentation f.left := |
| 31 | Picard.Homomorphisms.FinitePresentation.Construction.locallyOfFinitePresentation_of_comp_of_finiteType hfp inferInstance |
| 32 | have : Flat f.left := ArithmeticGeometry.OrdinaryLocus.Openness.FiberwiseFlatness.Construction.flat_finite_of_flat_geometric_baseChanges f (by |
| 33 | intro K _ _ a |
| 34 | have := h K a |
| 35 | infer_instance) |
| 36 | apply (Scheme.Hom.isIso_iff_finrank_eq f.left).mpr |
| 37 | funext y |
| 38 | let K := AlgebraicClosure (Y.left.residueField y) |
| 39 | let v : Spec (.of K) ⟶ Y.left := |
| 40 | Spec.map (CommRingCat.ofHom (algebraMap (Y.left.residueField y) K)) ≫ |
| 41 | Y.left.fromSpecResidueField y |
| 42 | let a := v ≫ Y.hom |
| 43 | let j : Spec (.of K) ⟶ pullback Y.hom a := pullback.lift v (𝟙 _) (by simp [a]) |
| 44 | let y' := j (IsLocalRing.closedPoint K) |
| 45 | have hy : pullback.fst Y.hom a y' = y := by |
| 46 | have hj : j ≫ pullback.fst Y.hom a = v := pullback.lift_fst _ _ _ |
| 47 | have hv : v (IsLocalRing.closedPoint K) = y := Y.left.fromSpecResidueField_apply y _ |
| 48 | exact (congrArg (fun g : Spec (.of K) ⟶ Y.left => g (IsLocalRing.closedPoint K)) hj).trans hv |
| 49 | let fp := ((Over.pullback a).map f).left |
| 50 | have : IsIso fp := h K a |
| 51 | have hr : fp.finrank y' = f.left.finrank (pullback.fst Y.hom a y') := |
| 52 | Scheme.Hom.finrank_of_isPullback _ _ _ _ (LocalIsomorphismsIs.Construction.LocalIsomorphisms.pullbackMap_isPullback a f) y' |
| 53 | rw [hy] at hr |
| 54 | exact hr.symm.trans (congrFun (Scheme.Hom.finrank_eq_one_of_isIso fp) y') |
| 55 | |
| 56 | end |
| 57 | |
| 58 | end OAI.AlgebraicGeometry.AbelianScheme.CartierDuality.GeometricIsomorphisms.Construction.Schemes |