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 Mathlib.AlgebraicGeometry.Sites.Fpqc |
| 2 | import Mathlib.AlgebraicGeometry.Cover.Sigma |
| 3 | |
| 4 | /-! # Finite Fppf Cover -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FiniteFppfCover |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A compact scheme's fppf covering sieve admits a finite affine |
| 11 | refinement. Its disjoint union is an actual fpqc covering morphism. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | structure Family (Y : Scheme.{u}) (R : Sieve Y) where |
| 18 | n : ℕ |
| 19 | source : Fin n → Scheme.{u} |
| 20 | map : ∀ i, source i ⟶ Y |
| 21 | affine : ∀ i, IsAffine (source i) |
| 22 | flat : ∀ i, Flat (map i) |
| 23 | lfp : ∀ i, LocallyOfFinitePresentation (map i) |
| 24 | covers : ∀ y : Y, ∃ i, ∃ x : source i, map i x = y |
| 25 | member : ∀ i, R (map i) |
| 26 | |
| 27 | attribute [instance] Family.affine Family.flat Family.lfp |
| 28 | |
| 29 | variable {Y : Scheme.{u}} {R : Sieve Y} |
| 30 | |
| 31 | theorem exists_finiteRefinement [CompactSpace Y] (hR : R ∈ Scheme.fppfTopology Y) : |
| 32 | Nonempty (Family Y R) := by |
| 33 | let P : MorphismProperty Scheme.{u} := @Flat ⊓ @LocallyOfFinitePresentation |
| 34 | have hP : P.IsStableUnderBaseChange := |
| 35 | { of_isPullback := fun sq hg ↦ |
| 36 | ⟨MorphismProperty.IsStableUnderBaseChange.of_isPullback (P := @Flat) sq hg.1, |
| 37 | MorphismProperty.IsStableUnderBaseChange.of_isPullback |
| 38 | (P := @LocallyOfFinitePresentation) sq hg.2⟩ } |
| 39 | have hPm : P.IsMultiplicative := |
| 40 | { id_mem := fun _ ↦ ⟨inferInstance, inferInstance⟩ |
| 41 | comp_mem := fun f g hf hg ↦ |
| 42 | ⟨MorphismProperty.comp_mem (@Flat) f g hf.1 hg.1, |
| 43 | MorphismProperty.comp_mem (@LocallyOfFinitePresentation) f g hf.2 hg.2⟩ } |
| 44 | obtain ⟨𝒰, hmem⟩ := Scheme.exists_cover_of_mem_grothendieckTopology (P := P) hR |
| 45 | have hflat (i : 𝒰.I₀) : Flat (𝒰.f i) := (𝒰.map_prop i).1 |
| 46 | have hlfp (i : 𝒰.I₀) : LocallyOfFinitePresentation (𝒰.f i) := (𝒰.map_prop i).2 |
| 47 | have : QuasiCompactCover 𝒰.toPreZeroHypercover := |
| 48 | QuasiCompactCover.of_isOpenMap (fun i ↦ (𝒰.f i).isOpenMap) |
| 49 | obtain ⟨n, a, V, hV, hcov⟩ := QuasiCompactCover.exists_isAffineOpen_of_isCompact |
| 50 | 𝒰.toPreZeroHypercover (U := ⊤) CompactSpace.isCompact_univ |
| 51 | refine ⟨{ |
| 52 | n := n |
| 53 | source := fun i ↦ (V i).toScheme |
| 54 | map := fun i ↦ (V i).ι ≫ 𝒰.f (a i) |
| 55 | affine := hV |
| 56 | flat := fun i ↦ inferInstance |
| 57 | lfp := fun i ↦ inferInstance |
| 58 | covers := ?_ |
| 59 | member := ?_ }⟩ |
| 60 | · intro y |
| 61 | have hy : y ∈ ⋃ i, 𝒰.f (a i) '' (V i) := by rw [hcov]; trivial |
| 62 | obtain ⟨i, x, hx, hxy⟩ := Set.mem_iUnion.mp hy |
| 63 | exact ⟨i, ⟨x, hx⟩, hxy⟩ |
| 64 | · intro i |
| 65 | exact R.downward_closed (hmem _ _ (Presieve.ofArrows.mk (a i))) (V i).ι |
| 66 | |
| 67 | def finiteRefinement [CompactSpace Y] (hR : R ∈ Scheme.fppfTopology Y) : Family Y R := |
| 68 | Classical.choice (exists_finiteRefinement hR) |
| 69 | |
| 70 | variable (D : Family Y R) |
| 71 | |
| 72 | def toCover : Scheme.Cover Scheme.fppfPrecoverage Y where |
| 73 | I₀ := Fin D.n |
| 74 | X := D.source |
| 75 | f := D.map |
| 76 | mem₀ := by |
| 77 | rw [Scheme.fppfPrecoverage, Scheme.presieve₀_mem_precoverage_iff] |
| 78 | exact ⟨D.covers, fun i ↦ ⟨D.flat i, D.lfp i⟩⟩ |
| 79 | |
| 80 | def total : Scheme.{u} := ∐ D.source |
| 81 | |
| 82 | def projection : total D ⟶ Y := Sigma.desc D.map |
| 83 | |
| 84 | instance total_affine : IsAffine (total D) := inferInstanceAs (IsAffine (∐ D.source)) |
| 85 | |
| 86 | instance projection_flat : Flat (projection D) := |
| 87 | inferInstanceAs (Flat (Sigma.desc D.map)) |
| 88 | |
| 89 | instance projection_surjective : Surjective (projection D) where |
| 90 | surj y := by |
| 91 | obtain ⟨i, x, hxy⟩ := D.covers y |
| 92 | refine ⟨(Sigma.ι D.source i) x, ?_⟩ |
| 93 | exact (congrArg (fun a ↦ a x) (Sigma.ι_comp_desc D.map i)).trans hxy |
| 94 | |
| 95 | instance projection_quasiCompact [QuasiSeparatedSpace Y] : QuasiCompact (projection D) := inferInstance |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.Isogenies.NeighborCounting.FiniteFppfCover |