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.Quotients.FiniteDescent.LocalizedBasisAlgebra |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineBasis |
| 3 | |
| 4 | /-! # Scheme Trivialization Basis -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.SchemeTrivializationBasis.Construction.SchemeTrivialization |
| 7 | |
| 8 | /-! |
| 9 | # Affine neighborhoods trivializing a finite locally free morphism |
| 10 | |
| 11 | Local freeness of the coordinate module is converted to an actual affine |
| 12 | open of the base with a finite basis on the restricted morphism. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u |
| 18 | |
| 19 | theorem exists_affine_basis_neighborhood |
| 20 | {X S : Scheme.{u}} [IsAffine S] (f : X ⟶ S) |
| 21 | [IsFinite f] [Flat f] [LocallyOfFinitePresentation f] (x : S) : |
| 22 | ∃ U : S.Opens, IsAffineOpen U ∧ x ∈ U ∧ ∃ n : ℕ, |
| 23 | letI := (f ∣_ U).appTop.hom.toAlgebra |
| 24 | Nonempty (Module.Basis (Fin n) Γ(U.toScheme, ⊤) Γ((f ⁻¹ᵁ U).toScheme, ⊤)) := by |
| 25 | have : IsAffine X := isAffine_of_isAffineHom f |
| 26 | let := f.appTop.hom.toAlgebra |
| 27 | let p : PrimeSpectrum Γ(S, ⊤) := S.isoSpec.hom x |
| 28 | obtain ⟨r, hr, n, ⟨b⟩⟩ := SourceTrivializationTop.Construction.SourceTrivialization.affine_morphism_exists_basis_away f p |
| 29 | let U := S.basicOpen r |
| 30 | let V := f ⁻¹ᵁ U |
| 31 | let : Algebra Γ(U.toScheme, ⊤) Γ(V.toScheme, ⊤) := (f ∣_ U).appTop.hom.toAlgebra |
| 32 | let : Algebra Γ(S, ⊤) Γ(V.toScheme, ⊤) := |
| 33 | (V.ι.appTop.hom.comp f.appTop.hom).toAlgebra |
| 34 | have : IsScalarTower Γ(S, ⊤) Γ(X, ⊤) Γ(V.toScheme, ⊤) := |
| 35 | IsScalarTower.of_algebraMap_eq fun _ => rfl |
| 36 | have : IsScalarTower Γ(S, ⊤) Γ(U.toScheme, ⊤) Γ(V.toScheme, ⊤) := by |
| 37 | apply IsScalarTower.of_algebraMap_eq |
| 38 | intro c |
| 39 | change V.ι.appTop (f.appTop c) = (f ∣_ U).appTop (U.ι.appTop c) |
| 40 | simpa only [Scheme.Hom.comp_appTop, CommRingCat.comp_apply] using |
| 41 | congrArg (fun g : V.toScheme ⟶ S => g.appTop c) (morphismRestrict_ι f U).symm |
| 42 | have : IsLocalization.Away (algebraMap Γ(S, ⊤) Γ(X, ⊤) r) Γ(V.toScheme, ⊤) := by |
| 43 | change IsLocalization.Away (f.appTop r) Γ((f ⁻¹ᵁ S.basicOpen r).toScheme, ⊤) |
| 44 | rw [Scheme.preimage_basicOpen_top] |
| 45 | infer_instance |
| 46 | refine ⟨U, (isAffineOpen_top S).basicOpen r, ?_, n, ?_⟩ |
| 47 | · change x ∈ S.basicOpen r |
| 48 | rw [← S.map_PrimeSpectrum_basicOpen_of_affine] |
| 49 | exact hr |
| 50 | · exact ⟨LocalizedBasisAlgebra.Construction.LocalizedBasis.algebraBasis (R := Γ(S, ⊤)) (A := Γ(X, ⊤)) |
| 51 | (R₁ := Γ(U.toScheme, ⊤)) (A₁ := Γ(V.toScheme, ⊤)) r b⟩ |
| 52 | |
| 53 | /-- The affine neighborhood and its finite basis exist over an arbitrary |
| 54 | base scheme, by restricting to an affine chart and transporting the result. -/ |
| 55 | theorem exists_basis_neighborhood |
| 56 | {X S : Scheme.{u}} (f : X ⟶ S) |
| 57 | [IsFinite f] [Flat f] [LocallyOfFinitePresentation f] (x : S) : |
| 58 | ∃ U : S.Opens, IsAffineOpen U ∧ x ∈ U ∧ ∃ n : ℕ, |
| 59 | letI := (f ∣_ U).appTop.hom.toAlgebra |
| 60 | Nonempty (Module.Basis (Fin n) Γ(U.toScheme, ⊤) Γ((f ⁻¹ᵁ U).toScheme, ⊤)) := by |
| 61 | obtain ⟨U₀, hU₀, hxU₀, _⟩ := TopologicalSpace.Opens.isBasis_iff_nbhd.mp |
| 62 | S.isBasis_affineOpens (show x ∈ (⊤ : S.Opens) from trivial) |
| 63 | let U : S.Opens := U₀ |
| 64 | have hU : IsAffineOpen U := hU₀ |
| 65 | have hxU : x ∈ U := hxU₀ |
| 66 | let : IsAffine U := hU |
| 67 | obtain ⟨V, hV, hxV, n, ⟨b⟩⟩ := exists_affine_basis_neighborhood (f ∣_ U) ⟨x, hxU⟩ |
| 68 | let : IsAffine V := hV |
| 69 | let W := U.ι ''ᵁ V |
| 70 | have hW : IsAffineOpen W := hV.image_of_isOpenImmersion U.ι |
| 71 | let : IsAffine W := hW |
| 72 | have : IsAffine ((f ∣_ U) ⁻¹ᵁ V).toScheme := isAffine_of_isAffineHom (f ∣_ U ∣_ V) |
| 73 | have : IsAffine (f ⁻¹ᵁ W).toScheme := isAffine_of_isAffineHom (f ∣_ W) |
| 74 | refine ⟨W, hW, ⟨⟨x, hxU⟩, hxV, rfl⟩, n, ?_⟩ |
| 75 | exact AffineBasis.Construction.AffineBasisTransfer.of_arrowIso (morphismRestrictRestrict f U V) b |
| 76 | |
| 77 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.SchemeTrivializationBasis.Construction.SchemeTrivialization |