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.IsogenyQuotient.AffineDetection |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.InvariantAffineHas |
| 3 | |
| 4 | /-! # Invariant Affine -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.InvariantAffine.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! An invariant affine open descends to an affine open in the actual |
| 11 | finite-flat quotient. The relation's basis is transported from its |
| 12 | finite-free source scheme. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | theorem invariantAffineOpen_descends |
| 19 | {H S R X Y : Scheme.{u}} [IsAffine H] [IsAffine S] |
| 20 | (q : X ⟶ Y) [Flat q] [Surjective q] [QuasiCompact q] |
| 21 | (s t : R ⟶ X) (hk : IsKernelPair q s t) |
| 22 | (h : H ⟶ S) [IsFinite h] (a : X ⟶ S) (r : R ⟶ H) |
| 23 | (hs : IsPullback r s h a) {ι : Type v} [Fintype ι] |
| 24 | (b : letI := h.appTop.hom.toAlgebra; Module.Basis ι Γ(S, ⊤) Γ(H, ⊤)) |
| 25 | (W : X.Opens) (hW : IsAffineOpen W) (hinv : s ⁻¹ᵁ W = t ⁻¹ᵁ W) : |
| 26 | IsAffineOpen (Quotients.FiniteDescent.InvariantOpensEq.Construction.InvariantOpens.descend q hk W hinv) := by |
| 27 | have : IsAffine W := hW |
| 28 | have : IsFinite s := MorphismProperty.of_isPullback hs inferInstance |
| 29 | have : IsAffine (s ⁻¹ᵁ W).toScheme := isAffine_of_isAffineHom (s ∣_ W) |
| 30 | obtain ⟨bW⟩ := Quotients.FiniteDescent.InvariantAffineHas.Construction.InvariantAffineBasis.exists_basis_restrict h a r s hs b W |
| 31 | exact AffineDetection.Construction.affine_of_finiteFree_kernelPair |
| 32 | (Quotients.FiniteDescent.InvariantOpensEq.Construction.InvariantOpens.restrictProjection q hk W hinv) (s ∣_ W) |
| 33 | ((R.isoOfEq hinv).hom ≫ t ∣_ W) |
| 34 | (Quotients.FiniteDescent.InvariantOpensEq.Construction.InvariantOpens.restrictProjection_isKernelPair q hk W hinv) bW |
| 35 | |
| 36 | end |
| 37 | |
| 38 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.InvariantAffine.Construction |