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.Module.IsoPresheaf |
| 2 | import Mathlib.CategoryTheory.Sites.IsSheafFor |
| 3 | |
| 4 | /-! # Iso Sheaf Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.IsoSheafGluing |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Isomorphisms glue whenever the two maps and the two endomorphism presheaves satisfy descent. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {X : Scheme.{u}} (M N : X.Modules) (T : Over X) (R : Presieve T) |
| 17 | |
| 18 | theorem moduleMap_comp_eq_id_of_local |
| 19 | (hM : Presieve.IsSeparatedFor (HomPresheaf.moduleHomPresheaf M M) R) |
| 20 | (φ : (Scheme.Modules.pullback T.hom).obj M ⟶ (Scheme.Modules.pullback T.hom).obj N) |
| 21 | (ψ : (Scheme.Modules.pullback T.hom).obj N ⟶ (Scheme.Modules.pullback T.hom).obj M) |
| 22 | (h : ∀ {Y : Over X} (f : Y ⟶ T), R f → |
| 23 | MapSlicePullback.moduleMapPullbackAlong f φ ≫ MapSlicePullback.moduleMapPullbackAlong f ψ = 𝟙 _) : φ ≫ ψ = 𝟙 _ := by |
| 24 | apply hM.ext |
| 25 | intro Y f hf |
| 26 | change MapSlicePullback.moduleMapPullbackAlong f (φ ≫ ψ) = MapSlicePullback.moduleMapPullbackAlong f (𝟙 _) |
| 27 | rw [MapSliceComposition.moduleMapPullbackAlong_map_comp, IsoSlicePullback.moduleMapPullbackAlong_map_id] |
| 28 | exact h f hf |
| 29 | |
| 30 | theorem moduleIsoFamily_hom_inv |
| 31 | (hM : Presieve.IsSeparatedFor (HomPresheaf.moduleHomPresheaf M M) R) |
| 32 | (s : Presieve.FamilyOfElements (IsoPresheaf.moduleIsoPresheaf M N) R) |
| 33 | (φ : (HomPresheaf.moduleHomPresheaf M N).obj (.op T)) (ψ : (HomPresheaf.moduleHomPresheaf N M).obj (.op T)) |
| 34 | (hφ : (s.map (IsoPresheaf.moduleIsoHom M N)).IsAmalgamation φ) |
| 35 | (hψ : (s.map (IsoPresheaf.moduleIsoInv M N)).IsAmalgamation ψ) : φ ≫ ψ = 𝟙 _ := by |
| 36 | apply moduleMap_comp_eq_id_of_local M N T R hM |
| 37 | intro Y f hf |
| 38 | have hφf : MapSlicePullback.moduleMapPullbackAlong f φ = (s f hf).hom := hφ f hf |
| 39 | have hψf : MapSlicePullback.moduleMapPullbackAlong f ψ = (s f hf).inv := hψ f hf |
| 40 | exact (congrArg₂ (fun a b => a ≫ b) hφf hψf).trans (s f hf).hom_inv_id |
| 41 | |
| 42 | theorem moduleIsoFamily_inv_hom |
| 43 | (hN : Presieve.IsSeparatedFor (HomPresheaf.moduleHomPresheaf N N) R) |
| 44 | (s : Presieve.FamilyOfElements (IsoPresheaf.moduleIsoPresheaf M N) R) |
| 45 | (φ : (HomPresheaf.moduleHomPresheaf M N).obj (.op T)) (ψ : (HomPresheaf.moduleHomPresheaf N M).obj (.op T)) |
| 46 | (hφ : (s.map (IsoPresheaf.moduleIsoHom M N)).IsAmalgamation φ) |
| 47 | (hψ : (s.map (IsoPresheaf.moduleIsoInv M N)).IsAmalgamation ψ) : ψ ≫ φ = 𝟙 _ := by |
| 48 | apply moduleMap_comp_eq_id_of_local N M T R hN |
| 49 | intro Y f hf |
| 50 | have hφf : MapSlicePullback.moduleMapPullbackAlong f φ = (s f hf).hom := hφ f hf |
| 51 | have hψf : MapSlicePullback.moduleMapPullbackAlong f ψ = (s f hf).inv := hψ f hf |
| 52 | exact (congrArg₂ (fun a b => a ≫ b) hψf hφf).trans (s f hf).inv_hom_id |
| 53 | |
| 54 | theorem moduleIso_isSheafFor |
| 55 | (hMN : Presieve.IsSheafFor (HomPresheaf.moduleHomPresheaf M N) R) |
| 56 | (hNM : Presieve.IsSheafFor (HomPresheaf.moduleHomPresheaf N M) R) |
| 57 | (hMM : Presieve.IsSeparatedFor (HomPresheaf.moduleHomPresheaf M M) R) |
| 58 | (hNN : Presieve.IsSeparatedFor (HomPresheaf.moduleHomPresheaf N N) R) : |
| 59 | Presieve.IsSheafFor (IsoPresheaf.moduleIsoPresheaf M N) R := by |
| 60 | intro s hs |
| 61 | obtain ⟨φ, hφ, hφu⟩ := hMN (s.map (IsoPresheaf.moduleIsoHom M N)) (hs.map (IsoPresheaf.moduleIsoHom M N)) |
| 62 | obtain ⟨ψ, hψ, _⟩ := hNM (s.map (IsoPresheaf.moduleIsoInv M N)) (hs.map (IsoPresheaf.moduleIsoInv M N)) |
| 63 | change (Scheme.Modules.pullback T.hom).obj M ⟶ (Scheme.Modules.pullback T.hom).obj N at φ |
| 64 | change (Scheme.Modules.pullback T.hom).obj N ⟶ (Scheme.Modules.pullback T.hom).obj M at ψ |
| 65 | have hφψ := moduleIsoFamily_hom_inv M N T R hMM s φ ψ hφ hψ |
| 66 | have hψφ := moduleIsoFamily_inv_hom M N T R hNN s φ ψ hφ hψ |
| 67 | let e : (Scheme.Modules.pullback T.hom).obj M ≅ (Scheme.Modules.pullback T.hom).obj N := |
| 68 | ⟨φ, ψ, hφψ, hψφ⟩ |
| 69 | refine ⟨e, ?_, ?_⟩ |
| 70 | · intro Y f hf |
| 71 | apply Iso.ext |
| 72 | exact hφ f hf |
| 73 | · intro e' he' |
| 74 | apply Iso.ext |
| 75 | apply hφu |
| 76 | intro Y f hf |
| 77 | exact congrArg Iso.hom (he' f hf) |
| 78 | |
| 79 | end |
| 80 | |
| 81 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.IsoSheafGluing |