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.Principal.SupportedOpenScalar |
| 2 | import OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalPoint.Fraction |
| 3 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.AmbientProducts |
| 4 | import OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.TerminalScalars |
| 5 | import OAI.NumberTheory.PadicHodge.IntegralComparison.RelativeCech.RefinementQuasiIso |
| 6 | import OAI.NumberTheory.PadicHodge.IntegralComparison.SectionIdealPuncturedCover |
| 7 | import Mathlib.CategoryTheory.Limits.Preserves.Lattice |
| 8 | |
| 9 | /-! # Support Conditions -/ |
| 10 | |
| 11 | namespace OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.SupportConditions |
| 12 | |
| 13 | noncomputable section |
| 14 | |
| 15 | /-! The actual ambient principal parameters supply the wide and selected |
| 16 | support covers on the source scheme. Every term remains an affine open, |
| 17 | and both diagrams lie inside the original affine source neighborhood. -/ |
| 18 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry _root_.TopologicalSpace Opposite |
| 19 | set_option backward.isDefEq.respectTransparency false |
| 20 | set_option backward.isDefEq.respectTransparency.types false |
| 21 | open OAI.NumberTheory.PadicHodge.IntegralComparison.Principal.SectionPresheaf OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.OpenReindex |
| 22 | variable {Y Z : Scheme.{0}} (π : Y ⟶ Z) (U : Z.Opens) (hU : IsAffineOpen U) |
| 23 | (V : Y.Opens) (hV : V ≤ π ⁻¹ᵁ U) |
| 24 | |
| 25 | theorem wide_top : (OpenReindex.wideOpens π U hU).obj (⊤_ (Principal.SectionPresheaf.Index U)) = π ⁻¹ᵁ U := by |
| 26 | change π ⁻¹ᵁ Principal.SectionPresheaf.openSubset U (⊤_ (Principal.SectionPresheaf.Index U)) = _ |
| 27 | rw [Principal.TerminalScalars.open_eq U hU] |
| 28 | |
| 29 | include hV in |
| 30 | theorem local_top : (OpenReindex.geometricOpens π U hU V).obj (⊤_ (Principal.SectionPresheaf.Index U)) = V := by |
| 31 | change V ⊓ (OpenReindex.wideOpens π U hU).obj (⊤_ (Principal.SectionPresheaf.Index U)) = V |
| 32 | rw [wide_top, inf_eq_left.mpr hV] |
| 33 | |
| 34 | theorem wide_bounded (r : Principal.SectionPresheaf.Index U) : (OpenReindex.wideOpens π U hU).obj r ≤ π ⁻¹ᵁ U := |
| 35 | π.preimage_mono (Z.basicOpen_le r.val) |
| 36 | |
| 37 | theorem local_bounded (r : Principal.SectionPresheaf.Index U) : (OpenReindex.geometricOpens π U hU V).obj r ≤ π ⁻¹ᵁ U := |
| 38 | inf_le_right.trans (wide_bounded π U hU r) |
| 39 | |
| 40 | variable {g : ℕ} (t : Fin g → Γ(Z,U)) |
| 41 | |
| 42 | local instance preimage_preserves : PreservesFiniteLimits (Opens.map π.base) := by |
| 43 | change PreservesFiniteLimits (OrderHom.ofClass π.base.frameHom).toFunctor |
| 44 | infer_instance |
| 45 | |
| 46 | local instance intersection_preserves_shape (n : ℕ) : |
| 47 | PreservesLimitsOfShape (Discrete (Fin (n+1))) (RelativeCech.Intersections.intersect V) := by |
| 48 | let : ∀ a : Fin (n+1) → Y.Opens, |
| 49 | PreservesLimit (Discrete.functor a) (RelativeCech.Intersections.intersect V) := |
| 50 | fun a => RelativeCech.RefinementQuasiIso.intersection_preserves_product V a |
| 51 | exact preservesLimitsOfShape_of_discrete _ |
| 52 | |
| 53 | instance wide_preserves : ∀ (n : ℕ) (a : Fin (n+1) → ULift (Fin g)), |
| 54 | PreservesLimit (Discrete.functor (PrincipalPoint.Fraction.family U t ∘ a)) (OpenReindex.wideOpens π U hU) := |
| 55 | fun _ _ => by |
| 56 | dsimp only [OpenReindex.wideOpens] |
| 57 | infer_instance |
| 58 | |
| 59 | instance local_preserves : ∀ (n : ℕ) (a : Fin (n+1) → ULift (Fin g)), |
| 60 | PreservesLimit (Discrete.functor (PrincipalPoint.Fraction.family U t ∘ a)) |
| 61 | (OpenReindex.geometricOpens π U hU V) := |
| 62 | fun _ _ => by |
| 63 | dsimp only [OpenReindex.geometricOpens] |
| 64 | infer_instance |
| 65 | |
| 66 | variable [Y.IsSeparated] [IsAffineHom π] (hVa : IsAffineOpen V) |
| 67 | (O₁ O₂ : Y.Opens) (hout : O₁ ≤ O₂) (hinter : V ⊓ O₁ = V ⊓ O₂) |
| 68 | (hselected : V ⊔ O₂ = ⊤) (hwide : (π ⁻¹ᵁ U) ⊔ O₁ = ⊤) |
| 69 | (hcover : (π ⁻¹ᵁ U) ⊓ O₁ = ⨆ j, π ⁻¹ᵁ Z.basicOpen (t j)) |
| 70 | |
| 71 | include hV hVa hout hinter hselected hwide hcover in |
| 72 | theorem conditions : Principal.InjectiveIntegerRows.SingleSupportedCandidate.Conditions |
| 73 | (OpenReindex.wideOpens π U hU) (OpenReindex.geometricOpens π U hU V) |
| 74 | (PrincipalPoint.Fraction.family U t) O₁ O₂ where |
| 75 | outside_le := hout |
| 76 | intersection_eq := by rw [local_top π U hU V hV]; exact hinter |
| 77 | local_global := by rw [local_top π U hU V hV]; exact hselected |
| 78 | wide_global := by rw [wide_top]; exact hwide |
| 79 | wide_punctured := fun j => |
| 80 | (le_iSup (fun k => π ⁻¹ᵁ Z.basicOpen (t k)) j.down).trans |
| 81 | (hcover.ge.trans inf_le_right) |
| 82 | local_punctured := fun j => inf_le_right.trans |
| 83 | ((le_iSup (fun k => π ⁻¹ᵁ Z.basicOpen (t k)) j.down).trans |
| 84 | (hcover.ge.trans inf_le_right)) |
| 85 | wide_cover := by |
| 86 | rw [wide_top] |
| 87 | intro y hy |
| 88 | rw [hcover] at hy |
| 89 | obtain ⟨j, hj⟩ := Opens.mem_iSup.mp hy |
| 90 | exact Opens.mem_iSup.mpr ⟨ULift.up j, hj⟩ |
| 91 | local_cover := by |
| 92 | rw [local_top π U hU V hV] |
| 93 | intro y hy |
| 94 | have hy' : y ∈ (π ⁻¹ᵁ U) ⊓ O₁ := ⟨hV hy.1, hy.2⟩ |
| 95 | rw [hcover] at hy' |
| 96 | obtain ⟨j, hj⟩ := Opens.mem_iSup.mp hy' |
| 97 | exact Opens.mem_iSup.mpr ⟨ULift.up j, hy.1, hj⟩ |
| 98 | wide_affine := fun r => (hU.basicOpen r.val).preimage π |
| 99 | local_affine := fun r => hVa.inf ((hU.basicOpen r.val).preimage π) |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.NumberTheory.PadicHodge.IntegralComparison.PrincipalSource.SupportConditions |