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.IntersectionTheory.ProjectionFormula.Principal.ChartEquations |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.AffineExpansion |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.HigherAvoidance |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartSupportCover |
| 5 | |
| 6 | /-! # Descent Position -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.DescentPosition |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! One representative simultaneously has native numerator and |
| 13 | denominator Euler expansions on every support chart, meets the support |
| 14 | properly, and permits restriction of the rational function to every |
| 15 | generic intersection component. -/ |
| 16 | |
| 17 | set_option backward.isDefEq.respectTransparency false |
| 18 | set_option backward.isDefEq.respectTransparency.types false |
| 19 | |
| 20 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 21 | |
| 22 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm.FiniteSupportCharts OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ChartEquations |
| 23 | |
| 24 | def PrimeData (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (k : ℕ) (W : IrreducibleCloseds X.carrier) |
| 25 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) (hg : g ≠ 0) |
| 26 | (F : ∀ i : Affine.ChartGerm.FiniteSupportCharts.Index X W × Bool, Finset (PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W i.1))) : Prop := |
| 27 | ∀ i, ∀ z ∈ F i, (Affine.ChartGerm.FiniteSupportCharts.prime X W i.1).asIdeal ≤ z.asIdeal ∧ |
| 28 | ChartEquations.equation X W g hg i ∈ z.asIdeal ∧ |
| 29 | X.supportCodimension (Affine.FiltrationAvoidance.support (R := Affine.ChartGerm.FiniteSupportCharts.ring X W i.1) |
| 30 | (Affine.ChartGerm.FiniteSupportCharts.chart X W i.1) z) = k + 1 |
| 31 | |
| 32 | def familyExpansion (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (p q : ℕ) {τ : Type} |
| 33 | (R : τ → Type) [∀ i, CommRing (R i)] [∀ i, IsNoetherianRing (R i)] |
| 34 | (j : ∀ i, Spec (.of (R i)) ⟶ X.carrier) (v : ∀ i, PrimeSpectrum (R i)) (r : ∀ i, R i) |
| 35 | (F : ∀ i, Finset (PrimeSpectrum (R i))) (a : X.RationalDimensionCycle p) : Prop := |
| 36 | ∀ i, AffineExpansion.Expansion X p q (j i) (v i) (r i) (F i) a |
| 37 | |
| 38 | def familyOutside (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (q : ℕ) {τ : Type} |
| 39 | (R : τ → Type) [∀ i, CommRing (R i)] [∀ i, IsNoetherianRing (R i)] |
| 40 | (j : ∀ i, Spec (.of (R i)) ⟶ X.carrier) (v : ∀ i, PrimeSpectrum (R i)) (r : ∀ i, R i) |
| 41 | (F : ∀ i, Finset (PrimeSpectrum (R i))) : Prop := |
| 42 | ∀ i, ∀ z : PrimeSpectrum (R i), X.supportCodimension (Affine.FiltrationAvoidance.support (j i) z) = q → |
| 43 | z ∉ F i → Affine.PrincipalWeight.weight (R i) (v i) (r i) z = 0 |
| 44 | |
| 45 | def Outside (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (k : ℕ) (W : IrreducibleCloseds X.carrier) |
| 46 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) (hg : g ≠ 0) |
| 47 | (F : ∀ i : Affine.ChartGerm.FiniteSupportCharts.Index X W × Bool, Finset (PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W i.1))) : Prop := |
| 48 | familyOutside X (k + 1) (fun i : Affine.ChartGerm.FiniteSupportCharts.Index X W × Bool => (Affine.ChartGerm.FiniteSupportCharts.ring X W i.1 : Type)) |
| 49 | (fun i => Affine.ChartGerm.FiniteSupportCharts.chart X W i.1) (fun i => Affine.ChartGerm.FiniteSupportCharts.prime X W i.1) (ChartEquations.equation X W g hg) F |
| 50 | |
| 51 | def Expansions (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (p k : ℕ) (W : IrreducibleCloseds X.carrier) |
| 52 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) (hg : g ≠ 0) |
| 53 | (F : ∀ i : Affine.ChartGerm.FiniteSupportCharts.Index X W × Bool, Finset (PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W i.1))) |
| 54 | (a : X.RationalDimensionCycle p) : Prop := |
| 55 | familyExpansion X p (k + 1) (fun i : Affine.ChartGerm.FiniteSupportCharts.Index X W × Bool => (Affine.ChartGerm.FiniteSupportCharts.ring X W i.1 : Type)) |
| 56 | (fun i => Affine.ChartGerm.FiniteSupportCharts.chart X W i.1) (fun i => Affine.ChartGerm.FiniteSupportCharts.prime X W i.1) (ChartEquations.equation X W g hg) F a |
| 57 | |
| 58 | def Units (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (p k : ℕ) (W : IrreducibleCloseds X.carrier) |
| 59 | (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) (a : X.RationalDimensionCycle p) : Prop := |
| 60 | ∀ A ∈ a.support, ∀ C : X.DimensionCycleSupport (p + k), C.val ≤ A.val → C.val ≤ W → |
| 61 | ∀ hxW : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (W : Set X.carrier), |
| 62 | ∃ u : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPreimage W (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW), |
| 63 | IsUnit u ∧ algebraMap _ (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField u = g |
| 64 | |
| 65 | theorem exists_moved (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p k : ℕ) |
| 66 | [SmoothOfRelativeDimension m X.structureMap] |
| 67 | (W : X.DimensionCycleSupport k) (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val).functionField) (hg : g ≠ 0) |
| 68 | {ι : Type} [Finite ι] (Z₀ : ι → IrreducibleCloseds X.carrier) (a : X.RationalDimensionCycle p) : |
| 69 | ∃ (F : ∀ i : Affine.ChartGerm.FiniteSupportCharts.Index X W.val × Bool, Finset (PrimeSpectrum (Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1))) |
| 70 | (a' : X.RationalDimensionCycle p), |
| 71 | CycleClass.Thom.IntersectionGeometry.RationallyEquivalent X p a a' ∧ |
| 72 | a' ∈ Proper.SupportCycles.submodule X p Z₀ ∧ |
| 73 | a' ∈ Proper.SupportCycles.submodule X p (ChartSupportCover.family X m k W g hg) ∧ |
| 74 | (∀ A ∈ a'.support, Supports.ProperCycle.pairMeetsProperly X p k A W) ∧ |
| 75 | PrimeData X k W.val g hg F ∧ Outside X k W.val g hg F ∧ |
| 76 | Expansions X p k W.val g hg F a' ∧ Units X p k W.val g a' := by |
| 77 | classical |
| 78 | obtain ⟨T, _, hT⟩ := Support.HigherAvoidance.UnitStrata.exists_data X m k W g hg |
| 79 | let J := (ι ⊕ ChartSupportCover.Index X m k W g hg) ⊕ Option T |
| 80 | let Z : J → IrreducibleCloseds X.carrier := |
| 81 | Sum.elim (Sum.elim Z₀ (ChartSupportCover.family X m k W g hg)) |
| 82 | (fun o => o.elim W.val Subtype.val) |
| 83 | let I := Affine.ChartGerm.FiniteSupportCharts.Index X W.val × Bool |
| 84 | let R : I → Type := fun i => Affine.ChartGerm.FiniteSupportCharts.ring X W.val i.1 |
| 85 | let j : ∀ i, Spec (.of (R i)) ⟶ X.carrier := fun i => Affine.ChartGerm.FiniteSupportCharts.chart X W.val i.1 |
| 86 | let v : ∀ i, PrimeSpectrum (R i) := fun i => Affine.ChartGerm.FiniteSupportCharts.prime X W.val i.1 |
| 87 | have hv (i : I) : X.supportCodimension (Affine.FiltrationAvoidance.support (j i) (v i)) = k := by |
| 88 | rw [show Affine.FiltrationAvoidance.support (j i) (v i) = W.val from Affine.ChartGerm.FiniteSupportCharts.prime_support X W.val i.1] |
| 89 | exact W.property |
| 90 | obtain ⟨F, a', ha', hproper, hF, hout, he⟩ := |
| 91 | AffineExpansion.Simultaneous.exists_moved X m p R j (fun _ => k) v hv |
| 92 | (ChartEquations.equation X W.val g hg) (ChartEquations.equation_avoid X W.val g hg) Z a |
| 93 | refine ⟨F, a', ha', ?_, ?_, ?_, hF, hout, he, ?_⟩ |
| 94 | · intro i A hA |
| 95 | exact hproper (.inl (.inl i)) A hA |
| 96 | · intro i A hA |
| 97 | exact hproper (.inl (.inr i)) A hA |
| 98 | · intro A hA C hC |
| 99 | have h := hproper (.inr none) A hA C hC |
| 100 | change p + X.supportCodimension W.val ≤ X.supportCodimension C at h |
| 101 | rwa [W.property] at h |
| 102 | · intro A hA |
| 103 | apply hT p A |
| 104 | intro B hB |
| 105 | exact hproper (.inr (some ⟨B, hB⟩)) A hA |
| 106 | |
| 107 | end |
| 108 | |
| 109 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.DescentPosition |