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.CanonicalCenterIncidenceTrace |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.IncidenceTraceFixedComposition |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Surface.LogarithmicProgram |
| 4 | |
| 5 | /-! # Program Incidence Trace -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! All prescribed-level logarithmic surface programs have one exact pure incidence trace. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | def Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace (n : ℕ) : (m : ℕ) → (β : Type) → [Fintype β] → Boundary.IncidenceTrace.Construction.BoundaryIncidenceTrace β |
| 16 | | 0, β, _ => .stop β |
| 17 | | m + 1, β, _ => if (n + 1).factorial ≤ m + 1 then |
| 18 | (CanonicalCenterIncidenceTrace.Construction.canonicalCenterIncidenceTrace β).appendAtLength (Fintype.card (Finset β)) (CanonicalCenterIncidenceTrace.Construction.canonicalCenterIncidenceTrace_length β) |
| 19 | (boundedSurfaceIncidenceTrace n m (ControlPrefix.CanonicalLabels.Construction.iteratedBoundaryLabels (Fintype.card (Finset β)) β)) |
| 20 | else .stop β |
| 21 | |
| 22 | theorem Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace_of_lt (n m : ℕ) (β : Type) [Fintype β] (h : m < (n + 1).factorial) : |
| 23 | Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace n m β = .stop β := by |
| 24 | cases m with |
| 25 | | zero => rfl |
| 26 | | succ m => exact ite_eq_right (Nat.not_le.mpr h) |
| 27 | |
| 28 | theorem Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace_length (n m : ℕ) (β : Type) [Fintype β] : |
| 29 | (Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace n m β).length = Uniform.IncidenceSurfaceLength.Construction.surfaceIncidenceProgramStepCount n m (Fintype.card β) := by |
| 30 | classical |
| 31 | induction m generalizing β with |
| 32 | | zero => rfl |
| 33 | | succ m ih => |
| 34 | by_cases h : (n + 1).factorial ≤ m + 1 |
| 35 | · rw [Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace, ite_eq_left h, Boundary.IncidenceTrace.Construction.BoundaryIncidenceTrace.appendAtLength_length, |
| 36 | ih, Uniform.IncidenceSurfaceLength.Construction.card_iteratedBoundaryLabels, Fintype.card_finset] |
| 37 | exact (ite_eq_left h).symm |
| 38 | · rw [Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace, ite_eq_right h] |
| 39 | exact (ite_eq_right h).symm |
| 40 | |
| 41 | theorem Uniform.IncidenceSurfaceProgram.Construction.UniformIncidenceSurfaceProgram.hasIncidenceTrace |
| 42 | {n m : ℕ} {β : Type} [Fintype β] {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 43 | {J : X.IdealSheafData} {K : Y.IdealSheafData} {D : β → X.IdealSheafData} |
| 44 | {P : Smooth.ControlPrefix.Construction.SmoothControlPrefix (n + 1) X f J Y g K} |
| 45 | (T : Uniform.IncidenceSurfaceProgram.Construction.UniformIncidenceSurfaceProgram n m β X f J D Y g K P) : |
| 46 | P.HasIncidenceTrace β D (Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace n m β) := by |
| 47 | induction T with |
| 48 | | terminal hstop E ht => |
| 49 | rw [Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace_of_lt _ _ _ hstop] |
| 50 | exact ⟨E⟩ |
| 51 | | refine A hb hd hlevel AM P hcenters hcount hP Q tail ih => |
| 52 | rw [Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace, ite_eq_left hlevel] |
| 53 | have hhead := A.surfaceIncidenceCenters_hasTrace _ hb hd hlevel _ AM P hcenters |
| 54 | exact hhead.appendAtLength P Q _ _ _ (CanonicalCenterIncidenceTrace.Construction.canonicalCenterIncidenceTrace_length _) _ ih |
| 55 | |
| 56 | def Surface.ProgramIncidenceTrace.Construction.logarithmicSurfaceIncidenceTrace (n m : ℕ) (β : Type) [Fintype β] : Boundary.IncidenceTrace.Construction.BoundaryIncidenceTrace β := |
| 57 | (CanonicalCenterIncidenceTrace.Construction.canonicalCenterIncidenceTrace β).appendAtLength (Fintype.card (Finset β)) (CanonicalCenterIncidenceTrace.Construction.canonicalCenterIncidenceTrace_length β) |
| 58 | (Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace n m (ControlPrefix.CanonicalLabels.Construction.iteratedBoundaryLabels (Fintype.card (Finset β)) β)) |
| 59 | |
| 60 | theorem Surface.ProgramIncidenceTrace.Construction.logarithmicSurfaceIncidenceTrace_length (n m : ℕ) (β : Type) [Fintype β] : |
| 61 | (Surface.ProgramIncidenceTrace.Construction.logarithmicSurfaceIncidenceTrace n m β).length = Surface.LogarithmicProgram.Construction.surfaceLogarithmicProgramStepCount n m (Fintype.card β) := by |
| 62 | classical |
| 63 | rw [Surface.ProgramIncidenceTrace.Construction.logarithmicSurfaceIncidenceTrace, Boundary.IncidenceTrace.Construction.BoundaryIncidenceTrace.appendAtLength_length, |
| 64 | Surface.ProgramIncidenceTrace.Construction.boundedSurfaceIncidenceTrace_length, Uniform.IncidenceSurfaceLength.Construction.card_iteratedBoundaryLabels, Fintype.card_finset] |
| 65 | rfl |
| 66 | |
| 67 | theorem Surface.LogarithmicProgram.Construction.SurfaceLogarithmicProgram.hasIncidenceTrace |
| 68 | {n m : ℕ} {β : Type} [Fintype β] {X Y : Scheme} {f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} {g : Y ⟶ Foundations.Scheme.ProjectiveSpace.complexBase} |
| 69 | {J : X.IdealSheafData} {K : Y.IdealSheafData} {D : β → X.IdealSheafData} |
| 70 | {P : Smooth.ControlPrefix.Construction.SmoothControlPrefix (n + 1) X f J Y g K} |
| 71 | (T : Surface.LogarithmicProgram.Construction.SurfaceLogarithmicProgram n m β X f J D Y g K P) : |
| 72 | P.HasIncidenceTrace β D (Surface.ProgramIncidenceTrace.Construction.logarithmicSurfaceIncidenceTrace n m β) := by |
| 73 | cases T with |
| 74 | | component A AM P hcenters hcount hP Q tail => |
| 75 | have hhead := A.componentIncidenceCenters_hasTrace _ AM P hcenters |
| 76 | exact hhead.appendAtLength P Q _ _ _ (CanonicalCenterIncidenceTrace.Construction.canonicalCenterIncidenceTrace_length _) _ tail.hasIncidenceTrace |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.Resolution.Blowups |