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.AlgebraicGeometry.Resolution.Blowups.OrderProgramEtalePullback |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.MonomialProgramEtalePullback |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Surface.ResidualProgramNaturality |
| 4 | import OAI.AlgebraicGeometry.Resolution.Blowups.SameEtalePullbackExistence |
| 5 | import OAI.AlgebraicGeometry.Resolution.Blowups.Ideal.ComplementEtalePullback |
| 6 | |
| 7 | /-! # Residual Program Etale Pullback -/ |
| 8 | |
| 9 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Surface |
| 10 | |
| 11 | noncomputable section |
| 12 | |
| 13 | /-! Complete residual schedules pull back étale, including all controls and the actual residual-neighborhood extensions. -/ |
| 14 | |
| 15 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 16 | |
| 17 | theorem ResidualProgram.Construction.SurfaceResidualProgram.exists_etale_pullback {b : ℕ} (hb : 0 < b) |
| 18 | {m : ℕ} {β : Type} [Fintype β] [DecidableEq β] {a : β → ℕ} |
| 19 | {schedule : ResidualSchedule.Construction.SurfaceResidualSchedule b m β a} {X Y : Scheme} |
| 20 | {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 21 | {J I : X.IdealSheafData} {K : Y.IdealSheafData} {D : β → X.IdealSheafData} |
| 22 | {P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f I Y g K} |
| 23 | (H : ResidualProgram.Construction.SurfaceResidualProgram b schedule X f J I D Y g K P) : |
| 24 | ∀ [Smooth f] (V : Scheme) [IsIntegral V] [IsLocallyNoetherian V] [CompactSpace V], |
| 25 | topologicalKrullDim V ≤ 2 → ∀ (h : V ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) (L B : V.IdealSheafData), L ≠ ⊥ → B ≠ ⊥ → |
| 26 | ∀ (E : β → V.IdealSheafData) (q : V ⟶ X) [Etale q], |
| 27 | q ≫ f = h → J.comap q = L → I.comap q = B → (∀ l, (D l).comap q = E l) → |
| 28 | ∃ (W : Scheme) (k : W ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) (M : W.IdealSheafData) |
| 29 | (Q : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b V h B W k M) (r : W ⟶ Y), |
| 30 | ResidualProgram.Construction.SurfaceResidualProgram b schedule V h L B E W k M Q ∧ P.EtaleComparison Q q r := by |
| 31 | induction H with |
| 32 | | monomial a S H => |
| 33 | intro _ V _ _ _ _ h L B _ _ E q _ hstructure _ hB hD |
| 34 | obtain ⟨W, k, M, Q, r, hQ, hc⟩ := H.exists_etale_pullback hb V h B E q hstructure hB hD |
| 35 | exact ⟨W, k, M, Q, r, .monomial a S hQ, hc⟩ |
| 36 | | @higher m β hβ dec a hle S schedule X Y Z f hf g h J I J' I' K D A order P same R tail ih => |
| 37 | intro _ V0 _ _ _ hdV0 h0 L0 B0 hL0 hB0 E0 q _ hstructure hL hB hD |
| 38 | let : Smooth h0 := hstructure ▸ inferInstanceAs (Smooth (q ≫ f)) |
| 39 | obtain ⟨Y0, g0, J0, A0, u, order0, ha⟩ := order.exists_etale_pullback V0 hdV0 h0 L0 hL0 E0 q hstructure hL hD |
| 40 | obtain ⟨I0, P0, same0, hp⟩ := same.exists_etale_pullback_transport A0 q u ha B0 hB |
| 41 | let : Smooth g := A.endpoint_smooth |
| 42 | let : Smooth g0 := A0.endpoint_smooth |
| 43 | let : IsIntegral Y0 := A0.endpoint_integral |
| 44 | let : IsLocallyNoetherian Y0 := LocallyOfFiniteType.isLocallyNoetherian g0 |
| 45 | let : CompactSpace Y0 := QuasiCompact.compactSpace_of_compactSpace A0.toBase |
| 46 | let : Etale u := (ha.endpoint_pullback A A0 q u).1 |
| 47 | have hg := ha.endpoint_structure A A0 q u |
| 48 | have hJ0 := (ha.endpoint_pullback A A0 q u).2.2 |
| 49 | have hI0 := (hp.endpoint_pullback P P0 q u).2.2 |
| 50 | have hcount := order.hasIncidenceTrace.stepCount A D S.incidenceTrace |
| 51 | have hcount0 := order0.hasIncidenceTrace.stepCount A0 E0 S.incidenceTrace |
| 52 | have hboundary := ha.boundaryAtLength A A0 q u β D E0 hD S.incidenceTrace.length hcount hcount0 |
| 53 | obtain ⟨W, k0, M0, R0, r0, tail0, hr⟩ := ih Y0 (A0.endpoint_dimension_le 2 hdV0) g0 J0 I0 |
| 54 | (A0.endpoint_ideal_ne_bot hL0) (P0.endpoint_ideal_ne_bot hB0) |
| 55 | (A0.boundaryAtLength E0 S.incidenceTrace.length hcount0) u hg hJ0 hI0 |
| 56 | (fun l => congrFun hboundary l) |
| 57 | exact ⟨W, k0, M0, P0.append R0, r0, |
| 58 | .higher a hle S schedule A0 order0 P0 same0 R0 tail0, hp.append P P0 q u R R0 r0 hr⟩ |
| 59 | | @companion m β hβ dec a hlt S schedule X Y f hf g hgs J I C J' I' D A order B sameB P same V Z h k L M T tail R r comparison hstart hcover ih => |
| 60 | intro _ V0 _ _ _ hdV0 h0 L0 B0 hL0 hB0 E0 q _ hstructure hL hB hD |
| 61 | let : Smooth h0 := hstructure ▸ inferInstanceAs (Smooth (q ≫ f)) |
| 62 | let C0 := Global.CompanionIdeal.Construction.globalCompanionIdeal L0 (Global.MixedBoundary.Construction.boundaryMonomialSheaf E0 a) (m + 1) b |
| 63 | have hC0 : C0 ≠ ⊥ := by |
| 64 | intro hz |
| 65 | have hle : L0 ^ (b - (m + 1)) ≤ C0 := le_sup_left |
| 66 | rw [hz] at hle |
| 67 | exact Integral.IdealSheafProducts.Construction.idealSheaf_pow_ne_bot L0 hL0 _ (le_bot_iff.mp hle) |
| 68 | have hCmap : (Global.CompanionIdeal.Construction.globalCompanionIdeal J (Global.MixedBoundary.Construction.boundaryMonomialSheaf D a) (m + 1) b).comap q = C0 := by |
| 69 | rw [Global.CompanionIdeal.Construction.globalCompanionIdeal_comap, hL, ResidualNeighborhoodEtalePullback.Construction.boundaryMonomialSheaf_comap, funext hD] |
| 70 | obtain ⟨Y0, g0, K0, A0, u, order0, ha⟩ := order.exists_etale_pullback V0 hdV0 h0 C0 hC0 E0 q hstructure hCmap hD |
| 71 | obtain ⟨J0, B1, sameB0, hbcomp⟩ := sameB.exists_etale_pullback_transport A0 q u ha L0 hL |
| 72 | obtain ⟨I0, P0, same0, hp⟩ := same.exists_etale_pullback_transport A0 q u ha B0 hB |
| 73 | let : Smooth g0 := A0.endpoint_smooth |
| 74 | let : IsIntegral Y0 := A0.endpoint_integral |
| 75 | let : IsLocallyNoetherian Y0 := LocallyOfFiniteType.isLocallyNoetherian g0 |
| 76 | let : CompactSpace Y0 := QuasiCompact.compactSpace_of_compactSpace A0.toBase |
| 77 | let : IsNoetherian Y0 := ⟨⟩ |
| 78 | let : Etale u := (ha.endpoint_pullback A A0 q u).1 |
| 79 | have hg := ha.endpoint_structure A A0 q u |
| 80 | have hJ0 := (hbcomp.endpoint_pullback B B1 q u).2.2 |
| 81 | have hI0 := (hp.endpoint_pullback P P0 q u).2.2 |
| 82 | have hJ0ne : J0 ≠ ⊥ := B1.endpoint_ideal_ne_bot hL0 |
| 83 | have hI0ne : I0 ≠ ⊥ := P0.endpoint_ideal_ne_bot hB0 |
| 84 | have hcount := order.hasIncidenceTrace.stepCount A D S.incidenceTrace |
| 85 | have hcount0 := order0.hasIncidenceTrace.stepCount A0 E0 S.incidenceTrace |
| 86 | have hboundary := ha.boundaryAtLength A A0 q u β D E0 hD S.incidenceTrace.length hcount hcount0 |
| 87 | have hA0 := order0.hasIncidenceTrace.uniformBoundaryCompatible A0 E0 S.incidenceTrace |
| 88 | have hAB0 := Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.uniformBoundaryCompatible.boundaryCompatible A0 E0 hA0 |
| 89 | let EA0 := Classical.choice (A0.boundaryAtLength_atlas E0 hAB0 S.incidenceTrace.length hcount0) |
| 90 | let U0 := Global.ResidualNeighborhood.Construction.residualOrderDropOpen g0 J0 (m + 1) |
| 91 | let : IsIntegral U0 := Global.ResidualNeighborhood.Construction.residualOrderDropOpen_integral g0 J0 hJ0ne (m + 1) |
| 92 | let : IsLocallyNoetherian U0 := LocallyOfFiniteType.isLocallyNoetherian U0.ι |
| 93 | let : NoetherianSpace U0 := U0.ι.isOpenEmbedding.isInducing.noetherianSpace |
| 94 | have hdU0 : topologicalKrullDim U0 ≤ 2 := |
| 95 | U0.ι.isOpenEmbedding.isInducing.topologicalKrullDim_le.trans (A0.endpoint_dimension_le 2 hdV0) |
| 96 | obtain ⟨v, hv, hpb⟩ := ResidualNeighborhoodEtalePullback.Construction.exists_residual_order_neighborhood_etale_pullback g g0 J' J0 (m + 1) u hg hJ0 |
| 97 | let : Etale v := hv |
| 98 | obtain ⟨V1, h1, L1, T0, w, tail0, ht⟩ := ih U0 hdU0 (U0.ι ≫ g0) (J0.comap U0.ι) (I0.comap U0.ι) |
| 99 | (Global.ResidualNeighborhoodBoundary.Construction.idealSheaf_comap_nonempty_open_ne_bot U0.ι J0 hJ0ne) |
| 100 | (Global.ResidualNeighborhoodBoundary.Construction.idealSheaf_comap_nonempty_open_ne_bot U0.ι I0 hI0ne) |
| 101 | (fun l => (A0.boundaryAtLength E0 S.incidenceTrace.length hcount0 l).comap U0.ι) v |
| 102 | (by rw [← Category.assoc, hpb.w, Category.assoc, hg]) |
| 103 | (by rw [← Scheme.IdealSheafData.comap_comp, hpb.w, Scheme.IdealSheafData.comap_comp, hJ0]) |
| 104 | (by rw [← Scheme.IdealSheafData.comap_comp, hpb.w, Scheme.IdealSheafData.comap_comp, hI0]) |
| 105 | (by |
| 106 | intro l |
| 107 | rw [← Scheme.IdealSheafData.comap_comp, hpb.w, Scheme.IdealSheafData.comap_comp, congrFun hboundary l]) |
| 108 | have hdiff : (Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf g I' (b - 1)).comap u = |
| 109 | Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf g0 I0 (b - 1) := by |
| 110 | rw [Blowups.Smooth.GlobalCoefficientEtalePullback.Construction.smoothDifferentialIdealSheaf_comap_etale, hI0] |
| 111 | exact DifferentialUnitGluing.Construction.smoothDifferentialIdealSheaf_structure_congr _ _ hg _ _ |
| 112 | have hstart0 : ((Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf g0 I0 (b - 1)).support : Set Y0) ⊆ Set.range U0.ι := |
| 113 | Ideal.ComplementEtalePullback.Construction.idealSheaf_support_cover_pullback u (Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)).ι U0.ι v hpb _ _ hdiff hstart |
| 114 | obtain ⟨Z0, k0, M0, R0, r0, hR0, comparison0, _, hremaining⟩ := |
| 115 | T0.exists_uniform_extension_from_order_neighborhood Y0 g0 I0 hI0ne U0.ι rfl rfl hstart0 |
| 116 | (ControlPrefix.CanonicalLabels.Construction.iteratedBoundaryLabels S.incidenceTrace.length β) |
| 117 | (A0.boundaryAtLength E0 S.incidenceTrace.length hcount0) EA0 tail0.uniformBoundaryCompatible |
| 118 | have hcombined := comparison.comp R T _ r T0 v w ht |
| 119 | have hcombined' : R.EtaleComparison T0 (U0.ι ≫ u) (w ≫ r) := by |
| 120 | rw [← hpb.w] |
| 121 | exact hcombined |
| 122 | obtain ⟨s, hs⟩ := R.exists_etaleComparison_of_order_neighborhood R0 u hg hI0 T0 |
| 123 | U0.ι (w ≫ r) r0 hcombined' comparison0 hstart0 |
| 124 | exact ⟨Z0, k0, M0, P0.append R0, s, |
| 125 | .companion a hlt S schedule A0 order0 B1 sameB0 P0 same0 T0 tail0 R0 r0 comparison0 hstart0 hremaining, |
| 126 | hp.append P P0 q u R R0 s hs⟩ |
| 127 | |
| 128 | end |
| 129 | |
| 130 | end OAI.AlgebraicGeometry.Resolution.Blowups.Surface |