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.PELModuli.IntegralModel.Components |
| 2 | import OAI.AlgebraicGeometry.PELModuli.IntegralModel.Specialization |
| 3 | import OAI.AlgebraicGeometry.ComplexPoints.Analytic.ProjectiveComponent |
| 4 | |
| 5 | /-! # Coproduct -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.Coproduct |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! |
| 12 | Disjoint scheme decompositions and their pullbacks. The covers and disjointness |
| 13 | are derived from the coproduct isomorphism, rather than assumed on its fibers. |
| 14 | -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 17 | |
| 18 | variable {B : Scheme} {r : ℕ} (U : Fin r → Over B) |
| 19 | |
| 20 | def underlyingCoproductIso : (∐ U).left ≅ ∐ (fun i => (U i).left) := |
| 21 | PreservesCoproduct.iso (Over.forget B) U |
| 22 | |
| 23 | @[reassoc (attr := simp)] theorem underlyingCoproductIso_ι (i : Fin r) : |
| 24 | Sigma.ι (fun k => (U k).left) i ≫ (underlyingCoproductIso U).inv = |
| 25 | (Sigma.ι U i).left := by |
| 26 | exact ι_comp_sigmaComparison (Over.forget B) U i |
| 27 | |
| 28 | def decompositionSchemeIso {M : Over B} (e : (∐ U) ≅ M) : |
| 29 | (∐ fun i => (U i).left) ≅ M.left := |
| 30 | (underlyingCoproductIso U).symm ≪≫ (Over.forget B).mapIso e |
| 31 | |
| 32 | @[reassoc (attr := simp)] theorem decompositionSchemeIso_ι {M : Over B} |
| 33 | (e : (∐ U) ≅ M) (i : Fin r) : |
| 34 | Sigma.ι (fun k => (U k).left) i ≫ (decompositionSchemeIso U e).hom = |
| 35 | (Sigma.ι U i ≫ e.hom).left := by |
| 36 | change Sigma.ι (fun k => (U k).left) i ≫ |
| 37 | ((underlyingCoproductIso U).inv ≫ e.hom.left) = |
| 38 | (Sigma.ι U i).left ≫ e.hom.left |
| 39 | rw [← Category.assoc, underlyingCoproductIso_ι] |
| 40 | |
| 41 | def decompositionHomeomorph {M : Over B} (e : (∐ U) ≅ M) : |
| 42 | (Σ i, (U i).left) ≃ₜ M.left := |
| 43 | (sigmaMk (fun i => (U i).left)).trans (decompositionSchemeIso U e).hom.homeomorph |
| 44 | |
| 45 | @[simp] theorem decompositionHomeomorph_apply {M : Over B} (e : (∐ U) ≅ M) |
| 46 | (i : Fin r) (x : (U i).left) : |
| 47 | decompositionHomeomorph U e ⟨i, x⟩ = (Sigma.ι U i ≫ e.hom).left x := by |
| 48 | change (decompositionSchemeIso U e).hom (sigmaMk _ ⟨i, x⟩) = _ |
| 49 | rw [sigmaMk_mk, ← Scheme.Hom.comp_apply, decompositionSchemeIso_ι] |
| 50 | |
| 51 | theorem decomposition_inclusion_open {M : Over B} (e : (∐ U) ≅ M) (i : Fin r) : |
| 52 | IsOpenImmersion (Sigma.ι U i ≫ e.hom).left := by |
| 53 | rw [← decompositionSchemeIso_ι U e i] |
| 54 | infer_instance |
| 55 | |
| 56 | theorem decomposition_cover {M : Over B} (e : (∐ U) ≅ M) (x : M.left) : |
| 57 | ∃ i, x ∈ Set.range (Sigma.ι U i ≫ e.hom).left := by |
| 58 | obtain ⟨⟨i, y⟩, hy⟩ := (decompositionHomeomorph U e).surjective x |
| 59 | exact ⟨i, y, (decompositionHomeomorph_apply U e i y).symm.trans hy⟩ |
| 60 | |
| 61 | theorem decomposition_disjoint {M : Over B} (e : (∐ U) ≅ M) : |
| 62 | Pairwise (fun i j => Disjoint (Set.range (Sigma.ι U i ≫ e.hom).left) |
| 63 | (Set.range (Sigma.ι U j ≫ e.hom).left)) := by |
| 64 | intro i j hij |
| 65 | apply Set.disjoint_left.mpr |
| 66 | rintro x ⟨y, hy⟩ ⟨z, hz⟩ |
| 67 | apply hij |
| 68 | have hpoints : (⟨i, y⟩ : Σ k, (U k).left) = ⟨j, z⟩ := by |
| 69 | apply (decompositionHomeomorph U e).injective |
| 70 | simpa only [decompositionHomeomorph_apply] using hy.trans hz.symm |
| 71 | exact congrArg Sigma.fst hpoints |
| 72 | |
| 73 | theorem baseChange_map_range {C : Scheme} (g : C ⟶ B) {X Y : Over B} (f : X ⟶ Y) : |
| 74 | Set.range ((Over.pullback g).map f).left = |
| 75 | pullback.fst Y.hom g ⁻¹' Set.range f.left := by |
| 76 | have hf : X.hom ≫ 𝟙 B = f.left ≫ Y.hom := by simp |
| 77 | have hg : g ≫ 𝟙 B = 𝟙 C ≫ g := by simp |
| 78 | have heq : ((Over.pullback g).map f).left = |
| 79 | pullback.map X.hom g Y.hom g f.left (𝟙 C) (𝟙 B) hf hg := by |
| 80 | apply pullback.hom_ext |
| 81 | · simp only [Over.pullback_map_left, pullback.map, pullback.lift_fst] |
| 82 | · simp only [Over.pullback_map_left, pullback.map, pullback.lift_snd, Category.comp_id] |
| 83 | rw [heq, Scheme.Pullback.range_map] |
| 84 | simp |
| 85 | |
| 86 | theorem baseChange_inclusion_open {C : Scheme} (g : C ⟶ B) {X Y : Over B} |
| 87 | (f : X ⟶ Y) [IsOpenImmersion f.left] : |
| 88 | IsOpenImmersion ((Over.pullback g).map f).left := |
| 89 | MorphismProperty.of_isPullback (P := @IsOpenImmersion) |
| 90 | (Specialization.base_change_square g f) inferInstance |
| 91 | |
| 92 | theorem baseChange_decomposition_cover {C : Scheme} (g : C ⟶ B) |
| 93 | {M : Over B} (e : (∐ U) ≅ M) (x : ((Over.pullback g).obj M).left) : |
| 94 | ∃ i, x ∈ Set.range ((Over.pullback g).map (Sigma.ι U i ≫ e.hom)).left := by |
| 95 | obtain ⟨i, hi⟩ := decomposition_cover U e (pullback.fst M.hom g x) |
| 96 | exact ⟨i, by rw [baseChange_map_range]; exact hi⟩ |
| 97 | |
| 98 | theorem baseChange_decomposition_disjoint {C : Scheme} (g : C ⟶ B) |
| 99 | {M : Over B} (e : (∐ U) ≅ M) : |
| 100 | Pairwise (fun i j => |
| 101 | Disjoint (Set.range ((Over.pullback g).map (Sigma.ι U i ≫ e.hom)).left) |
| 102 | (Set.range ((Over.pullback g).map (Sigma.ι U j ≫ e.hom)).left)) := by |
| 103 | intro i j hij |
| 104 | rw [baseChange_map_range, baseChange_map_range] |
| 105 | exact (decomposition_disjoint U e hij).preimage _ |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.Coproduct |