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.FormalGeometry.Completion.FiniteTorsor.AffineCover |
| 2 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.ProEtale.RestrictionSlice |
| 3 | import OAI.AlgebraicGeometry.FormalGeometry.Completion.Affine.FiniteSheafRepresentation |
| 4 | |
| 5 | /-! # Restricted Affine -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.FormalGeometry.Completion.FiniteTorsor |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | # Completion: finite étale representatives after restriction to any affine site object |
| 13 | |
| 14 | An actual torsor on an arbitrary base restricts to a representable finite |
| 15 | étale sheaf on every affine weakly étale scheme over that base. |
| 16 | -/ |
| 17 | |
| 18 | open _root_.CategoryTheory Limits _root_.AlgebraicGeometry Opposite |
| 19 | |
| 20 | set_option backward.defeqAttrib.useBackward true |
| 21 | set_option backward.isDefEq.respectTransparency false |
| 22 | |
| 23 | universe u |
| 24 | |
| 25 | variable {X : Scheme.{u}} {R : Type u} [CommRing R] {ℓ n : ℕ} |
| 26 | (E : App.Construction.FiniteCoefficientExtension ℓ n X) |
| 27 | (b : Spec (CommRingCat.of R) ⟶ X) (hb : WeaklyEtale b) |
| 28 | |
| 29 | /-- A restricted actual torsor admits an affine faithfully flat ring trivialization. -/ |
| 30 | theorem App.Construction.FiniteCoefficientExtension.exists_affine_ring_trivialization_over : |
| 31 | ∃ (S : CommRingCat.{u}) (f : R →+* S) |
| 32 | (hf : WeaklyEtale (Spec.map (CommRingCat.ofHom f))), |
| 33 | f.FaithfullyFlat ∧ Nonempty (E.Fiber ((ProEtale.EtaleRestriction.Construction.proEtCompose b hb).obj (Affine.CoverObject.Construction.affineCoverObject f hf))) := by |
| 34 | have := hb |
| 35 | let U : X.ProEt := Scheme.ProEt.mk b |
| 36 | have : IsAffine U.left := inferInstanceAs (IsAffine (Spec (CommRingCat.of R))) |
| 37 | obtain ⟨T, g, hT, hg, ⟨s⟩⟩ := E.exists_affine_cover_lift U |
| 38 | have : IsAffine T.left := hT |
| 39 | have : Surjective g.left := hg |
| 40 | have : WeaklyEtale g.left := ProEtale.SingleCover.Construction.proEtaleMorphism_weaklyEtale g |
| 41 | let f : CommRingCat.of R ⟶ Γ(T.left, ⊤) := Spec.preimage (T.left.isoSpec.inv ≫ g.left) |
| 42 | have hf : WeaklyEtale (Spec.map (CommRingCat.ofHom f.hom)) := by |
| 43 | change WeaklyEtale (Spec.map f) |
| 44 | rw [show Spec.map f = T.left.isoSpec.inv ≫ g.left from Spec.map_preimage _] |
| 45 | infer_instance |
| 46 | have hsurj : Surjective (Spec.map f) := by |
| 47 | rw [show Spec.map f = T.left.isoSpec.inv ≫ g.left from Spec.map_preimage _] |
| 48 | infer_instance |
| 49 | have hflat : f.hom.FaithfullyFlat := |
| 50 | (flat_and_surjective_SpecMap_iff f).mp ⟨hf.flat, hsurj⟩ |
| 51 | let e : (ProEtale.EtaleRestriction.Construction.proEtCompose b hb).obj (Affine.CoverObject.Construction.affineCoverObject f.hom hf) ≅ T := |
| 52 | MorphismProperty.Over.isoMk T.left.isoSpec.symm (by |
| 53 | change T.left.isoSpec.inv ≫ T.hom = Spec.map f ≫ b |
| 54 | rw [show Spec.map f = T.left.isoSpec.inv ≫ g.left from Spec.map_preimage _] |
| 55 | rw [Category.assoc] |
| 56 | exact congrArg (fun k => T.left.isoSpec.inv ≫ k) (MorphismProperty.Over.w g).symm) |
| 57 | exact ⟨Γ(T.left, ⊤), f.hom, hf, hflat, ⟨E.restrict e.hom s⟩⟩ |
| 58 | |
| 59 | /-- The torsor restricted to any affine weakly étale base is an actual finite étale scheme. -/ |
| 60 | theorem App.Construction.FiniteCoefficientExtension.exists_finiteEtale_representative_restricted_affine [NeZero (ℓ ^ n)] : |
| 61 | ∃ T : (Spec (CommRingCat.of R)).ProEt, |
| 62 | IsFinite T.hom ∧ Etale T.hom ∧ |
| 63 | Nonempty (((ProEtale.EtaleRestriction.Construction.proEtCompose b hb).op ⋙ E.fiberPresheaf).RepresentableBy T) := by |
| 64 | obtain ⟨S, f, hf, hflat, ⟨s⟩⟩ := E.exists_affine_ring_trivialization_over b hb |
| 65 | let F := (ProEtale.EtaleRestriction.Construction.proEtSheafRestriction b hb (Type (u + 1))).obj E.fiberSheaf |
| 66 | exact Affine.FiniteSheafRepresentation.Construction.exists_affineSheaf_finiteEtale_representative.{u, u + 1} f hf ℓ n F |
| 67 | (E.restrictedLocalRepresentative b hb (Affine.CoverObject.Construction.affineCoverObject f hf) s) hflat |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.AlgebraicGeometry.FormalGeometry.Completion.FiniteTorsor |