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.TorsionQuotient.LocalLifts |
| 2 | |
| 3 | /-! # Stalk Lifts -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.StalkLifts |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! On an affine scheme, actual infinitesimal stalk lifts are exactly |
| 10 | the infinitesimal lifts of the global coordinate ring. -/ |
| 11 | |
| 12 | set_option backward.isDefEq.respectTransparency false |
| 13 | set_option backward.isDefEq.respectTransparency.types false |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | namespace AffineStalkLifts |
| 17 | |
| 18 | variable {X : Scheme.{0}} [IsAffine X] {C : CommRingCat.{0}} [IsLocalRing C] |
| 19 | (J : Ideal C) (hJ : J ^ 2 = ⊥) {x : X} (e : X.presheaf.stalk x ⟶ C) [IsLocalHom e.hom] |
| 20 | |
| 21 | def globalMap := e.hom.comp (X.presheaf.Γgerm x).hom |
| 22 | |
| 23 | def toGlobal : AbelianScheme.TorsionQuotient.LocalLifts.LocalSchemeLifts.Lifts J hJ e →ₗ[C] |
| 24 | AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift J hJ (globalMap e) := |
| 25 | AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift.comap (X.presheaf.Γgerm x).hom |
| 26 | |
| 27 | def point (v : AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift J hJ (globalMap e)) : Spec C ⟶ X := |
| 28 | Spec.map (CommRingCat.ofHom v.hom) ≫ X.isoSpec.inv |
| 29 | |
| 30 | omit [IsLocalRing C] [IsLocalHom e.hom] in |
| 31 | theorem point_toGlobal (v : AbelianScheme.TorsionQuotient.LocalLifts.LocalSchemeLifts.Lifts J hJ e) : |
| 32 | point J hJ e (toGlobal J hJ e v) = AbelianScheme.TorsionQuotient.LocalLifts.LocalSchemeLifts.toPoint J hJ e v := by |
| 33 | calc |
| 34 | point J hJ e (toGlobal J hJ e v) = |
| 35 | (Spec.map (CommRingCat.ofHom v.hom) ≫ Spec.map (X.presheaf.Γgerm x)) ≫ X.isoSpec.inv := |
| 36 | congrArg (fun q => q ≫ X.isoSpec.inv) |
| 37 | (Spec.map_comp (X.presheaf.Γgerm x) (CommRingCat.ofHom v.hom)) |
| 38 | _ = (Spec.map (CommRingCat.ofHom v.hom) ≫ |
| 39 | (X.fromSpecStalk x ≫ X.toSpecΓ)) ≫ X.isoSpec.inv := |
| 40 | congrArg (fun q => (Spec.map (CommRingCat.ofHom v.hom) ≫ q) ≫ X.isoSpec.inv) |
| 41 | (Scheme.fromSpecStalk_toSpecΓ X x).symm |
| 42 | _ = AbelianScheme.TorsionQuotient.LocalLifts.LocalSchemeLifts.toPoint J hJ e v := by |
| 43 | rw [Category.assoc, Category.assoc, Scheme.toSpecΓ_isoSpec_inv, Category.comp_id] |
| 44 | rfl |
| 45 | |
| 46 | omit [IsLocalRing C] [IsLocalHom e.hom] in |
| 47 | theorem point_injective : Function.Injective (point J hJ e) := by |
| 48 | intro v w h |
| 49 | apply AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift.ext |
| 50 | have h' := (cancel_mono X.isoSpec.inv).mp h |
| 51 | exact congrArg CommRingCat.Hom.hom (Spec.map_injective h') |
| 52 | |
| 53 | omit [IsLocalRing C] [IsLocalHom e.hom] in |
| 54 | theorem point_reduction (v : AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift J hJ (globalMap e)) : |
| 55 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk J)) ≫ point J hJ e v = |
| 56 | Spec.map (CommRingCat.ofHom (Ideal.Quotient.mk J)) ≫ AbelianScheme.TorsionQuotient.LocalLifts.LocalSchemeLifts.ofGerm X x e := by |
| 57 | have heq : CommRingCat.ofHom v.hom ≫ CommRingCat.ofHom (Ideal.Quotient.mk J) = |
| 58 | CommRingCat.ofHom (globalMap e) ≫ CommRingCat.ofHom (Ideal.Quotient.mk J) := by |
| 59 | apply CommRingCat.hom_ext |
| 60 | apply RingHom.ext |
| 61 | intro b |
| 62 | exact Ideal.Quotient.eq.mpr (v.congruent b) |
| 63 | have hz := point_toGlobal J hJ e 0 |
| 64 | change point J hJ e 0 = AbelianScheme.TorsionQuotient.LocalLifts.LocalSchemeLifts.ofGerm X x e at hz |
| 65 | rw [← hz] |
| 66 | change _ ≫ (Spec.map (CommRingCat.ofHom v.hom) ≫ X.isoSpec.inv) = |
| 67 | _ ≫ (Spec.map (CommRingCat.ofHom (globalMap e)) ≫ X.isoSpec.inv) |
| 68 | rw [← Spec.map_comp_assoc, ← Spec.map_comp_assoc, heq] |
| 69 | |
| 70 | theorem toGlobal_bijective : Function.Bijective (toGlobal J hJ e) := by |
| 71 | constructor |
| 72 | · intro v w h |
| 73 | apply AbelianScheme.TorsionQuotient.LocalLifts.LocalSchemeLifts.toPoint_injective J hJ e |
| 74 | exact (point_toGlobal J hJ e v).symm.trans |
| 75 | ((congrArg (point J hJ e) h).trans (point_toGlobal J hJ e w)) |
| 76 | · intro w |
| 77 | obtain ⟨v, hv⟩ := AbelianScheme.TorsionQuotient.LocalLifts.LocalSchemeLifts.exists_stalkLift J hJ e (point J hJ e w) |
| 78 | (point_reduction J hJ e w) |
| 79 | exact ⟨v, point_injective J hJ e ((point_toGlobal J hJ e v).trans hv)⟩ |
| 80 | |
| 81 | def equiv : AbelianScheme.TorsionQuotient.LocalLifts.LocalSchemeLifts.Lifts J hJ e ≃ₗ[C] AbelianScheme.TorsionQuotient.SquareZero.SquareZeroLifts.Lift J hJ (globalMap e) := |
| 82 | LinearEquiv.ofBijective (toGlobal J hJ e) (toGlobal_bijective J hJ e) |
| 83 | |
| 84 | end AffineStalkLifts |
| 85 | |
| 86 | end |
| 87 | |
| 88 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Affine.StalkLifts |