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.ProgramIncidenceTrace |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.IncidenceTraceCarrier |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Surface.HistorySchedule |
| 4 | |
| 5 | /-! # Auxiliary Incidence Trace -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Surface |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! An auxiliary surface program has one exact incidence trace including the retained old boundary label. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | def AuxiliaryIncidenceTrace.Construction.auxiliarySurfaceIncidenceTrace (n ℓ : ℕ) (β : Type) [Fintype β] [DecidableEq β] (j : β) : |
| 16 | Boundary.IncidenceTrace.Construction.BoundaryIncidenceTrace β := |
| 17 | (ProgramIncidenceTrace.Construction.logarithmicSurfaceIncidenceTrace n ℓ {l : β // l ≠ j}).adjoinCarrier.reindex β |
| 18 | (Equiv.optionSubtypeNe j).symm.toEmbedding |
| 19 | |
| 20 | theorem AuxiliaryIncidenceTrace.Construction.auxiliarySurfaceIncidenceTrace_length (n ℓ : ℕ) (β : Type) [Fintype β] [DecidableEq β] (j : β) : |
| 21 | (AuxiliaryIncidenceTrace.Construction.auxiliarySurfaceIncidenceTrace n ℓ β j).length = HistorySchedule.Construction.surfaceAuxiliaryProgramStepCount n ℓ (Fintype.card β) := by |
| 22 | rw [AuxiliaryIncidenceTrace.Construction.auxiliarySurfaceIncidenceTrace, Boundary.IncidenceTrace.Construction.BoundaryIncidenceTrace.reindex_length, |
| 23 | Boundary.IncidenceTrace.Construction.BoundaryIncidenceTrace.adjoinCarrier_length, ProgramIncidenceTrace.Construction.logarithmicSurfaceIncidenceTrace_length] |
| 24 | have hcard : Fintype.card {l : β // l ≠ j} = Fintype.card β - 1 := by |
| 25 | have he := Fintype.card_congr (Equiv.optionSubtypeNe j) |
| 26 | rw [Fintype.card_option] at he |
| 27 | omega |
| 28 | rw [hcard] |
| 29 | rfl |
| 30 | |
| 31 | theorem AuxiliaryProgram.Construction.SurfaceAuxiliaryProgram.hasIncidenceTrace |
| 32 | {n ℓ : ℕ} {β : Type} [Fintype β] [DecidableEq β] {X Y : Scheme} |
| 33 | {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} [Smooth f] {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 34 | {J : X.IdealSheafData} {K : Y.IdealSheafData} {D : β → X.IdealSheafData} {j : β} |
| 35 | {P : Blowups.Smooth.ControlPrefix.Construction.SmoothControlPrefix (n + 1) X f (GlobalBoundary.Auxiliary.Construction.globalBoundaryAuxiliaryIdeal J (D j) (n + 1)) Y g K} |
| 36 | (T : AuxiliaryProgram.Construction.SurfaceAuxiliaryProgram n ℓ β X f J D j Y g K P) |
| 37 | (A : Global.MonomialBoundaryAtlas.Construction.GlobalMonomialBoundaryAtlas f D [Finset.univ]) : |
| 38 | P.HasIncidenceTrace β D (AuxiliaryIncidenceTrace.Construction.auxiliarySurfaceIncidenceTrace n ℓ β j) := by |
| 39 | classical |
| 40 | let γ := {l : β // l ≠ j} |
| 41 | let E : γ → X.IdealSheafData := fun l => D l.val |
| 42 | have hT : P.HasIncidenceTrace γ E (ProgramIncidenceTrace.Construction.logarithmicSurfaceIncidenceTrace n ℓ γ) := |
| 43 | LogarithmicProgram.Construction.SurfaceLogarithmicProgram.hasIncidenceTrace T |
| 44 | let e : Option γ ≃ β := Equiv.optionSubtypeNe j |
| 45 | let F : Option γ → X.IdealSheafData := fun l => match l with | none => D j | some s => E s |
| 46 | have hF (l : Option γ) : F l = D (e l) := by cases l <;> rfl |
| 47 | let AF : Global.MonomialBoundaryAtlas.Construction.GlobalMonomialBoundaryAtlas f F [Finset.univ] := |
| 48 | A.pullbackLabels (fun l => some (e l)) |
| 49 | (fun l l' s hl hl' => e.injective (Option.some_injective _ (hl.trans hl'.symm))) F hF |
| 50 | have hPF : P.HasIncidenceTrace (Option γ) F (ProgramIncidenceTrace.Construction.logarithmicSurfaceIncidenceTrace n ℓ γ).adjoinCarrier := |
| 51 | hT.adjoin_auxiliary_carrier (Nat.succ_pos n) P J (D j) rfl γ E _ |
| 52 | (by convert AF using 1) |
| 53 | have ht := hPF.reindex P (Option γ) β F _ e.symm.toEmbedding |
| 54 | change P.HasIncidenceTrace β (fun l => F (e.symm l)) (AuxiliaryIncidenceTrace.Construction.auxiliarySurfaceIncidenceTrace n ℓ β j) at ht |
| 55 | have heq : (fun l => F (e.symm l)) = D := by |
| 56 | funext l |
| 57 | exact (hF (e.symm l)).trans (congrArg D (e.apply_symm_apply l)) |
| 58 | rwa [heq] at ht |
| 59 | |
| 60 | end |
| 61 | |
| 62 | end OAI.AlgebraicGeometry.Resolution.Blowups.Surface |