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.HilbertScheme.Presentations.Relative.TargetBaseChangeIsomorphism |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LocalClosedFiberIsomorphism |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Local.TargetFlatProjection |
| 4 | import Mathlib.AlgebraicGeometry.Noetherian |
| 5 | import Mathlib.AlgebraicGeometry.ResidueField |
| 6 | |
| 7 | /-! # Fiber Isomorphism At Target -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.FiberIsomorphismAtTarget |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! If the source is flat over the parameter base, isomorphism of a |
| 14 | finite morphism on a coefficient fiber gives isomorphism over each target local spectrum in that fiber. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | |
| 18 | universe u |
| 19 | variable {X Y B : Scheme.{u}} [IsLocallyNoetherian Y] |
| 20 | variable (f : X ⟶ Y) (q : Y ⟶ B) [IsFinite f] [Flat (f ≫ q)] |
| 21 | |
| 22 | theorem finite_isIso_at_target_of_fiber (y : Y) |
| 23 | (h : IsIso (Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange f q (B.fromSpecResidueField (q y)))) : |
| 24 | IsIso (pullback.fst (Y.fromSpecStalk y) f) := by |
| 25 | let R : Type u := B.presheaf.stalk (q y) |
| 26 | let A : Type u := Y.presheaf.stalk y |
| 27 | let hR : IsLocalRing R := inferInstanceAs (IsLocalRing (B.presheaf.stalk (q y))) |
| 28 | let hA : IsLocalRing A := inferInstanceAs (IsLocalRing (Y.presheaf.stalk y)) |
| 29 | let hN : IsNoetherianRing A := inferInstanceAs (IsNoetherianRing (Y.presheaf.stalk y)) |
| 30 | let : Algebra R A := (q.stalkMap y).hom.toAlgebra |
| 31 | let : IsLocalHom (algebraMap R A) := inferInstanceAs (IsLocalHom (q.stalkMap y).hom) |
| 32 | let p := pullback.fst (Y.fromSpecStalk y) f |
| 33 | let q' : Spec (.of A) ⟶ Spec (.of R) := Spec.map (CommRingCat.ofHom (algebraMap R A)) |
| 34 | let b := B.fromSpecStalk (q y) |
| 35 | let c := Spec.map (CommRingCat.ofHom (algebraMap R (IsLocalRing.ResidueField R))) |
| 36 | let : Flat (p ≫ q') := Local.TargetFlatProjection.localTargetOverBaseStalkMap_flat f q y |
| 37 | apply @LocalClosedFiberIsomorphism.finiteLocal_isIso_of_closedFiber R A _ hR _ hA hN _ _ _ p _ _ |
| 38 | have hab : Y.fromSpecStalk y ≫ q = q' ≫ b := (Scheme.SpecMap_stalkMap_fromSpecStalk q).symm |
| 39 | have hc : IsIso (Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange f q (c ≫ b)) := h |
| 40 | exact Relative.TargetBaseChangeIsomorphism.relativeMorphismBaseChange_target_square f q (Y.fromSpecStalk y) q' b hab c hc |
| 41 | |
| 42 | end |
| 43 | |
| 44 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.FiberIsomorphismAtTarget |