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.Descent |
| 2 | |
| 3 | /-! # Descent Cocycle Change -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.PELModuli.IntegralModel.DescentCocycleChange |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | An ordinary normalized cocycle gives an effective finite descent relation. |
| 11 | In particular, symmetry and the equivalence relation are consequences of |
| 12 | the cocycle equations, rather than additional quotient assumptions. |
| 13 | -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 16 | |
| 17 | universe u v |
| 18 | |
| 19 | namespace DescentCocycle |
| 20 | |
| 21 | variable {C : Type u} [Category.{v} C] [HasPullbacks C] |
| 22 | {B T X : C} (u : T ⟶ B) (a : X ⟶ T) |
| 23 | |
| 24 | abbrev overlap := pullback (a ≫ u) u |
| 25 | abbrev source : overlap u a ⟶ X := pullback.fst _ _ |
| 26 | abbrev base : overlap u a ⟶ T := pullback.snd _ _ |
| 27 | |
| 28 | @[reassoc] theorem source_condition : |
| 29 | source u a ≫ a ≫ u = base u a ≫ u := pullback.condition |
| 30 | |
| 31 | def diagonal : X ⟶ overlap u a := pullback.lift (𝟙 X) a (by simp) |
| 32 | |
| 33 | @[reassoc (attr := simp)] theorem diagonal_source : |
| 34 | diagonal u a ≫ source u a = 𝟙 X := pullback.lift_fst _ _ _ |
| 35 | |
| 36 | @[reassoc (attr := simp)] theorem diagonal_base : |
| 37 | diagonal u a ≫ base u a = a := pullback.lift_snd _ _ _ |
| 38 | |
| 39 | variable (t : overlap u a ⟶ X) (ht : t ≫ a = base u a) |
| 40 | |
| 41 | def composition : pullback t (source u a) ⟶ overlap u a := |
| 42 | pullback.lift (pullback.fst _ _ ≫ source u a) |
| 43 | (pullback.snd _ _ ≫ base u a) (by |
| 44 | calc |
| 45 | (pullback.fst _ _ ≫ source u a) ≫ (a ≫ u) = |
| 46 | pullback.fst _ _ ≫ base u a ≫ u := by |
| 47 | rw [Category.assoc, source_condition] |
| 48 | _ = (pullback.fst _ _ ≫ t) ≫ a ≫ u := by |
| 49 | rw [Category.assoc, ← Category.assoc t a u, ht] |
| 50 | _ = (pullback.snd _ _ ≫ source u a) ≫ a ≫ u := by |
| 51 | rw [pullback.condition] |
| 52 | _ = (pullback.snd _ _ ≫ base u a) ≫ u := by |
| 53 | simp only [Category.assoc, source_condition]) |
| 54 | |
| 55 | @[reassoc (attr := simp)] theorem composition_source : |
| 56 | composition u a t ht ≫ source u a = pullback.fst _ _ ≫ source u a := |
| 57 | pullback.lift_fst _ _ _ |
| 58 | |
| 59 | @[reassoc (attr := simp)] theorem composition_base : |
| 60 | composition u a t ht ≫ base u a = pullback.snd _ _ ≫ base u a := |
| 61 | pullback.lift_snd _ _ _ |
| 62 | |
| 63 | def reverse : overlap u a ⟶ overlap u a := |
| 64 | pullback.lift t (source u a ≫ a) (by |
| 65 | rw [← Category.assoc, ht] |
| 66 | simpa only [Category.assoc] using (source_condition u a).symm) |
| 67 | |
| 68 | @[reassoc (attr := simp)] theorem reverse_source : |
| 69 | reverse u a t ht ≫ source u a = t := pullback.lift_fst _ _ _ |
| 70 | |
| 71 | @[reassoc (attr := simp)] theorem reverse_base : |
| 72 | reverse u a t ht ≫ base u a = source u a ≫ a := pullback.lift_snd _ _ _ |
| 73 | |
| 74 | /-- Normalization and the cocycle law force inverse transport. -/ |
| 75 | theorem reverse_target (hnorm : diagonal u a ≫ t = 𝟙 X) |
| 76 | (hcocycle : composition u a t ht ≫ t = pullback.snd _ _ ≫ t) : |
| 77 | reverse u a t ht ≫ t = source u a := by |
| 78 | let l : overlap u a ⟶ pullback t (source u a) := |
| 79 | pullback.lift (𝟙 _) (reverse u a t ht) (by simp) |
| 80 | have hlfst : l ≫ pullback.fst _ _ = 𝟙 _ := pullback.lift_fst _ _ _ |
| 81 | have hlsnd : l ≫ pullback.snd _ _ = reverse u a t ht := pullback.lift_snd _ _ _ |
| 82 | have hl : l ≫ composition u a t ht = source u a ≫ diagonal u a := by |
| 83 | apply pullback.hom_ext |
| 84 | · change (l ≫ composition u a t ht) ≫ source u a = |
| 85 | (source u a ≫ diagonal u a) ≫ source u a |
| 86 | rw [Category.assoc, composition_source, ← Category.assoc, hlfst, |
| 87 | Category.id_comp, Category.assoc, diagonal_source, Category.comp_id] |
| 88 | · change (l ≫ composition u a t ht) ≫ base u a = |
| 89 | (source u a ≫ diagonal u a) ≫ base u a |
| 90 | rw [Category.assoc, composition_base, ← Category.assoc, hlsnd, |
| 91 | reverse_base, Category.assoc, diagonal_base] |
| 92 | calc |
| 93 | reverse u a t ht ≫ t = (l ≫ pullback.snd _ _) ≫ t := by rw [hlsnd] |
| 94 | _ = l ≫ (composition u a t ht ≫ t) := by rw [hcocycle, Category.assoc] |
| 95 | _ = (source u a ≫ diagonal u a) ≫ t := by rw [← Category.assoc, hl] |
| 96 | _ = source u a := by rw [Category.assoc, hnorm, Category.comp_id] |
| 97 | |
| 98 | /-- The actual overlap source and cocycle transport form an equivalence |
| 99 | relation; no quotient or effectiveness data enter this construction. -/ |
| 100 | def equivalenceRelation (hnorm : diagonal u a ≫ t = 𝟙 X) |
| 101 | (hcocycle : composition u a t ht ≫ t = pullback.snd _ _ ≫ t) : |
| 102 | CategoryTheory.EquivalenceRelation (source u a) t where |
| 103 | right_cancellation {Y} f g hs ht' := by |
| 104 | apply pullback.hom_ext hs |
| 105 | have h := congrArg (fun k => k ≫ a) ht' |
| 106 | simpa only [Category.assoc, ht] using h |
| 107 | r := diagonal u a |
| 108 | reflexivity₁ := diagonal_source u a |
| 109 | reflexivity₂ := hnorm |
| 110 | s := reverse u a t ht |
| 111 | symmetry₁ := reverse_source u a t ht |
| 112 | symmetry₂ := reverse_target u a t ht hnorm hcocycle |
| 113 | c := pullback.cone t (source u a) |
| 114 | isLimit := pullback.isLimit t (source u a) |
| 115 | t := composition u a t ht |
| 116 | transitivity₁ := composition_source u a t ht |
| 117 | transitivity₂ := hcocycle |
| 118 | |
| 119 | end DescentCocycle |
| 120 | |
| 121 | /-- The actual cartesian identification is an isomorphism of schemes over |
| 122 | the covering base. -/ |
| 123 | def descentBaseChangeIso {B T X : Scheme.{u}} {u : T ⟶ B} {a : X ⟶ T} |
| 124 | {Q : Over B} {q : X ⟶ Q.left} (h : IsPullback a q u Q.hom) : |
| 125 | Over.mk a ≅ (Over.pullback u).obj Q := |
| 126 | Over.isoMk h.flip.isoPullback h.flip.isoPullback_hom_snd |
| 127 | |
| 128 | /-- Normalized transport on the overlap of a finite faithfully flat cover |
| 129 | constructs a descended smooth proper geometrically connected scheme. |
| 130 | The quotient and its exact base-change identification are conclusions. -/ |
| 131 | theorem effective_smooth_proper_cocycle_descent |
| 132 | {K : Type u} [Field K] [Infinite K] |
| 133 | {B T X : Scheme.{u}} (u : T ⟶ B) |
| 134 | [IsFinite u] [Flat u] [Surjective u] [LocallyOfFinitePresentation u] |
| 135 | (a : X ⟶ T) [Smooth a] [IsProper a] [GeometricallyConnected a] |
| 136 | (t : DescentCocycle.overlap u a ⟶ X) |
| 137 | (ht : t ≫ a = DescentCocycle.base u a) |
| 138 | (hnorm : DescentCocycle.diagonal u a ≫ t = 𝟙 X) |
| 139 | (hcocycle : DescentCocycle.composition u a t ht ≫ t = |
| 140 | pullback.snd t (DescentCocycle.source u a) ≫ t) |
| 141 | (n : ℕ) (i : X ⟶ ArithmeticGeometry.Models.SpreadingOut.Projective.Construction.ProjectiveConstruction.projectiveSpace (K := K) n) |
| 142 | [IsClosedImmersion i] : |
| 143 | ∃ (Q : Over B) (q : X ⟶ Q.left), |
| 144 | IsPullback a q u Q.hom ∧ |
| 145 | Nonempty (Over.mk a ≅ (Over.pullback u).obj Q) ∧ |
| 146 | Smooth Q.hom ∧ IsProper Q.hom ∧ GeometricallyConnected Q.hom ∧ |
| 147 | IsFinite q ∧ Flat q ∧ LocallyOfFinitePresentation q ∧ Surjective q ∧ |
| 148 | IsKernelPair q (DescentCocycle.source u a) t ∧ |
| 149 | ∀ (Y : Scheme.{u}) (f : X ⟶ Y), |
| 150 | DescentCocycle.source u a ≫ f = t ≫ f → |
| 151 | ∃! g : Q.left ⟶ Y, q ≫ g = f := by |
| 152 | obtain ⟨Q, q, hcart, hfin, hflat, hfp, hsurj, hk, hdesc⟩ := |
| 153 | EffectiveFiniteDescent.effective_projective_finite_descent u a (DescentCocycle.base u a) |
| 154 | (DescentCocycle.source u a) t (IsPullback.of_hasPullback (a ≫ u) u).flip ht |
| 155 | (DescentCocycle.equivalenceRelation u a t ht hnorm hcocycle) n i |
| 156 | have hs : Smooth Q.hom := MorphismProperty.of_isPullback_of_descendsAlong |
| 157 | (P := @Smooth) (Q := @Surjective ⊓ @Flat ⊓ @QuasiCompact) hcart |
| 158 | ⟨⟨inferInstance, inferInstance⟩, inferInstance⟩ inferInstance |
| 159 | exact ⟨Q, q, hcart, ⟨descentBaseChangeIso hcart⟩, hs, |
| 160 | Descent.proper_of_faithfully_flat_cartesian hcart, |
| 161 | ArithmeticGeometry.Models.SpreadingOut.GeometricDescent.Construction.geometricallyConnected_of_surjective_cartesian hcart.flip, |
| 162 | hfin, hflat, hfp, hsurj, hk, hdesc⟩ |
| 163 | |
| 164 | end |
| 165 | |
| 166 | end OAI.AlgebraicGeometry.PELModuli.IntegralModel.DescentCocycleChange |