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.Affine.IntrinsicCoefficientHom |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.HomPrincipalExt |
| 3 | |
| 4 | /-! # Coefficient Hom Restriction -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.CoefficientHomRestriction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Native finite-projective coefficient purity, valued in the actual |
| 11 | internal Hom into one fixed scalar dualizing sheaf, respects principal |
| 12 | restriction. No scalar purity frames are used on either open. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | set_option backward.defeqAttrib.useBackward true |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | universe u |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom OAI.NumberTheory.PadicHodge.IntegralComparison.AffinePrincipal.Sections |
| 22 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Resolution.CohomologyMaps OAI.NumberTheory.PadicHodge.IntegralComparison.Quotient.CoefficientEvaluation |
| 23 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.CoefficientRestriction OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.IntrinsicCoefficientHom |
| 24 | |
| 25 | variable {X : Scheme.{u}} (U : X.Opens) (hU : IsAffineOpen U) |
| 26 | (N : X.Modules) [N.IsQuasicoherent] |
| 27 | (K L : ChainComplex X.Modules ℕ) |
| 28 | [∀ q, (K.X q).IsQuasicoherent] [∀ q, (L.X q).IsQuasicoherent] |
| 29 | [∀ q, ((Affine.LinearResolutionPurity.internalComplex N K).X q).IsQuasicoherent] |
| 30 | [∀ q, ((Affine.LinearResolutionPurity.internalComplex N L).X q).IsQuasicoherent] |
| 31 | (M M' : X.Modules) [M.IsQuasicoherent] [M'.IsQuasicoherent] |
| 32 | (ε : K ⟶ (ChainComplex.single₀ X.Modules).obj M) [QuasiIso ε] |
| 33 | (ε' : L ⟶ (ChainComplex.single₀ X.Modules).obj M') [QuasiIso ε'] |
| 34 | [∀ q, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X q))] |
| 35 | [∀ q, Projective ((AffineOpen.InternalHom.sections U hU).obj (L.X q))] |
| 36 | (Q : Type u) [CommRing Q] [Algebra Γ(X, U) Q] |
| 37 | (hQ : Function.Surjective (algebraMap Γ(X, U) Q)) |
| 38 | (C : Type u) [AddCommGroup C] [Module Q C] [Module Γ(X, U) C] |
| 39 | [IsScalarTower Γ(X, U) Q C] [Module.Finite Q C] [Module.Projective Q C] |
| 40 | (eM : (AffineOpen.InternalHom.sections U hU).obj M ≅ ModuleCat.of Γ(X, U) Q) |
| 41 | (eC : (AffineOpen.InternalHom.sections U hU).obj M' ≅ ModuleCat.of Γ(X, U) C) |
| 42 | (n : ℕ) |
| 43 | (V : X.Modules) [Module Q Γ(V, U)] [IsScalarTower Γ(X, U) Q Γ(V, U)] |
| 44 | (κ : (Affine.LinearResolutionPurity.internalComplex N K).homology n ≅ V) |
| 45 | |
| 46 | variable (r : Γ(X, U)) |
| 47 | [∀ q, Module.Free Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X q))] |
| 48 | [∀ q, Module.Finite Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (K.X q))] |
| 49 | [∀ q, Module.Free Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (L.X q))] |
| 50 | [∀ q, Module.Finite Γ(X, U) ((AffineOpen.InternalHom.sections U hU).obj (L.X q))] |
| 51 | [∀ q, Projective ((AffineOpen.InternalHom.sections (AffinePrincipal.Sections.openSubset U r) (hU.basicOpen r)).obj (K.X q))] |
| 52 | [∀ q, Projective ((AffineOpen.InternalHom.sections (AffinePrincipal.Sections.openSubset U r) (hU.basicOpen r)).obj (L.X q))] |
| 53 | (Q' : Type u) [CommRing Q'] [Algebra Γ(X, AffinePrincipal.Sections.openSubset U r) Q'] |
| 54 | (hQ' : Function.Surjective (algebraMap Γ(X, AffinePrincipal.Sections.openSubset U r) Q')) |
| 55 | (C' : Type u) [AddCommGroup C'] [Module Q' C'] [Module Γ(X, AffinePrincipal.Sections.openSubset U r) C'] |
| 56 | [IsScalarTower Γ(X, AffinePrincipal.Sections.openSubset U r) Q' C'] [Module.Finite Q' C'] [Module.Projective Q' C'] |
| 57 | (eM' : (AffineOpen.InternalHom.sections (AffinePrincipal.Sections.openSubset U r) (hU.basicOpen r)).obj M ≅ |
| 58 | ModuleCat.of Γ(X, AffinePrincipal.Sections.openSubset U r) Q') |
| 59 | (eC' : (AffineOpen.InternalHom.sections (AffinePrincipal.Sections.openSubset U r) (hU.basicOpen r)).obj M' ≅ |
| 60 | ModuleCat.of Γ(X, AffinePrincipal.Sections.openSubset U r) C') |
| 61 | [Module Q' Γ(V, AffinePrincipal.Sections.openSubset U r)] [IsScalarTower Γ(X, AffinePrincipal.Sections.openSubset U r) Q' Γ(V, AffinePrincipal.Sections.openSubset U r)] |
| 62 | (hmul : ∀ (q : Q) (m : C), |
| 63 | Affine.CoefficientRestriction.coefficientRestriction U hU M' C eC r C' eC' (q • m) = |
| 64 | Affine.CoefficientRestriction.scalarRestriction U hU M Q eM r Q' eM' q • |
| 65 | Affine.CoefficientRestriction.coefficientRestriction U hU M' C eC r C' eC' m) |
| 66 | (eN : (AffineOpen.InternalHom.sections U hU).obj N ≅ ModuleCat.of Γ(X, U) Γ(X, U)) |
| 67 | |
| 68 | include hmul eN in |
| 69 | theorem restriction (z : Γ((Affine.LinearResolutionPurity.internalComplex N L).homology n, U)) : |
| 70 | (Affine.IntrinsicCoefficientHom.iso (AffinePrincipal.Sections.openSubset U r) (hU.basicOpen r) N K L M M' ε ε' Q' hQ' C' eM' eC' n V κ).hom |
| 71 | (((Affine.LinearResolutionPurity.internalComplex N L).homology n).presheaf.map |
| 72 | (AffinePrincipal.Sections.inclusion U r).op z) = |
| 73 | (ArithmeticGeometry.OrdinaryLocus.Openness.SheafHomModule.Construction.sheafHomModule M' V).presheaf.map (AffinePrincipal.Sections.inclusion U r).op |
| 74 | ((Affine.IntrinsicCoefficientHom.iso U hU N K L M M' ε ε' Q hQ C eM eC n V κ).hom z) := by |
| 75 | apply Affine.HomPrincipalExt.ext U hU r M' V |
| 76 | intro m |
| 77 | rw [Affine.IntrinsicCoefficientHom.evaluation, Affine.HomEvaluation.restriction, |
| 78 | Affine.IntrinsicCoefficientHom.evaluation] |
| 79 | have hm : Affine.CoefficientRestriction.coefficientRestriction U hU M' C eC r C' eC' |
| 80 | (Affine.IntrinsicCoefficientHom.coefficientIso U hU M' C eC m) = |
| 81 | Affine.IntrinsicCoefficientHom.coefficientIso (AffinePrincipal.Sections.openSubset U r) (hU.basicOpen r) M' C' eC' |
| 82 | (M'.presheaf.map (AffinePrincipal.Sections.inclusion U r).op m) := by |
| 83 | change eC'.hom ((Affine.ChartSections.iso (AffinePrincipal.Sections.openSubset U r) (hU.basicOpen r) M').hom |
| 84 | (M'.presheaf.map (AffinePrincipal.Sections.inclusion U r).op ((Affine.ChartSections.iso U hU M').inv |
| 85 | (eC.inv (eC.hom ((Affine.ChartSections.iso U hU M').hom m)))))) = _ |
| 86 | rw [Iso.hom_inv_id_apply, Iso.hom_inv_id_apply] |
| 87 | rfl |
| 88 | have hp := Affine.CoefficientRestriction.restriction U hU N K L M M' ε ε' Q C eM eC |
| 89 | r Q' C' eM' eC' hmul eN n z (Affine.IntrinsicCoefficientHom.coefficientIso U hU M' C eC m) |
| 90 | rw [hm] at hp |
| 91 | rw [← hp] |
| 92 | exact PresheafOfModules.naturality_apply κ.hom.val (AffinePrincipal.Sections.inclusion U r).op _ |
| 93 | |
| 94 | end |
| 95 | |
| 96 | end OAI.NumberTheory.PadicHodge.IntegralComparison.Intrinsic.CoefficientHomRestriction |