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.Affine.LocalClosedFiberIsomorphism |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Relative.SourceIsomorphismTransport |
| 3 | import Mathlib.AlgebraicGeometry.Morphisms.Finite |
| 4 | import Mathlib.AlgebraicGeometry.Morphisms.Flat |
| 5 | |
| 6 | /-! # Local Closed Fiber Isomorphism -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LocalClosedFiberIsomorphism |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The closed coefficient fiber detects isomorphism of an arbitrary |
| 13 | finite morphism to a noetherian local affine target when its source is coefficient-flat. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | variable {R A : Type u} [CommRing R] [IsLocalRing R] |
| 19 | variable [CommRing A] [IsLocalRing A] [IsNoetherianRing A] |
| 20 | variable [Algebra R A] [IsLocalHom (algebraMap R A)] |
| 21 | variable {X : Scheme.{u}} (f : X ⟶ Spec (.of A)) [IsFinite f] |
| 22 | variable [Flat (f ≫ Spec.map (CommRingCat.ofHom (algebraMap R A)))] |
| 23 | |
| 24 | theorem finiteLocal_isIso_of_closedFiber |
| 25 | (h : IsIso (Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange f |
| 26 | (Spec.map (CommRingCat.ofHom (algebraMap R A))) |
| 27 | (Spec.map (CommRingCat.ofHom (algebraMap R (IsLocalRing.ResidueField R)))))) : IsIso f := by |
| 28 | let : IsAffine X := isAffine_of_isAffineHom f |
| 29 | let C : Type u := Γ(X, ⊤) |
| 30 | let e : Spec (.of C) ≅ X := X.isoSpec.symm |
| 31 | let φ : A →+* C := (Spec.preimage (e.hom ≫ f)).hom |
| 32 | let : Algebra A C := φ.toAlgebra |
| 33 | let : Algebra R C := (φ.comp (algebraMap R A)).toAlgebra |
| 34 | let : IsScalarTower R A C := IsScalarTower.of_algebraMap_eq' rfl |
| 35 | have he : Spec.map (CommRingCat.ofHom (algebraMap A C)) = e.hom ≫ f := |
| 36 | Spec.map_preimage (e.hom ≫ f) |
| 37 | have hfin : IsFinite (Spec.map (CommRingCat.ofHom (algebraMap A C))) := by |
| 38 | rw [he] |
| 39 | infer_instance |
| 40 | let : Module.Finite A C := (IsFinite.SpecMap_iff _).mp hfin |
| 41 | have heR : Spec.map (CommRingCat.ofHom (algebraMap R C)) = |
| 42 | e.hom ≫ f ≫ Spec.map (CommRingCat.ofHom (algebraMap R A)) := by |
| 43 | have hc : CommRingCat.ofHom (algebraMap R C) = |
| 44 | CommRingCat.ofHom (algebraMap R A) ≫ CommRingCat.ofHom (algebraMap A C) := rfl |
| 45 | rw [hc, Spec.map_comp, he, Category.assoc] |
| 46 | have hfR : Flat (Spec.map (CommRingCat.ofHom (algebraMap R C))) := by |
| 47 | rw [heR] |
| 48 | infer_instance |
| 49 | let : Module.Flat R C := Flat.SpecMap_iff.mp hfR |
| 50 | have hC : IsIso (Relative.MorphismIsomorphismLocus.relativeMorphismBaseChange (Spec.map (CommRingCat.ofHom (algebraMap A C))) |
| 51 | (Spec.map (CommRingCat.ofHom (algebraMap R A))) |
| 52 | (Spec.map (CommRingCat.ofHom (algebraMap R (IsLocalRing.ResidueField R))))) := by |
| 53 | rw [he, Relative.SourceIsomorphismTransport.relativeMorphismBaseChange_sourceIso_iff] |
| 54 | exact h |
| 55 | have hi := Affine.LocalClosedFiberIsomorphism.affineLocal_isIso_of_closedFiber (R := R) (A := A) (C := C) hC |
| 56 | rw [he, isIso_comp_left_iff] at hi |
| 57 | exact hi |
| 58 | |
| 59 | end |
| 60 | |
| 61 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Finite.LocalClosedFiberIsomorphism |