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.AuxiliaryProgram |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.FixedLengthBoundaryHistory |
| 3 | |
| 4 | /-! # History Schedule -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Surface |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! A common schedule fixes all history labels, coefficient levels, and intermediate boundary label types. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 13 | |
| 14 | instance HistorySchedule.Construction.iteratedBoundaryLabels_decidableEq (N : ℕ) (β : Type) [DecidableEq β] : |
| 15 | DecidableEq (ControlPrefix.CanonicalLabels.Construction.iteratedBoundaryLabels N β) := by |
| 16 | induction N generalizing β with |
| 17 | | zero => exact inferInstanceAs (DecidableEq β) |
| 18 | | succ N ih => exact ih (Option β) |
| 19 | |
| 20 | def HistorySchedule.Construction.surfaceAuxiliaryProgramStepCount (n ℓ k : ℕ) : ℕ := |
| 21 | LogarithmicProgram.Construction.surfaceLogarithmicProgramStepCount n ℓ (k - 1) |
| 22 | |
| 23 | theorem AuxiliaryProgram.Construction.SurfaceAuxiliaryProgram.stepCount |
| 24 | {n ℓ : ℕ} {β : Type} [Fintype β] [DecidableEq β] {X Y : Scheme} |
| 25 | {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 26 | {J : X.IdealSheafData} {K : Y.IdealSheafData} {D : β → X.IdealSheafData} {j : β} |
| 27 | {P : Smooth.ControlPrefix.Construction.SmoothControlPrefix (n + 1) X f (GlobalBoundary.Auxiliary.Construction.globalBoundaryAuxiliaryIdeal J (D j) (n + 1)) Y g K} |
| 28 | (T : AuxiliaryProgram.Construction.SurfaceAuxiliaryProgram n ℓ β X f J D j Y g K P) : |
| 29 | P.stepCount = HistorySchedule.Construction.surfaceAuxiliaryProgramStepCount n ℓ (Fintype.card β) := by |
| 30 | have h := LogarithmicProgram.Construction.SurfaceLogarithmicProgram.stepCount T |
| 31 | have hcard : Fintype.card {l : β // l ≠ j} = Fintype.card β - 1 := by |
| 32 | have he := Fintype.card_congr (Equiv.optionSubtypeNe j) |
| 33 | rw [Fintype.card_option] at he |
| 34 | omega |
| 35 | change P.stepCount = LogarithmicProgram.Construction.surfaceLogarithmicProgramStepCount n ℓ (Fintype.card {l : β // l ≠ j}) at h |
| 36 | rw [hcard] at h |
| 37 | exact h |
| 38 | |
| 39 | inductive HistorySchedule.Construction.SurfaceHistorySchedule (n : ℕ) : |
| 40 | {β γ : Type} → [Fintype β] → [Fintype γ] → [DecidableEq β] → (γ ↪ β) → Type 1 |
| 41 | | full {β γ : Type} [Fintype β] [Fintype γ] [DecidableEq β] (e : γ ↪ β) |
| 42 | (he : Function.Surjective e) (ℓ : ℕ) : SurfaceHistorySchedule n e |
| 43 | | clear {β γ : Type} [Fintype β] [Fintype γ] [DecidableEq β] (e : γ ↪ β) |
| 44 | (j : β) (hj : ∀ s, j ≠ e s) (ℓ : ℕ) |
| 45 | (tail : SurfaceHistorySchedule n |
| 46 | (FixedLengthBoundaryHistory.Construction.iteratedExtendedBoundaryHistory (HistorySchedule.Construction.surfaceAuxiliaryProgramStepCount n ℓ (Fintype.card β)) e j hj)) : |
| 47 | SurfaceHistorySchedule n e |
| 48 | |
| 49 | def HistorySchedule.Construction.SurfaceHistorySchedule.stepCount {n : ℕ} {β γ : Type} [Fintype β] [Fintype γ] [DecidableEq β] |
| 50 | {e : γ ↪ β} (S : HistorySchedule.Construction.SurfaceHistorySchedule n e) : ℕ := by |
| 51 | induction S with |
| 52 | | @full β γ _ _ _ e he ℓ => exact LogarithmicProgram.Construction.surfaceLogarithmicProgramStepCount n ℓ (Fintype.card β) |
| 53 | | @clear β γ _ _ _ e j hj ℓ tail ih => exact HistorySchedule.Construction.surfaceAuxiliaryProgramStepCount n ℓ (Fintype.card β) + ih |
| 54 | |
| 55 | end |
| 56 | |
| 57 | end OAI.AlgebraicGeometry.Resolution.Blowups.Surface |