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.Surface.ResidualSchedule |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.TraceCompanionResidualDrop |
| 3 | |
| 4 | /-! # Residual Program -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Surface.ResidualProgram.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Recorded residual programs combine exact changes of control with continuation on a residual-order neighborhood. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | inductive SurfaceResidualProgram (b : ℕ) : |
| 15 | {m : ℕ} → {β : Type} → [Fintype β] → [DecidableEq β] → {a : β → ℕ} → |
| 16 | ResidualSchedule.Construction.SurfaceResidualSchedule b m β a → |
| 17 | (X : Scheme) → (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) → (J I : X.IdealSheafData) → (β → X.IdealSheafData) → |
| 18 | (Y : Scheme) → (g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) → (K : Y.IdealSheafData) → |
| 19 | Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f I Y g K → Prop |
| 20 | | monomial {β : Type} [Fintype β] [DecidableEq β] (a : β → ℕ) |
| 21 | (S : Boundary.MonomialSchedule.Construction.BoundaryMonomialSchedule b β a [Finset.univ]) |
| 22 | {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 23 | {J I : X.IdealSheafData} {K : Y.IdealSheafData} {D : β → X.IdealSheafData} |
| 24 | {P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f I Y g K} |
| 25 | (H : Boundary.MonomialProgram.Construction.BoundaryMonomialProgram b β a [Finset.univ] S X f I D Y g K P) : |
| 26 | SurfaceResidualProgram b (.monomial a S) X f J I D Y g K P |
| 27 | | higher {m : ℕ} {β : Type} [Fintype β] [DecidableEq β] (a : β → ℕ) (hle : b ≤ m + 1) |
| 28 | (S : HistorySchedule.Construction.SurfaceHistorySchedule m (Function.Embedding.ofIsEmpty : Fin 0 ↪ β)) |
| 29 | (schedule : ResidualSchedule.Construction.SurfaceResidualSchedule b m (ControlPrefix.CanonicalLabels.Construction.iteratedBoundaryLabels S.incidenceTrace.length β) |
| 30 | (S.incidenceTrace.residualExponents a (m + 1) b)) |
| 31 | {X Y Z : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} [Smooth f] {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {h : Z ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 32 | {J I : X.IdealSheafData} {J' I' : Y.IdealSheafData} {K : Z.IdealSheafData} {D : β → X.IdealSheafData} |
| 33 | (A : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix (m + 1) X f J Y g J') |
| 34 | (order : PositiveSurface.Construction.PositiveSurfaceOrderProgram (m + 1) β S X f J D Y g J' A) |
| 35 | (P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f I Y g I') (same : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.SameBlowups (m + 1) b A P) |
| 36 | (R : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b Y g I' Z h K) |
| 37 | (tail : SurfaceResidualProgram b schedule Y g J' I' |
| 38 | (A.boundaryAtLength D S.incidenceTrace.length (order.hasIncidenceTrace.stepCount A D S.incidenceTrace)) Z h K R) : |
| 39 | SurfaceResidualProgram b (.higher a hle S schedule) X f J I D Z h K (P.append R) |
| 40 | | companion {m : ℕ} {β : Type} [Fintype β] [DecidableEq β] (a : β → ℕ) (hlt : m + 1 < b) |
| 41 | (S : HistorySchedule.Construction.SurfaceHistorySchedule ((m + 1) * (b - (m + 1)) - 1) |
| 42 | (Function.Embedding.ofIsEmpty : Fin 0 ↪ β)) |
| 43 | (schedule : ResidualSchedule.Construction.SurfaceResidualSchedule b m (ControlPrefix.CanonicalLabels.Construction.iteratedBoundaryLabels S.incidenceTrace.length β) |
| 44 | (S.incidenceTrace.companionExponents a (m + 1) b)) |
| 45 | {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} [Smooth f] {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} [Smooth g] |
| 46 | {J I : X.IdealSheafData} {C J' I' : Y.IdealSheafData} {D : β → X.IdealSheafData} |
| 47 | (A : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix ((m + 1) * (b - (m + 1))) X f |
| 48 | (Global.CompanionIdeal.Construction.globalCompanionIdeal J (Global.MixedBoundary.Construction.boundaryMonomialSheaf D a) (m + 1) b) Y g C) |
| 49 | (order : PositiveSurface.Construction.PositiveSurfaceOrderProgram ((m + 1) * (b - (m + 1))) β S X f |
| 50 | (Global.CompanionIdeal.Construction.globalCompanionIdeal J (Global.MixedBoundary.Construction.boundaryMonomialSheaf D a) (m + 1) b) D Y g C A) |
| 51 | (B : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix (m + 1) X f J Y g J') |
| 52 | (sameB : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.SameBlowups ((m + 1) * (b - (m + 1))) (m + 1) A B) |
| 53 | (P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f I Y g I') |
| 54 | (same : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.SameBlowups ((m + 1) * (b - (m + 1))) b A P) |
| 55 | {V Z : Scheme} {h : V ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {k : Z ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {L : V.IdealSheafData} {M : Z.IdealSheafData} |
| 56 | (T : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b (Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)) |
| 57 | ((Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)).ι ≫ g) (I'.comap (Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)).ι) V h L) |
| 58 | (tail : SurfaceResidualProgram b schedule (Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)) |
| 59 | ((Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)).ι ≫ g) |
| 60 | (J'.comap (Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)).ι) (I'.comap (Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)).ι) |
| 61 | (fun l => (A.boundaryAtLength D S.incidenceTrace.length |
| 62 | (order.hasIncidenceTrace.stepCount A D S.incidenceTrace) l).comap (Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)).ι) V h L T) |
| 63 | (R : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b Y g I' Z k M) (r : V ⟶ Z) |
| 64 | (comparison : R.EtaleComparison T (Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)).ι r) |
| 65 | (hstart : ((Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf g I' (b - 1)).support : Set Y) ⊆ |
| 66 | Set.range (Global.ResidualNeighborhood.Construction.residualOrderDropOpen g J' (m + 1)).ι) |
| 67 | (hcover : letI : Smooth k := R.endpoint_smooth |
| 68 | ((Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf k M (b - 1)).support : Set Z) ⊆ Set.range r) : |
| 69 | SurfaceResidualProgram b (.companion a hlt S schedule) X f J I D Z k M (P.append R) |
| 70 | |
| 71 | namespace SurfaceResidualProgram |
| 72 | |
| 73 | theorem terminal_order {b : ℕ} (hb : 0 < b) {m : ℕ} {β : Type} [Fintype β] [DecidableEq β] |
| 74 | {a : β → ℕ} {schedule : ResidualSchedule.Construction.SurfaceResidualSchedule b m β a} |
| 75 | {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 76 | {J I : X.IdealSheafData} {K : Y.IdealSheafData} {D : β → X.IdealSheafData} |
| 77 | {P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f I Y g K} |
| 78 | (H : Construction.SurfaceResidualProgram b schedule X f J I D Y g K P) : |
| 79 | letI : Smooth g := P.endpoint_smooth |
| 80 | Blowups.Smooth.DifferentialIdealSheaf.Construction.smoothDifferentialIdealSheaf g K (b - 1) = ⊤ := by |
| 81 | induction H with |
| 82 | | monomial a S H => exact H.terminal_order hb |
| 83 | | higher a hle S schedule A order P same R tail ih => exact ih |
| 84 | | companion a hlt S schedule A order B sameB P same T tail R r comparison hstart hcover ih => |
| 85 | exact comparison.terminal_order_of_endpoint_cover R T _ r (b - 1) hcover ih |
| 86 | |
| 87 | theorem hasIncidenceTrace {b m : ℕ} {β : Type} [Fintype β] [DecidableEq β] |
| 88 | {a : β → ℕ} {schedule : ResidualSchedule.Construction.SurfaceResidualSchedule b m β a} |
| 89 | {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 90 | {J I : X.IdealSheafData} {K : Y.IdealSheafData} {D : β → X.IdealSheafData} |
| 91 | {P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f I Y g K} |
| 92 | (H : Construction.SurfaceResidualProgram b schedule X f J I D Y g K P) : |
| 93 | P.HasIncidenceTrace β D schedule.incidenceTrace := by |
| 94 | induction H with |
| 95 | | monomial a S H => exact H.hasIncidenceTrace |
| 96 | | higher a hle S schedule A order P same R tail ih => |
| 97 | exact same.append_traceAtLength A P R _ _ order.hasIncidenceTrace _ rfl _ ih |
| 98 | | companion a hlt S schedule A order B sameB P same T tail R r comparison hstart hcover ih => |
| 99 | have hA := order.hasIncidenceTrace |
| 100 | have hAB := Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix.uniformBoundaryCompatible.boundaryCompatible A _ (hA.uniformBoundaryCompatible A _ _) |
| 101 | obtain ⟨EA⟩ := A.boundaryAtLength_atlas _ hAB _ (hA.stepCount A _ _) |
| 102 | have hR := R.hasIncidenceTrace_of_order_neighborhood T _ r comparison hstart _ _ EA _ ih |
| 103 | exact same.append_traceAtLength A P R _ _ hA _ rfl _ hR |
| 104 | |
| 105 | theorem uniformBoundaryCompatible {b m : ℕ} {β : Type} [Fintype β] [DecidableEq β] |
| 106 | {a : β → ℕ} {schedule : ResidualSchedule.Construction.SurfaceResidualSchedule b m β a} |
| 107 | {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 108 | {J I : X.IdealSheafData} {K : Y.IdealSheafData} {D : β → X.IdealSheafData} |
| 109 | {P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix b X f I Y g K} |
| 110 | (H : Construction.SurfaceResidualProgram b schedule X f J I D Y g K P) : P.uniformBoundaryCompatible β D := |
| 111 | H.hasIncidenceTrace.uniformBoundaryCompatible P D schedule.incidenceTrace |
| 112 | |
| 113 | end SurfaceResidualProgram |
| 114 | |
| 115 | end |
| 116 | |
| 117 | end OAI.AlgebraicGeometry.Resolution.Blowups.Surface.ResidualProgram.Construction |