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.PELModuli.IntegralModel.PEL.CommonFrameProjection |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.IntegralPEL.PELFrameGeometry |
| 3 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Finite.EtaleCoverBaseChange |
| 4 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.QuotientBaseChangeAffine |
| 5 | |
| 6 | /-! # Common Frame Affine Transfer -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.PEL.CommonFrameAffineTransfer |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A fine reference inherits affine neighborhoods from another |
| 13 | fine reference through their actual common level cover. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | open OAI.AlgebraicGeometry.PELModuli.IntegralModel.IntegralPEL.PELFrameGeometry.IntegralPELFrame |
| 18 | variable {E K K' : Type} [Field E] [NumberField E] [Algebra ℚ E] [NumberField.IsCMField E] |
| 19 | [Field K] [CharZero K] [Countable K] [Field K'] {s L N : ℕ} [NeZero L] [NeZero N] |
| 20 | {P : AbelianModuli.ReferenceFamily.Datum.RankThreePELDatum E s} {iotaO : NumberField.RingOfIntegers E →+* K} |
| 21 | {X Y : Over (Spec (.of K))} [IsReduced X.left] [IsReduced Y.left] |
| 22 | [IsNoetherian X.left] [IsNoetherian Y.left] |
| 23 | [LocallyOfFiniteType X.hom] [LocallyOfFiniteType Y.hom] |
| 24 | |
| 25 | theorem common_frame_affine_transfer |
| 26 | (A : Has.IntegralPELObject P K iotaO N X) (B : Has.IntegralPELObject P K iotaO L Y) |
| 27 | (hL : ∀ x : X.left, IsUnit (L : X.left.presheaf.stalk x)) |
| 28 | (hN : ∀ y : Y.left, IsUnit (N : Y.left.presheaf.stalk y)) |
| 29 | (hN3 : 3 ≤ N) (hL3 : 3 ≤ L) (hPresentations : Presentations.Hilbert.EndomorphismEquationsInput.{0}) |
| 30 | (hA : ∀ (T : Over (Spec (.of K))) [IsReduced T.left] |
| 31 | (C : Has.IntegralPELObject P K iotaO N T), |
| 32 | ∃! f : T ⟶ X, Nonempty (Iso.PolarizedActionIso (A.pullback f).data C.data)) |
| 33 | (hB : ∀ (T : Over (Spec (.of K))) [IsReduced T.left] |
| 34 | (C : Has.IntegralPELObject P K iotaO L T), |
| 35 | ∃! f : T ⟶ Y, Nonempty (Iso.PolarizedActionIso (B.pullback f).data C.data)) |
| 36 | (φ : K →+* K') |
| 37 | (hA' : ∀ (T : Over (Spec (.of K'))) [IsReduced T.left] |
| 38 | (C : Has.IntegralPELObject P K' (φ.comp iotaO) N T), |
| 39 | ∃! f : T ⟶ (Over.pullback (Spec.map (CommRingCat.ofHom φ))).obj X, |
| 40 | Nonempty (Iso.PolarizedActionIso ((A.baseChange φ).pullback f).data C.data)) |
| 41 | (hred : IsReduced ((Over.pullback (Spec.map (CommRingCat.ofHom φ))).obj Y).left) |
| 42 | (hsep : ((Over.pullback (Spec.map (CommRingCat.ofHom φ))).obj Y).left.IsSeparated) |
| 43 | (hAF : ∀ F : Set ((Over.pullback (Spec.map (CommRingCat.ofHom φ))).obj Y).left, |
| 44 | F.Finite → ∃ V : ((Over.pullback (Spec.map (CommRingCat.ofHom φ))).obj Y).left.Opens, |
| 45 | IsAffineOpen V ∧ F ⊆ V) : |
| 46 | IsReduced ((Over.pullback (Spec.map (CommRingCat.ofHom φ))).obj X).left ∧ |
| 47 | (∀ F : Set ((Over.pullback (Spec.map (CommRingCat.ofHom φ))).obj X).left, |
| 48 | F.Finite → ∃ V : ((Over.pullback (Spec.map (CommRingCat.ofHom φ))).obj X).left.Opens, |
| 49 | IsAffineOpen V ∧ F ⊆ V) := by |
| 50 | let W := IntegralPEL.FrameExistence.IntegralPELFrame.space B hN |
| 51 | let U := (IntegralPEL.FrameExistence.IntegralPELFrame.universal B hN).swap |
| 52 | let f := IntegralPEL.FrameExistence.IntegralPELFrame.forget B hN |
| 53 | obtain ⟨hf, ht, _⟩ := IntegralPEL.FrameCharacteristicZero.IntegralPELFrame.characteristicZero_finite_etale_surjective B hN |
| 54 | have : IsFinite f.left := hf |
| 55 | have : Etale f.left := ht |
| 56 | obtain ⟨hwred, hwn⟩ := IntegralPEL.PELFrameGeometry.IntegralPELFrame.reduced_noetherian B hN |
| 57 | have : IsReduced W.left := hwred |
| 58 | have : IsNoetherian W.left := hwn |
| 59 | have : LocallyOfFiniteType W.hom := by |
| 60 | rw [← f.w] |
| 61 | infer_instance |
| 62 | have hu : U.IsFine := IntegralAdded.FineSwap.integralAddedPEL_fine_swap (IntegralPEL.FrameExistence.IntegralPELFrame.universal B hN) (IntegralPEL.FrameFine.IntegralPELFrame.isFine B hN hL3 hPresentations hB) |
| 63 | obtain ⟨q, hqf, hqt, hqs, ⟨e⟩⟩ := |
| 64 | CommonFrameProjection.common_frame_prescribed_projection A B hL hN hN3 hL3 hPresentations hA hB |
| 65 | have : IsFinite q.left := hqf |
| 66 | have : Etale q.left := hqt |
| 67 | have : Surjective q.left := hqs |
| 68 | obtain ⟨hredW, hsepW, hAFW⟩ := IntegralModel.Finite.EtaleCoverBaseChange.finite_etale_cover_baseChange_geometry φ f hred hsep hAF |
| 69 | exact QuotientBaseChangeAffine.auxiliary_quotient_baseChange_affine U hu A q e hN3 hPresentations φ hA' hredW hsepW hAFW |
| 70 | |
| 71 | end |
| 72 | |
| 73 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.PEL.CommonFrameAffineTransfer |