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.SurjectiveScalarHom |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.HomPrincipalExt |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.BasisGluingNormalization |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Finite.PushforwardCoherence |
| 5 | |
| 6 | /-! # Internal Hom -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Closed.InternalHom |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! A closed immersion preserves the actual internal Hom out of a |
| 13 | quasicoherent module. The comparison is normalized by literal evaluation |
| 14 | on every affine ambient open. -/ |
| 15 | |
| 16 | open _root_.CategoryTheory _root_.AlgebraicGeometry Opposite |
| 17 | |
| 18 | set_option backward.defeqAttrib.useBackward true |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | |
| 22 | universe u |
| 23 | variable {X Y : Scheme.{u}} (i : X ⟶ Y) [IsClosedImmersion i] |
| 24 | (M N : X.Modules) [M.IsQuasicoherent] |
| 25 | |
| 26 | abbrev image (L : X.Modules) := (Scheme.Modules.pushforward i).obj L |
| 27 | abbrev source := image i (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M N) |
| 28 | abbrev target := ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule (image i M) (image i N) |
| 29 | |
| 30 | local instance : (image i M).IsQuasicoherent := |
| 31 | AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom i |
| 32 | |
| 33 | variable (U : Y.Opens) |
| 34 | |
| 35 | local instance algebra : Algebra Γ(Y, U) Γ(X, i ⁻¹ᵁ U) := (i.app U).hom.toAlgebra |
| 36 | local instance scalar (L : X.Modules) : Module Γ(Y, U) Γ(L, i ⁻¹ᵁ U) := |
| 37 | Module.compHom Γ(L, i ⁻¹ᵁ U) (i.app U).hom |
| 38 | local instance tower (L : X.Modules) : IsScalarTower Γ(Y, U) Γ(X, i ⁻¹ᵁ U) Γ(L, i ⁻¹ᵁ U) := |
| 39 | IsScalarTower.of_algebraMap_smul (fun _ _ => rfl) |
| 40 | |
| 41 | def sectionEquiv (hU : IsAffineOpen U) : Γ(source i M N, U) ≃ₗ[Γ(Y, U)] Γ(target i M N, U) := |
| 42 | ((Affine.HomSectionsEquiv.equiv (i ⁻¹ᵁ U) (hU.preimage i) M N).restrictScalars Γ(Y, U)).trans |
| 43 | ((SurjectiveScalarHom.equiv Γ(Y, U) Γ(X, i ⁻¹ᵁ U) (i.app_surjective U hU) |
| 44 | Γ(M, i ⁻¹ᵁ U) Γ(N, i ⁻¹ᵁ U)).trans |
| 45 | (Affine.HomSectionsEquiv.equiv U hU (image i M) (image i N)).symm) |
| 46 | |
| 47 | theorem evaluation (hU : IsAffineOpen U) (z : Γ(source i M N, U)) (m : Γ(image i M, U)) : |
| 48 | ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomEvaluation.Construction.sheafHomEvalAtOpen (image i M) (image i N) U (sectionEquiv i M N U hU z) m = |
| 49 | ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomEvaluation.Construction.sheafHomEvalAtOpen M N (i ⁻¹ᵁ U) z m := by |
| 50 | change Affine.HomSectionsEquiv.equiv U hU (image i M) (image i N) |
| 51 | ((Affine.HomSectionsEquiv.equiv U hU (image i M) (image i N)).symm _) m = _ |
| 52 | rw [LinearEquiv.apply_symm_apply] |
| 53 | rfl |
| 54 | |
| 55 | theorem principal (hU : IsAffineOpen U) (r : Γ(Y, U)) (z : Γ(source i M N, U)) : |
| 56 | sectionEquiv i M N (Y.basicOpen r) (hU.basicOpen r) |
| 57 | ((source i M N).presheaf.map (homOfLE (Y.basicOpen_le r)).op z) = |
| 58 | (target i M N).presheaf.map (homOfLE (Y.basicOpen_le r)).op (sectionEquiv i M N U hU z) := by |
| 59 | apply Affine.HomPrincipalExt.ext U hU r (image i M) (image i N) |
| 60 | intro m |
| 61 | rw [evaluation, Affine.HomEvaluation.restriction, evaluation] |
| 62 | exact Affine.HomEvaluation.restriction M N (i ⁻¹ᵁ U) |
| 63 | ((TopologicalSpace.Opens.map i.base).map (homOfLE (Y.basicOpen_le r))) z m |
| 64 | |
| 65 | omit [IsClosedImmersion i] [M.IsQuasicoherent] in |
| 66 | theorem affine_neighborhood (U : Y.Opens) (x : Y) (hx : x ∈ U) : |
| 67 | ∃ V, IsAffineOpen V ∧ True ∧ x ∈ V ∧ V ≤ U := by |
| 68 | obtain ⟨V, hV, hxV, hVU⟩ := TopologicalSpace.Opens.isBasis_iff_nbhd.mp Y.isBasis_affineOpens hx |
| 69 | exact ⟨V, hV, trivial, hxV, hVU⟩ |
| 70 | |
| 71 | def iso : source i M N ≅ target i M N := |
| 72 | Principal.BasisGluing.iso (source i M N) (target i M N) (fun _ => True) |
| 73 | (fun U hU _ => (sectionEquiv i M N U hU).toLinearMap) |
| 74 | (fun _ _ _ _ => trivial) (fun U hU _ r z => principal i M N U hU r z) |
| 75 | affine_neighborhood (fun U hU _ => (sectionEquiv i M N U hU).bijective) |
| 76 | |
| 77 | theorem iso_app (hU : IsAffineOpen U) (z : Γ(source i M N, U)) : |
| 78 | (iso i M N).hom.app U z = sectionEquiv i M N U hU z := |
| 79 | Principal.BasisGluingNormalization.iso_app (source i M N) (target i M N) (fun _ => True) |
| 80 | (fun U hU _ => (sectionEquiv i M N U hU).toLinearMap) |
| 81 | (fun _ _ _ _ => trivial) (fun U hU _ r z => principal i M N U hU r z) |
| 82 | affine_neighborhood (fun U hU _ => (sectionEquiv i M N U hU).bijective) U hU trivial z |
| 83 | |
| 84 | end |
| 85 | |
| 86 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Closed.InternalHom |