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 |
| 2 | |
| 3 | /-! # Site Lifts -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.SiteLifts |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: continuity from lifts of incoming morphisms |
| 11 | |
| 12 | A functor which lifts incoming arrows up to isomorphism and is full on |
| 13 | commuting triangles preserves the pullback operation on sieves. Hence |
| 14 | preservation of generating covering families suffices for continuity. |
| 15 | These categorical conditions are verified for crystalline postcomposition |
| 16 | in the geometric application. |
| 17 | -/ |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.CategoryTheory.Limits |
| 20 | |
| 21 | universe u v u' v' w |
| 22 | |
| 23 | variable {C : Type u} [Category.{v} C] {D : Type u'} [Category.{v'} D] |
| 24 | variable (F : C ⥤ D) |
| 25 | |
| 26 | structure IncomingLifts where |
| 27 | object {U : C} {V : D} (α : V ⟶ F.obj U) : C |
| 28 | iso {U : C} {V : D} (α : V ⟶ F.obj U) : F.obj (object α) ≅ V |
| 29 | hom {U : C} {V : D} (α : V ⟶ F.obj U) : object α ⟶ U |
| 30 | map_hom {U : C} {V : D} (α : V ⟶ F.obj U) : F.map (hom α) = (iso α).hom ≫ α |
| 31 | fullTriangle {U V W : C} (a : U ⟶ W) (b : V ⟶ W) |
| 32 | (c : F.obj U ⟶ F.obj V) (h : c ≫ F.map b = F.map a) : |
| 33 | ∃ d : U ⟶ V, F.map d = c ∧ d ≫ b = a |
| 34 | |
| 35 | variable {F} (L : IncomingLifts F) |
| 36 | |
| 37 | namespace IncomingLifts |
| 38 | |
| 39 | include L |
| 40 | |
| 41 | lemma pushforward_pullback {U V : C} (a : V ⟶ U) (S : Sieve U) : |
| 42 | (S.pullback a).functorPushforward F = (S.functorPushforward F).pullback (F.map a) := by |
| 43 | refine le_antisymm (Sieve.functorPushforward_pullback_le F a S) ?_ |
| 44 | intro Z α hα |
| 45 | obtain ⟨W, b, c, hb, h⟩ := hα |
| 46 | have he : ((L.iso α).hom ≫ c) ≫ F.map b = F.map (L.hom α ≫ a) := by |
| 47 | rw [F.map_comp, L.map_hom] |
| 48 | simp only [Category.assoc] |
| 49 | rw [← h] |
| 50 | obtain ⟨d, _, hd⟩ := L.fullTriangle (L.hom α ≫ a) b ((L.iso α).hom ≫ c) he |
| 51 | refine ⟨L.object α, L.hom α, (L.iso α).inv, ?_, ?_⟩ |
| 52 | · change S (L.hom α ≫ a) |
| 53 | rw [← hd] |
| 54 | exact S.downward_closed hb d |
| 55 | · rw [L.map_hom] |
| 56 | simp |
| 57 | |
| 58 | lemma preserves_generated_topology (J : Precoverage C) (K : Precoverage D) |
| 59 | (h : J ≤ K.comap F) : CoverPreserving J.toGrothendieck K.toGrothendieck F where |
| 60 | cover_preserve {U S} hS := by |
| 61 | induction hS with |
| 62 | | of U R hR => |
| 63 | rw [← Sieve.generate_map_eq_functorPushforward] |
| 64 | exact K.generate_mem_toGrothendieck (h U hR) |
| 65 | | top U => |
| 66 | rw [Sieve.functorPushforward_top] |
| 67 | exact K.toGrothendieck.top_mem _ |
| 68 | | pullback U S hS V a ih => |
| 69 | rw [L.pushforward_pullback] |
| 70 | exact K.toGrothendieck.pullback_stable _ ih |
| 71 | | transitive U S R hS hR ihS ihR => |
| 72 | apply K.toGrothendieck.transitive ihS |
| 73 | intro V a ha |
| 74 | obtain ⟨W, b, c, hb, rfl⟩ := ha |
| 75 | rw [Sieve.pullback_comp] |
| 76 | apply K.toGrothendieck.pullback_stable |
| 77 | rw [← L.pushforward_pullback] |
| 78 | exact ihR hb |
| 79 | |
| 80 | lemma compatiblePreserving (K : GrothendieckTopology D) : CompatiblePreserving.{w} K F where |
| 81 | compatible ℱ {Z T x} hx {Y₁ Y₂ W} a b {g₁ g₂} hg₁ hg₂ he := by |
| 82 | let α := a ≫ F.map g₁ |
| 83 | let e := L.iso α |
| 84 | let t := L.hom α |
| 85 | have ht : F.map t = e.hom ≫ α := L.map_hom α |
| 86 | obtain ⟨a', ha', hag₁⟩ := L.fullTriangle t g₁ (e.hom ≫ a) (by |
| 87 | rw [ht]; exact Category.assoc _ _ _) |
| 88 | obtain ⟨b', hb', hbg₂⟩ := L.fullTriangle t g₂ (e.hom ≫ b) (by |
| 89 | rw [ht, Category.assoc, ← he]) |
| 90 | apply (ℱ.obj.mapIso e.op).toEquiv.injective |
| 91 | have hc := hx a' b' hg₁ hg₂ (hag₁.trans hbg₂.symm) |
| 92 | change ℱ.obj.map (F.map a').op (x g₁ hg₁) = |
| 93 | ℱ.obj.map (F.map b').op (x g₂ hg₂) at hc |
| 94 | rw [ha', hb'] at hc |
| 95 | simpa using hc |
| 96 | |
| 97 | theorem continuous (J : Precoverage C) (K : Precoverage D) (h : J ≤ K.comap F) : |
| 98 | F.IsContinuous J.toGrothendieck K.toGrothendieck := |
| 99 | Functor.isContinuous_of_coverPreserving (L.compatiblePreserving K.toGrothendieck) |
| 100 | (L.preserves_generated_topology J K h) |
| 101 | |
| 102 | end IncomingLifts |
| 103 | |
| 104 | end |
| 105 | |
| 106 | end OAI.NumberTheory.PadicHodge.IntegralComparison.SiteLifts |