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.NumberTheory.PadicHodge.IntegralComparison.Incoming.CoverFamily |
| 2 | |
| 3 | /-! # Cover Gluing -/ |
| 4 | |
| 5 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.CoverGluing |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! |
| 10 | # IntegralComparison: gluing compatible sections across a covering family of incoming full subsites |
| 11 | -/ |
| 12 | |
| 13 | open _root_.CategoryTheory Opposite |
| 14 | |
| 15 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.SectionRestriction OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.CoverFamily.Family |
| 16 | |
| 17 | universe u v w z |
| 18 | |
| 19 | variable {C : Type u} [Category.{v} C] (R : Type w) [CommRing R] |
| 20 | (M : ModuleCat.{w} R) {ι : Type z} (P : ι → ObjectProperty C) |
| 21 | (hP : ∀ i {U V : C}, (U ⟶ V) → P i V → P i U) |
| 22 | (Q : ObjectProperty C) (J : GrothendieckTopology C) |
| 23 | (hcover : ∀ T, Q T → CoverFamily.Family.sieve P hP T ∈ J T) |
| 24 | (F : Sheaf J (ModuleCat.{w} R)) (a : ∀ i, SectionRestriction.Sections R M (P i) F.obj) |
| 25 | (ha : CoverFamily.Family.Compatible R M P F.obj a) |
| 26 | |
| 27 | def glueAt (T : C) (hT : Q T) : M ⟶ F.obj.obj (op T) := |
| 28 | (F.property M (CoverFamily.Family.sieve P hP T) (hcover T hT)).amalgamate |
| 29 | (CoverFamily.Family.family R M P hP F.obj a T) (CoverFamily.Family.family_compatible R M P hP F.obj a ha T) |
| 30 | |
| 31 | theorem glueAt_restrict (T : C) (hT : Q T) {U : C} (α : U ⟶ T) (hU : ∃ i, P i U) : |
| 32 | glueAt R M P hP Q J hcover F a ha T hT ≫ F.obj.map α.op = CoverFamily.Family.value R M P F.obj a U hU := |
| 33 | (F.property M (CoverFamily.Family.sieve P hP T) (hcover T hT)).valid_glue |
| 34 | (CoverFamily.Family.family_compatible R M P hP F.obj a ha T) α hU |
| 35 | |
| 36 | theorem glueAt_natural {U T : C} (α : U ⟶ T) (hU : Q U) (hT : Q T) : |
| 37 | glueAt R M P hP Q J hcover F a ha T hT ≫ F.obj.map α.op = |
| 38 | glueAt R M P hP Q J hcover F a ha U hU := by |
| 39 | apply (F.property M (CoverFamily.Family.sieve P hP U) (hcover U hU)).isSeparatedFor.ext |
| 40 | intro W β hβ |
| 41 | change (glueAt R M P hP Q J hcover F a ha T hT ≫ F.obj.map α.op) ≫ F.obj.map β.op = |
| 42 | glueAt R M P hP Q J hcover F a ha U hU ≫ F.obj.map β.op |
| 43 | rw [Category.assoc, ← F.obj.map_comp, ← op_comp] |
| 44 | exact (glueAt_restrict R M P hP Q J hcover F a ha T hT (β ≫ α) hβ).trans |
| 45 | (glueAt_restrict R M P hP Q J hcover F a ha U hU β hβ).symm |
| 46 | |
| 47 | def glue : SectionRestriction.Sections R M Q F.obj where |
| 48 | app U := glueAt R M P hP Q J hcover F a ha U.unop.obj U.unop.property |
| 49 | naturality U V α := |
| 50 | (Category.id_comp _).trans |
| 51 | (glueAt_natural R M P hP Q J hcover F a ha α.unop.hom V.unop.property U.unop.property).symm |
| 52 | |
| 53 | theorem glueAt_inside (T : C) (hT : Q T) (i : ι) (hi : P i T) : |
| 54 | glueAt R M P hP Q J hcover F a ha T hT = (a i).app (op ⟨T, hi⟩) := by |
| 55 | have h := glueAt_restrict R M P hP Q J hcover F a ha T hT (𝟙 T) ⟨i, hi⟩ |
| 56 | rw [op_id, F.obj.map_id, Category.comp_id] at h |
| 57 | exact h.trans (CoverFamily.Family.value_eq R M P F.obj a ha T ⟨i, hi⟩ i hi) |
| 58 | |
| 59 | theorem glue_restrict (hPQ : ∀ i, P i ≤ Q) (i : ι) : |
| 60 | SectionRestriction.restrict R M (P i) Q F.obj (hPQ i) (glue R M P hP Q J hcover F a ha) = a i := by |
| 61 | apply NatTrans.ext |
| 62 | funext U |
| 63 | exact glueAt_inside R M P hP Q J hcover F a ha U.unop.obj |
| 64 | (hPQ i _ U.unop.property) i U.unop.property |
| 65 | |
| 66 | end |
| 67 | |
| 68 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Incoming.CoverGluing |