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.AffineBasis |
| 2 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.AffineQuotientOf |
| 3 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.InvariantOpensEq |
| 4 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.InvariantAffineHas |
| 5 | import OAI.AlgebraicGeometry.Quotients.FiniteDescent.InvariantNeighborhood |
| 6 | |
| 7 | /-! # Affine -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.Affine.Construction.AffineFiniteDescent |
| 10 | |
| 11 | /-! |
| 12 | # Affineness descends along a finite-free cover |
| 13 | |
| 14 | For a cover obtained by base change from a finite-free affine morphism, the |
| 15 | affine relation quotient identifies the target with an affine spectrum. |
| 16 | This will allow affine neighborhoods constructed after a finite base change |
| 17 | to descend to the original abelian scheme. |
| 18 | -/ |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 21 | |
| 22 | universe u v |
| 23 | |
| 24 | theorem isAffine_of_cover |
| 25 | {H S Y X : Scheme.{u}} [IsAffine H] [IsAffine S] [IsAffine Y] |
| 26 | (h : H ⟶ S) (a : X ⟶ S) (r : Y ⟶ H) (q : Y ⟶ X) |
| 27 | (hq : IsPullback r q h a) [IsFinite h] [Flat q] [Surjective q] |
| 28 | {ι : Type v} [Fintype ι] |
| 29 | (b : letI := h.appTop.hom.toAlgebra; Module.Basis ι Γ(S, ⊤) Γ(H, ⊤)) : |
| 30 | IsAffine X := by |
| 31 | classical |
| 32 | have : IsFinite q := MorphismProperty.of_isPullback hq inferInstance |
| 33 | let s : pullback q q ⟶ Y := pullback.fst q q |
| 34 | let t : pullback q q ⟶ Y := pullback.snd q q |
| 35 | have : IsAffine (pullback q q) := isAffine_of_isAffineHom s |
| 36 | have hk : IsKernelPair q s t := IsPullback.of_hasPullback q q |
| 37 | let e := hk.equivalenceRelation q s t (pullback.isLimit t s) |
| 38 | have hp : IsPullback (t ≫ r) s h (q ≫ a) := hk.flip.paste_horiz hq |
| 39 | obtain ⟨bR⟩ := AffineBasis.Construction.AffineBasisTransfer.of_isPullback h (q ≫ a) (t ≫ r) s hp b |
| 40 | obtain ⟨hfin, hflat, _, hsurj, hk'⟩ := |
| 41 | AffineQuotientOf.Construction.AffineQuotient.projection_properties_of_finiteFree_absolute s t e bR |
| 42 | let := hfin |
| 43 | let := hflat |
| 44 | let := hsurj |
| 45 | obtain ⟨eQ, _, _⟩ := Quotient.Construction.QuotientDescent.existsUnique_iso (AffineQuotientOf.Construction.AffineQuotient.projection s t) q hk' hk |
| 46 | exact (IsAffine.iff_of_isIso eQ.inv).mpr inferInstance |
| 47 | |
| 48 | /-- An affine neighborhood of the full preimage of a finite set descends |
| 49 | to an affine neighborhood of that set along a finite-free cover. -/ |
| 50 | theorem exists_affine_neighborhood |
| 51 | {H S Y X : Scheme.{u}} [IsAffine H] [IsAffine S] |
| 52 | (h : H ⟶ S) (a : X ⟶ S) (r : Y ⟶ H) (q : Y ⟶ X) |
| 53 | (hq : IsPullback r q h a) [IsFinite h] [Flat q] [Surjective q] |
| 54 | {n : ℕ} |
| 55 | (b : letI := h.appTop.hom.toAlgebra; Module.Basis (Fin n) Γ(S, ⊤) Γ(H, ⊤)) |
| 56 | (F : Set X) (hF : F.Finite) (U : Y.Opens) (hU : IsAffineOpen U) |
| 57 | (hFU : q ⁻¹' F ⊆ U) : |
| 58 | ∃ V : X.Opens, IsAffineOpen V ∧ F ⊆ V ∧ q ⁻¹ᵁ V ≤ U := by |
| 59 | have : IsFinite q := MorphismProperty.of_isPullback hq inferInstance |
| 60 | let s : pullback q q ⟶ Y := pullback.fst q q |
| 61 | let t : pullback q q ⟶ Y := pullback.snd q q |
| 62 | have hk : IsKernelPair q s t := IsPullback.of_hasPullback q q |
| 63 | let e := hk.equivalenceRelation q s t (pullback.isLimit t s) |
| 64 | have hp : IsPullback (t ≫ r) s h (q ≫ a) := hk.flip.paste_horiz hq |
| 65 | have hFs : ∀ x ∈ q ⁻¹' F, ∀ y, Invariant.Construction.InvariantCore.Related s t x y → y ∈ q ⁻¹' F := by |
| 66 | rintro x hx y ⟨z, hz, hz'⟩ |
| 67 | have he : q x = q y := by |
| 68 | simpa only [Scheme.Hom.comp_apply, hz, hz'] using congrArg (fun f => f z) hk.w |
| 69 | change q y ∈ F |
| 70 | exact he ▸ hx |
| 71 | obtain ⟨W, hW, hWU, hWi, hFW⟩ := InvariantNeighborhood.Construction.FiniteInvariantNeighborhood.exists_invariant_affine e |
| 72 | (q ⁻¹' F) (q.finite_preimage hF) hFs U hU hFU (by |
| 73 | intro D hD _ |
| 74 | let : IsAffine D := hD |
| 75 | exact ⟨n, InvariantAffineHas.Construction.InvariantAffineBasis.exists_basis_restrict h (q ≫ a) (t ≫ r) s hp b D⟩) |
| 76 | let : IsAffine W := hW |
| 77 | let V := InvariantOpensEq.Construction.InvariantOpens.descend q hk W hWi |
| 78 | let qW : W.toScheme ⟶ V.toScheme := InvariantOpensEq.Construction.InvariantOpens.restrictProjection q hk W hWi |
| 79 | have hqW : IsPullback (W.ι ≫ r) qW h (V.ι ≫ a) := |
| 80 | (InvariantOpensEq.Construction.InvariantOpens.restrictProjection_isPullback q hk W hWi).flip.paste_horiz hq |
| 81 | have : Flat qW := inferInstanceAs (Flat (InvariantOpensEq.Construction.InvariantOpens.restrictProjection q hk W hWi)) |
| 82 | have : Surjective qW := inferInstanceAs (Surjective (InvariantOpensEq.Construction.InvariantOpens.restrictProjection q hk W hWi)) |
| 83 | refine ⟨V, isAffine_of_cover h (V.ι ≫ a) (W.ι ≫ r) qW hqW b, ?_, ?_⟩ |
| 84 | · intro x hx |
| 85 | obtain ⟨y, hy⟩ := q.surjective x |
| 86 | exact ⟨y, hFW (by simpa only [Set.mem_preimage, hy] using hx), hy⟩ |
| 87 | · change q ⁻¹ᵁ InvariantOpensEq.Construction.InvariantOpens.descend q hk W hWi ≤ U |
| 88 | rw [InvariantOpensEq.Construction.InvariantOpens.preimage_descend] |
| 89 | exact hWU |
| 90 | |
| 91 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.Affine.Construction.AffineFiniteDescent |