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.AbelianModuli.HilbertConstruction.Family.IsoFunctor |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Family.MorphismSheaf |
| 3 | |
| 4 | /-! # Iso Sheaf -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Family.IsoSheaf |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual isomorphisms between two fixed family pullbacks satisfy descent for every subcanonical topology. Forward maps and inverse maps glue, and their inverse equations are checked locally. -/ |
| 11 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 12 | universe u |
| 13 | |
| 14 | variable {S : Scheme.{u}} (A B : Over S) (T : Over S) (R : Presieve T) |
| 15 | |
| 16 | theorem familyMorphism_comp_eq_id_of_local |
| 17 | (hA : Presieve.IsSeparatedFor (Geometric.MorphismFunctor.geometricFamilyMorphismFunctor A A) R) |
| 18 | (p : (Over.pullback T.hom).obj A ⟶ (Over.pullback T.hom).obj B) |
| 19 | (q : (Over.pullback T.hom).obj B ⟶ (Over.pullback T.hom).obj A) |
| 20 | (h : ∀ {U : Over S} (c : U ⟶ T), R c → |
| 21 | Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange c p ≫ Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange c q = 𝟙 _) : |
| 22 | p ≫ q = 𝟙 _ := by |
| 23 | apply hA.ext |
| 24 | intro U c hc |
| 25 | change Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange c (p ≫ q) = Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange c (𝟙 _) |
| 26 | rw [Geometric.MorphismCompositionLaws.geometricFamilyMorphismBaseChange_map_comp, IsoFunctor.geometricFamilyMorphismBaseChange_map_id] |
| 27 | exact h c hc |
| 28 | |
| 29 | theorem familyIso_isSheafFor |
| 30 | (hAB : Presieve.IsSheafFor (Geometric.MorphismFunctor.geometricFamilyMorphismFunctor A B) R) |
| 31 | (hBA : Presieve.IsSheafFor (Geometric.MorphismFunctor.geometricFamilyMorphismFunctor B A) R) |
| 32 | (hAA : Presieve.IsSeparatedFor (Geometric.MorphismFunctor.geometricFamilyMorphismFunctor A A) R) |
| 33 | (hBB : Presieve.IsSeparatedFor (Geometric.MorphismFunctor.geometricFamilyMorphismFunctor B B) R) : |
| 34 | Presieve.IsSheafFor (IsoFunctor.familyIsoFunctor A B) R := by |
| 35 | intro s hs |
| 36 | obtain ⟨p, hp, hpu⟩ := hAB (s.map (IsoFunctor.familyIsoHom A B)) (hs.map (IsoFunctor.familyIsoHom A B)) |
| 37 | obtain ⟨q, hq, _⟩ := hBA (s.map (IsoFunctor.familyIsoInv A B)) (hs.map (IsoFunctor.familyIsoInv A B)) |
| 38 | change (Over.pullback T.hom).obj A ⟶ (Over.pullback T.hom).obj B at p |
| 39 | change (Over.pullback T.hom).obj B ⟶ (Over.pullback T.hom).obj A at q |
| 40 | have hpq : p ≫ q = 𝟙 _ := by |
| 41 | apply familyMorphism_comp_eq_id_of_local A B T R hAA |
| 42 | intro U c hc |
| 43 | have hp' : Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange c p = (s c hc).hom := hp c hc |
| 44 | have hq' : Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange c q = (s c hc).inv := hq c hc |
| 45 | rw [hp', hq'] |
| 46 | exact (s c hc).hom_inv_id |
| 47 | have hqp : q ≫ p = 𝟙 _ := by |
| 48 | apply familyMorphism_comp_eq_id_of_local B A T R hBB |
| 49 | intro U c hc |
| 50 | have hp' : Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange c p = (s c hc).hom := hp c hc |
| 51 | have hq' : Geometric.MorphismBaseChange.geometricFamilyMorphismBaseChange c q = (s c hc).inv := hq c hc |
| 52 | rw [hp', hq'] |
| 53 | exact (s c hc).inv_hom_id |
| 54 | refine ⟨⟨p, q, hpq, hqp⟩, ?_, ?_⟩ |
| 55 | · intro U c hc |
| 56 | apply Iso.ext |
| 57 | exact hp c hc |
| 58 | · intro e he |
| 59 | apply Iso.ext |
| 60 | apply hpu |
| 61 | intro U c hc |
| 62 | exact congrArg Iso.hom (he c hc) |
| 63 | |
| 64 | theorem familyIsoFunctor_isSheaf_subcanonical |
| 65 | (J : GrothendieckTopology Scheme.{u}) [J.Subcanonical] : |
| 66 | Presheaf.IsSheaf (J.over S) (IsoFunctor.familyIsoFunctor A B) := by |
| 67 | have h (X Y : Over S) (T : Over S) (R : Sieve T) (hR : R ∈ (J.over S) T) : |
| 68 | Presieve.IsSheafFor (Geometric.MorphismFunctor.geometricFamilyMorphismFunctor X Y) R.arrows := |
| 69 | (isSheaf_iff_isSheaf_of_type _ _).mp |
| 70 | (MorphismSheaf.geometricFamilyMorphismFunctor_isSheaf_subcanonical X Y J) R hR |
| 71 | apply (isSheaf_iff_isSheaf_of_type _ _).mpr |
| 72 | intro T R hR |
| 73 | exact familyIso_isSheafFor A B T R.arrows (h A B T R hR) (h B A T R hR) |
| 74 | (h A A T R hR).isSeparatedFor (h B B T R hR).isSeparatedFor |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Family.IsoSheaf |