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.Affine.StalkCoordinateLocalization |
| 2 | |
| 3 | /-! # Stalk Localization -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.StalkLocalization |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The stalk of the ambient scheme at a point of an affine open is a localization of that open's coordinate ring. The actual affine coordinate map to the open composes to the ambient stalk morphism. -/ |
| 10 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 11 | universe u |
| 12 | |
| 13 | set_option backward.isDefEq.respectTransparency false |
| 14 | set_option backward.isDefEq.respectTransparency.types false |
| 15 | variable {T X : Scheme.{u}} [IsAffine T] (t : T ⟶ X) [IsOpenImmersion t] (x : T) |
| 16 | |
| 17 | local instance : (T.isoSpec.hom x).asIdeal.IsPrime := |
| 18 | (show PrimeSpectrum Γ(T, ⊤) from T.isoSpec.hom x).isPrime |
| 19 | |
| 20 | @[instance_reducible] |
| 21 | def affineOpenTargetStalkAlgebra : Algebra Γ(T, ⊤) (X.presheaf.stalk (t x)) := |
| 22 | ((asIso (t.stalkMap x)).inv.hom.comp (T.presheaf.germ ⊤ x trivial).hom).toAlgebra |
| 23 | |
| 24 | def affineOpenStalkAlgEquiv : |
| 25 | let : Algebra Γ(T, ⊤) (T.presheaf.stalk x) := Affine.StalkCoordinateLocalization.affineStalkCoordinateAlgebra T x; |
| 26 | let : Algebra Γ(T, ⊤) (X.presheaf.stalk (t x)) := affineOpenTargetStalkAlgebra t x; |
| 27 | T.presheaf.stalk x ≃ₐ[Γ(T, ⊤)] X.presheaf.stalk (t x) := by |
| 28 | letI : Algebra Γ(T, ⊤) (T.presheaf.stalk x) := Affine.StalkCoordinateLocalization.affineStalkCoordinateAlgebra T x |
| 29 | letI : Algebra Γ(T, ⊤) (X.presheaf.stalk (t x)) := affineOpenTargetStalkAlgebra t x |
| 30 | exact { (asIso (t.stalkMap x)).symm.commRingCatIsoToRingEquiv with commutes' := fun _ => rfl } |
| 31 | |
| 32 | theorem affineOpenTargetStalk_isLocalization : |
| 33 | let : Algebra Γ(T, ⊤) (X.presheaf.stalk (t x)) := affineOpenTargetStalkAlgebra t x; |
| 34 | IsLocalization (T.isoSpec.hom x).asIdeal.primeCompl (X.presheaf.stalk (t x)) := by |
| 35 | let : Algebra Γ(T, ⊤) (T.presheaf.stalk x) := Affine.StalkCoordinateLocalization.affineStalkCoordinateAlgebra T x |
| 36 | let : Algebra Γ(T, ⊤) (X.presheaf.stalk (t x)) := affineOpenTargetStalkAlgebra t x |
| 37 | let : IsLocalization (T.isoSpec.hom x).asIdeal.primeCompl (T.presheaf.stalk x) := |
| 38 | Affine.StalkCoordinateLocalization.affineStalkCoordinate_isLocalization T x |
| 39 | exact IsLocalization.isLocalization_of_algEquiv (T.isoSpec.hom x).asIdeal.primeCompl |
| 40 | (affineOpenStalkAlgEquiv t x) |
| 41 | |
| 42 | def affineOpenTargetStalkLocalizationEquiv : |
| 43 | let : Algebra Γ(T, ⊤) (X.presheaf.stalk (t x)) := affineOpenTargetStalkAlgebra t x; |
| 44 | Localization.AtPrime (T.isoSpec.hom x).asIdeal ≃ₐ[Γ(T, ⊤)] X.presheaf.stalk (t x) := by |
| 45 | letI : Algebra Γ(T, ⊤) (T.presheaf.stalk x) := Affine.StalkCoordinateLocalization.affineStalkCoordinateAlgebra T x |
| 46 | letI : Algebra Γ(T, ⊤) (X.presheaf.stalk (t x)) := affineOpenTargetStalkAlgebra t x |
| 47 | exact (Affine.StalkCoordinateLocalization.affineStalkCoordinateLocalizationEquiv T x).trans (affineOpenStalkAlgEquiv t x) |
| 48 | |
| 49 | theorem affineOpenTargetStalk_coordinateMap_comp : |
| 50 | let : Algebra Γ(T, ⊤) (X.presheaf.stalk (t x)) := affineOpenTargetStalkAlgebra t x; |
| 51 | Affine.QuotientCoefficientMap.affineCoordinateMap (algebraMap Γ(T, ⊤) (X.presheaf.stalk (t x))) ≫ t = X.fromSpecStalk (t x) := by |
| 52 | let : Algebra Γ(T, ⊤) (X.presheaf.stalk (t x)) := affineOpenTargetStalkAlgebra t x |
| 53 | let e := asIso (t.stalkMap x) |
| 54 | have hc : Affine.QuotientCoefficientMap.affineCoordinateMap (algebraMap Γ(T, ⊤) (X.presheaf.stalk (t x))) = |
| 55 | Spec.map e.inv ≫ Affine.QuotientCoefficientMap.affineCoordinateMap (T.presheaf.germ ⊤ x trivial).hom := by |
| 56 | change Spec.map (T.presheaf.germ ⊤ x trivial ≫ e.inv) ≫ T.isoSpec.inv = |
| 57 | Spec.map e.inv ≫ (Spec.map (T.presheaf.germ ⊤ x trivial) ≫ T.isoSpec.inv) |
| 58 | rw [Spec.map_comp, Category.assoc] |
| 59 | dsimp only |
| 60 | rw [hc, Affine.StalkCoordinateLocalization.affineCoordinateMap_germ_eq_fromSpecStalk T x, Category.assoc, |
| 61 | ← Scheme.SpecMap_stalkMap_fromSpecStalk t, ← Category.assoc, ← Spec.map_comp] |
| 62 | change Spec.map (e.hom ≫ e.inv) ≫ X.fromSpecStalk (t x) = X.fromSpecStalk (t x) |
| 63 | rw [e.hom_inv_id, Spec.map_id, Category.id_comp] |
| 64 | |
| 65 | end |
| 66 | |
| 67 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.AffineOpen.StalkLocalization |