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.AffineOpen.NormalizedTrace |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.RestrictedGlobalUnit |
| 3 | import OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Module.BasisIsomorphisms |
| 4 | |
| 5 | /-! # Basis Structure Trace -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.BasisStructureTrace |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Compatible algebra traces on a basis of finite free affine opens glue to a structure-sheaf retraction. -/ |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 13 | universe u v |
| 14 | |
| 15 | variable {X Y : Scheme.{u}} (f : Y ⟶ X) {ι : Type v} (B : ι → X.Opens) |
| 16 | variable (hA : ∀ i, IsAffineOpen (B i)) (hY : ∀ i, IsAffineOpen (f ⁻¹ᵁ B i)) |
| 17 | variable {n : ℕ} |
| 18 | variable (b : ∀ i, @Module.Basis (Fin n) Γ(X, B i) Γ(Y, f ⁻¹ᵁ B i) _ _ (f.app (B i)).hom.toModule) |
| 19 | variable (u : Γ(X, ⊤)ˣ) |
| 20 | |
| 21 | def affineBasisStructureTraceData : |
| 22 | HilbertConstruction.Module.MapBasisExtension.ModuleBasisMap B ((Scheme.Modules.pushforward f).obj (Line.Bundles.structureModule Y)) (Line.Bundles.structureModule X) where |
| 23 | app i := AffineOpen.NormalizedTrace.affineOpenNormalizedTrace f (B i) (RestrictedGlobalUnit.restrictedGlobalUnit u (B i)) |
| 24 | naturality i j h s := by |
| 25 | have ht := AffineOpen.NormalizedTrace.affineOpenNormalizedTrace_restrict f h (hA j) (hA i) (hY j) |
| 26 | (b j) (RestrictedGlobalUnit.restrictedGlobalUnit u (B j)) s |
| 27 | rw [RestrictedGlobalUnit.restrictedGlobalUnit_restrict u h] at ht |
| 28 | exact ht |
| 29 | |
| 30 | variable (hB : Opens.IsBasis (Set.range B)) |
| 31 | |
| 32 | def affineBasisStructureTrace : |
| 33 | (Scheme.Modules.pushforward f).obj (Line.Bundles.structureModule Y) ⟶ Line.Bundles.structureModule X := |
| 34 | (affineBasisStructureTraceData f B hA hY b u).extend hB |
| 35 | |
| 36 | theorem affineBasisStructureTrace_unit (hu : (u : Γ(X, ⊤)) = n) : |
| 37 | SheafOfModules.unitToPushforwardObjUnit f.toRingCatSheafHom ≫ |
| 38 | affineBasisStructureTrace f B hA hY b u hB = 𝟙 (Line.Bundles.structureModule X) := by |
| 39 | apply HilbertConstruction.Module.BasisIsomorphisms.moduleMap_eq_of_basis B hB |
| 40 | intro i |
| 41 | apply ConcreteCategory.hom_ext |
| 42 | intro r |
| 43 | change Γ(X, B i) at r |
| 44 | change ((affineBasisStructureTraceData f B hA hY b u).extend hB).app (B i) ((f.app (B i)) r) = r |
| 45 | refine ((affineBasisStructureTraceData f B hA hY b u).extend_app hB i ((f.app (B i)) r)).trans ?_ |
| 46 | exact @Normalized.AlgebraTrace.normalizedAlgebraTrace_algebraMap Γ(X, B i) Γ(Y, f ⁻¹ᵁ B i) |
| 47 | _ _ (f.app (B i)).hom.toAlgebra n (b i) (RestrictedGlobalUnit.restrictedGlobalUnit u (B i)) |
| 48 | (RestrictedGlobalUnit.restrictedGlobalUnit_val u hu (B i)) r |
| 49 | |
| 50 | end |
| 51 | |
| 52 | end OAI.AlgebraicGeometry.AbelianModuli.HilbertConstruction.Affine.BasisStructureTrace |