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.PrincipalResidue.SurvivorSection |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.PushforwardSectionCoordinates |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionTransformationAtOne |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Affine.LocalQuasiIso |
| 5 | |
| 6 | /-! # Adjunction -/ |
| 7 | |
| 8 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.Adjunction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! An actual sheaf adjunction with the original affine residue |
| 13 | coordinate agrees with that residue on the whole principal diagram. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry Opposite _root_.HomologicalComplex |
| 16 | |
| 17 | set_option backward.defeqAttrib.useBackward true |
| 18 | set_option backward.isDefEq.respectTransparency false |
| 19 | set_option backward.isDefEq.respectTransparency.types false |
| 20 | |
| 21 | private theorem compose {C : Type*} [Category C] {A B D E F G : C} |
| 22 | (u : A ⟶ B) (v : F ⟶ G) (w : D ⟶ E) |
| 23 | (x : B ⟶ E) (y : E ⟶ G) (z : B ⟶ G) |
| 24 | (a : A ⟶ D) (b : D ⟶ F) (q : A ⟶ F) |
| 25 | (hnat : u ≫ z = q ≫ v) (hq : q = a ≫ b) |
| 26 | (hu : u ≫ x = a ≫ w) (hv : w ≫ y = b ≫ v) : |
| 27 | u ≫ z = u ≫ (x ≫ y) := by |
| 28 | calc |
| 29 | _ = q ≫ v := hnat |
| 30 | _ = (a ≫ b) ≫ v := congrArg (fun t => t ≫ v) hq |
| 31 | _ = a ≫ (w ≫ y) := (Category.assoc _ _ _).trans (congrArg (fun t => a ≫ t) hv.symm) |
| 32 | _ = (u ≫ x) ≫ y := (Category.assoc _ _ _).symm.trans (congrArg (fun t => t ≫ y) hu.symm) |
| 33 | _ = _ := Category.assoc _ _ _ |
| 34 | |
| 35 | universe u |
| 36 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.AffineOpen.InternalHom |
| 37 | variable {Y : Scheme.{u}} (U : Y.Opens) (hU : IsAffineOpen U) |
| 38 | (N : Y.Modules) [N.IsQuasicoherent] |
| 39 | (e : Γ(N, U) ≃ₗ[Γ(Y, U)] Γ(Y, U)) |
| 40 | (K : ChainComplex Y.Modules ℕ) [∀ k, (K.X k).IsQuasicoherent] |
| 41 | {X : Scheme.{u}} (f : X ⟶ Y) [IsClosedImmersion f] |
| 42 | (ε : K ⟶ (ChainComplex.single₀ Y.Modules).obj (Principal.ClosedQuotient.directImage f)) |
| 43 | [QuasiIso ε] [∀ k, Projective ((AffineOpen.InternalHom.sections U hU).obj (K.X k))] |
| 44 | {c : ℕ} (s : Fin c → Γ(Y, U)) |
| 45 | (hs : Koszul.OrientedTopCohomology.ideal Γ(Y, U) s = f.ker.ideal ⟨U, hU⟩) |
| 46 | (hreg : RingTheory.Sequence.IsWeaklyRegular Γ(Y, U) (List.ofFn s)) |
| 47 | [∀ k, ((Affine.LinearResolutionPurity.internalComplex N K).X k).IsQuasicoherent] |
| 48 | (M : X.Modules) [M.IsQuasicoherent] (ω : Γ(M, f ⁻¹ᵁ U)) |
| 49 | (φ : (Affine.LinearResolutionPurity.internalComplex N K).homology c ⟶ |
| 50 | (Scheme.Modules.pushforward f).obj M) |
| 51 | (hlocal : (Affine.ModuleExactSections.sections U).map φ = |
| 52 | SurvivorSection.sectionMap U hU N e K f ε s hs hreg ≫ |
| 53 | Principal.PushforwardSectionCoordinates.sectionsMap f U M ω) |
| 54 | |
| 55 | include hlocal in |
| 56 | theorem comparison : |
| 57 | (Principal.ModuleFunctor.functor U hU).map φ = |
| 58 | SurvivorData.map U hU N e K f ε s hs hreg ≫ |
| 59 | Principal.PushforwardSection.map f U hU M ω := by |
| 60 | let := Affine.LocalQuasiIso.homology_quasicoherent |
| 61 | (Affine.LinearResolutionPurity.internalComplex N K) c |
| 62 | let : ((Scheme.Modules.pushforward f).obj M).IsQuasicoherent := |
| 63 | AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom f |
| 64 | apply Principal.SectionTransformationAtOne.Ext.ext_atOne U hU _ _ |
| 65 | apply (cancel_epi ((Principal.AtOne.iso U hU).app |
| 66 | ((Affine.LinearResolutionPurity.internalComplex N K).homology c)).hom).mp |
| 67 | exact compose _ _ _ _ _ _ _ _ _ |
| 68 | ((Principal.AtOne.iso U hU).hom.naturality φ).symm hlocal |
| 69 | (SurvivorSection.atOne U hU N e K f ε s hs hreg) |
| 70 | (Principal.PushforwardSectionCoordinates.atOne_hom f U hU M ω) |
| 71 | |
| 72 | end |
| 73 | |
| 74 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalResidue.Adjunction |