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.AbelianScheme.IsogenyQuotient.OpenPullbackMapGluing |
| 2 | |
| 3 | /-! # Basis Pullback Map Gluing -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.BasisPullbackMapGluing.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! Maps on a basis of opens glue from their actual refinement equations. |
| 10 | This allows norm constructions to use affine opens only. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | |
| 14 | universe u v |
| 15 | variable {X : Scheme.{u}} {M N : X.Modules} {ι : Type v} |
| 16 | |
| 17 | def compatibleBasisPullbackMaps (B : ι → X.Opens) |
| 18 | (a : ∀ i, (Scheme.Modules.pullback (B i).ι).obj M ⟶ |
| 19 | (Scheme.Modules.pullback (B i).ι).obj N) |
| 20 | (ha : ∀ i j (h : B i ≤ B j), |
| 21 | OpenPullbackMapGluing.Construction.refinePullbackMapTo (X.homOfLE h) (B j).ι (B i).ι (X.homOfLE_ι h) (a j) = a i) : |
| 22 | AbelianModuli.HilbertConstruction.Module.MapBasisExtension.ModuleBasisMap B M N where |
| 23 | app i := AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.openPullbackModuleValue (B i).ι (a i) (B i) (by rw [(B i).opensRange_ι]) |
| 24 | naturality i j h s := by |
| 25 | have hi : B i ≤ (B i).ι.opensRange := by rw [(B i).opensRange_ι] |
| 26 | have hij : B i ≤ (B j).ι.opensRange := by rwa [(B j).opensRange_ι] |
| 27 | have hj : B j ≤ (B j).ι.opensRange := by rw [(B j).opensRange_ι] |
| 28 | have he : AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.openPullbackModuleValue (B i).ι (a i) (B i) hi = |
| 29 | AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.openPullbackModuleValue (B j).ι (a j) (B i) hij := |
| 30 | (congrArg (fun b => AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.openPullbackModuleValue (B i).ι b (B i) hi) (ha i j h)).symm.trans |
| 31 | (OpenPullbackMapGluing.Construction.openPullbackModuleValue_refineTo (X.homOfLE h) (B j).ι (B i).ι |
| 32 | (X.homOfLE_ι h) (a j) (B i) hi hij) |
| 33 | rw [he] |
| 34 | rw [← AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.openPullbackModuleValue_restriction (B j).ι (a j) (B i) hij, |
| 35 | ← AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.openPullbackModuleValue_restriction (B j).ι (a j) (B j) hj] |
| 36 | exact AbelianModuli.HilbertConstruction.OpenModule.MapValues.openModuleMapValue_natural (B j).ι |
| 37 | (AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.pullbackModuleRestrictionMap (B j).ι (a j)) h hj hij s |
| 38 | |
| 39 | theorem basisPullbackMaps_extend_app (B : ι → X.Opens) (hB : Opens.IsBasis (Set.range B)) |
| 40 | (a : ∀ i, (Scheme.Modules.pullback (B i).ι).obj M ⟶ |
| 41 | (Scheme.Modules.pullback (B i).ι).obj N) |
| 42 | (ha : ∀ i j (h : B i ≤ B j), |
| 43 | OpenPullbackMapGluing.Construction.refinePullbackMapTo (X.homOfLE h) (B j).ι (B i).ι (X.homOfLE_ι h) (a j) = a i) |
| 44 | (i : ι) (s : Γ(M, B i)) : |
| 45 | ((compatibleBasisPullbackMaps B a ha).extend hB).app (B i) s = |
| 46 | AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.openPullbackModuleValue (B i).ι (a i) (B i) (by rw [(B i).opensRange_ι]) s := |
| 47 | (compatibleBasisPullbackMaps B a ha).extend_app hB i s |
| 48 | |
| 49 | theorem openModuleMapValue_injective_on_basis {Y : Scheme.{u}} |
| 50 | (f : Y ⟶ X) [IsOpenImmersion f] (B : ι → X.Opens) |
| 51 | (hB : Opens.IsBasis (Set.range B)) (φ ψ : M.restrict f ⟶ N.restrict f) |
| 52 | (h : ∀ i (hi : B i ≤ f.opensRange), |
| 53 | AbelianModuli.HilbertConstruction.OpenModule.MapValues.openModuleMapValue f φ (B i) hi = AbelianModuli.HilbertConstruction.OpenModule.MapValues.openModuleMapValue f ψ (B i) hi) : φ = ψ := by |
| 54 | apply AbelianModuli.HilbertConstruction.OpenModule.MapRecovery.openModuleMapValue_injective f φ ψ |
| 55 | intro U hU |
| 56 | apply LinearMap.ext |
| 57 | intro s |
| 58 | apply N.isSheaf.section_ext |
| 59 | intro x hx |
| 60 | obtain ⟨V, ⟨i, rfl⟩, hxi, hi⟩ := Opens.isBasis_iff_nbhd.mp hB hx |
| 61 | refine ⟨B i, hi, hxi, ?_⟩ |
| 62 | exact (AbelianModuli.HilbertConstruction.OpenModule.MapValues.openModuleMapValue_natural f φ hi hU (hi.trans hU) s).symm.trans |
| 63 | ((LinearMap.congr_fun (h i (hi.trans hU)) _).trans |
| 64 | (AbelianModuli.HilbertConstruction.OpenModule.MapValues.openModuleMapValue_natural f ψ hi hU (hi.trans hU) s)) |
| 65 | |
| 66 | theorem basisPullbackMaps_extend_pullback (B : ι → X.Opens) (hB : Opens.IsBasis (Set.range B)) |
| 67 | (a : ∀ i, (Scheme.Modules.pullback (B i).ι).obj M ⟶ |
| 68 | (Scheme.Modules.pullback (B i).ι).obj N) |
| 69 | (ha : ∀ i j (h : B i ≤ B j), |
| 70 | OpenPullbackMapGluing.Construction.refinePullbackMapTo (X.homOfLE h) (B j).ι (B i).ι (X.homOfLE_ι h) (a j) = a i) |
| 71 | (j : ι) : |
| 72 | (Scheme.Modules.pullback (B j).ι).map ((compatibleBasisPullbackMaps B a ha).extend hB) = a j := by |
| 73 | let D := compatibleBasisPullbackMaps B a ha |
| 74 | have hr : (Scheme.Modules.restrictFunctor (B j).ι).map (D.extend hB) = |
| 75 | AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.pullbackModuleRestrictionMap (B j).ι (a j) := by |
| 76 | apply openModuleMapValue_injective_on_basis (B j).ι B hB |
| 77 | intro i hi |
| 78 | have hij : B i ≤ B j := by simpa only [(B j).opensRange_ι] using hi |
| 79 | have hiR : B i ≤ (B i).ι.opensRange := by rw [(B i).opensRange_ι] |
| 80 | rw [AbelianModuli.HilbertConstruction.OpenModule.MapValues.openModuleMapValue_from_global, AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.openPullbackModuleValue_restriction] |
| 81 | apply LinearMap.ext |
| 82 | intro s |
| 83 | exact (D.extend_app hB i s).trans |
| 84 | (LinearMap.congr_fun |
| 85 | ((congrArg (fun a => AbelianModuli.HilbertConstruction.OpenPullback.ModuleValues.openPullbackModuleValue (B i).ι a (B i) hiR) |
| 86 | (ha i j hij)).symm.trans |
| 87 | (OpenPullbackMapGluing.Construction.openPullbackModuleValue_refineTo (X.homOfLE hij) (B j).ι (B i).ι |
| 88 | (X.homOfLE_ι hij) (a j) (B i) hiR hi)) s) |
| 89 | let c := Scheme.Modules.restrictFunctorIsoPullback (B j).ι |
| 90 | apply (cancel_epi (c.hom.app M)).mp |
| 91 | exact (c.hom.naturality (D.extend hB)).symm.trans |
| 92 | ((congrArg (fun a => a ≫ c.hom.app N) hr).trans (by |
| 93 | change (c.hom.app M ≫ a j ≫ c.inv.app N) ≫ c.hom.app N = _ |
| 94 | simp only [Category.assoc, Iso.inv_hom_id_app, Category.comp_id])) |
| 95 | |
| 96 | end |
| 97 | |
| 98 | end OAI.AlgebraicGeometry.AbelianScheme.IsogenyQuotient.BasisPullbackMapGluing.Construction |