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.PrincipalPoint.CanonicalSource |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.IntrinsicRecovery |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.ClassFixed |
| 4 | |
| 5 | /-! # Source Intrinsic Recovery -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalPoint.SourceIntrinsicRecovery.Intrinsic |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! The original point-class comparison has its exact native local |
| 12 | image on the selected source neighborhood, with the original degree |
| 13 | transport and coefficient fixedness retained. -/ |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite _root_.HomologicalComplex |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | set_option backward.isDefEq.respectTransparency.types false |
| 17 | open OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalPoint.PulledIntegerRefinement |
| 18 | |
| 19 | private theorem paste {A : Type*} {x y y' z z' : A} |
| 20 | (h : x = y) (h' : y' = z') (hy : y = y') (hz : z' = z) : x = z := |
| 21 | h.trans (hy.trans (h'.trans hz)) |
| 22 | |
| 23 | variable {Y X Z T S : Scheme.{0}} [Y.IsSeparated] [X.IsSeparated] [Z.IsSeparated] |
| 24 | (f : Y ⟶ X) [IsAffineHom f] (i : X ⟶ Z) [IsClosedImmersion i] |
| 25 | (π : Z ⟶ S) (s₀ : T ⟶ X) [IsClosedImmersion s₀] |
| 26 | (U : Z.Opens) (hU : IsAffineOpen U) (hcontains : ⊤ ≤ (s₀ ≫ i) ⁻¹ᵁ U) |
| 27 | {c g : ℕ} (s : Fin c → Γ(Z,U)) (t : Fin g → Γ(Z,U)) |
| 28 | (hs : Ideal.span (Set.range s) = i.ker.ideal ⟨U,hU⟩) |
| 29 | (hst : Ideal.span (Set.range (Fin.append s t)) = (s₀ ≫ i).ker.ideal ⟨U,hU⟩) |
| 30 | {κ : Type} [LinearOrder κ] (V : κ → Z.Opens) |
| 31 | (hV : iSup V = ⊤) (haV : ∀ j, IsAffineOpen (V j)) |
| 32 | (N : Y.Modules) [N.IsQuasicoherent] |
| 33 | (z : Γ(Y,(f ≫ i) ⁻¹ᵁ U)) (O : Y.Opens) |
| 34 | (H : Principal.InjectiveIntegerRows.SingleSupportedCandidate.Conditions |
| 35 | (PrincipalSource.OpenReindex.wideOpens (f ≫ i) U hU) |
| 36 | (PrincipalSource.OpenReindex.geometricOpens (f ≫ i) U hU (Y.basicOpen z)) |
| 37 | (Fraction.family U t) (PulledIntegerRefinement.outside f s₀) O) |
| 38 | (hza : IsAffineOpen (Y.basicOpen z)) (hZU : Y.basicOpen z ≤ (f ≫ i) ⁻¹ᵁ U) |
| 39 | |
| 40 | local instance pushed_quasicoherent : ((Scheme.Modules.pushforward f).obj N).IsQuasicoherent := |
| 41 | AlgebraicGeometry.SheafCohomology.Projective.Quasicoherent.Scheme.Modules.isQuasicoherent_pushforward_of_isAffineHom f |
| 42 | |
| 43 | variable (x : (PrincipalSource.ClassCoordinates.total f i U hU N t c).homology (c+g)) |
| 44 | (hx : (PrincipalSource.OpenRestriction.supportedFunctor U |
| 45 | (Fraction.family U t) c (c+g)).map |
| 46 | (PrincipalSource.OpenFixedClass.scalar f i U hU N z) x = x) |
| 47 | |
| 48 | include hx in |
| 49 | theorem recovery : |
| 50 | Source.Comparison.sourceOutput (c := c) (g := g) f i π V N |
| 51 | (Source.Comparison.ordinaryMap f i π s₀ U hU hcontains s t hs hst |
| 52 | V hV haV N (c+g) (Nat.add_comm c g) x) = |
| 53 | PrincipalSource.IntrinsicRecovery.Intrinsic.nativeComparison f i U hU t N z (PulledIntegerRefinement.outside f s₀) O H hza hZU |
| 54 | c g (PulledIntegerRefinement.global f i V) (PulledIntegerRefinement.global_cover f i V hV) (PulledIntegerRefinement.global_affine f i V haV) |
| 55 | (PrincipalSource.ClassCoordinates.nativeClass f i U hU N t c |
| 56 | (Y.basicOpen z) hza hZU x) := by |
| 57 | have ho := CanonicalSource.comparison_apply f i s₀ U hU hcontains s t hs hst |
| 58 | V hV haV N (PrincipalSource.OpenReindex.geometricOpens (f ≫ i) U hU (Y.basicOpen z)) O H π x |
| 59 | have hfixed := PrincipalSource.ClassFixed.Coordinates.cast_fixed f i U hU N t c |
| 60 | (PrincipalSource.OpenFixedClass.scalar f i U hU N z) x hx |
| 61 | have hn := PrincipalSource.IntrinsicRecovery.Intrinsic.recovery f i U hU t N z (PulledIntegerRefinement.outside f s₀) O H hza hZU |
| 62 | c g (PulledIntegerRefinement.global f i V) (PulledIntegerRefinement.global_cover f i V hV) (PulledIntegerRefinement.global_affine f i V haV) |
| 63 | (PrincipalSource.ClassCoordinates.cast f i U hU N t c x) hfixed |
| 64 | refine paste ho hn ?_ ?_ |
| 65 | · as_aux_lemma => rfl |
| 66 | · as_aux_lemma => rfl |
| 67 | |
| 68 | end |
| 69 | |
| 70 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalPoint.SourceIntrinsicRecovery.Intrinsic |