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.SingularOrderApproximation |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AdjacentSupportStalk |
| 3 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ClosedSectionCycle |
| 4 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.CycleSupport |
| 5 | |
| 6 | /-! # Adjacent Cycle Separation -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AdjacentCycleSeparation |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Actual principal divisors on possibly singular supports |
| 13 | separate finitely many supports in the next ambient codimension. -/ |
| 14 | |
| 15 | set_option backward.isDefEq.respectTransparency false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 18 | open scoped Classical |
| 19 | |
| 20 | open OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Principal.ClosedSectionCycle |
| 21 | |
| 22 | theorem exists_principal (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m r : ℕ) |
| 23 | [SmoothOfRelativeDimension m X.structureMap] (A : X.DimensionCycleSupport r) |
| 24 | (S : Finset (X.DimensionCycleSupport (r + 1))) (C : X.DimensionCycleSupport (r + 1)) |
| 25 | (hC : C ∈ S) (hCA : C.val ≤ A.val) : |
| 26 | ∃ (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).functionField) (k : ℕ), g ≠ 0 ∧ 0 < k ∧ |
| 27 | ∀ B ∈ S, Principal.ClosedSectionCycle.principalCycle X (r + 1) A.val g B = if B = C then (k : ℚ) else 0 := by |
| 28 | let T := {B : S // CycleClass.Thom.IntersectionGeometry.supportPoint B.val.val ∈ (A.val : Set X.carrier)} |
| 29 | let y : T → CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val := fun B => CycleClass.Thom.IntersectionGeometry.supportPreimage A.val |
| 30 | (CycleClass.Thom.IntersectionGeometry.supportPoint B.val.val.val) B.property |
| 31 | have hy (B : T) : CycleClass.Geometric.GenericPoint.reducedSupportι A.val (y B) = CycleClass.Thom.IntersectionGeometry.supportPoint B.val.val.val := |
| 32 | CycleClass.Thom.IntersectionGeometry.supportPreimage_spec A.val _ B.property |
| 33 | have hCx : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (A.val : Set X.carrier) := |
| 34 | hCA (C.val.isIrreducible.isGenericPoint_genericPoint C.val.isClosed).mem |
| 35 | let c : T := ⟨⟨C, hC⟩, hCx⟩ |
| 36 | let U := Finset.univ.image y |
| 37 | have hU (z : CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val) (hz : z ∈ U) : Order.coheight z = 1 := by |
| 38 | obtain ⟨B, _, rfl⟩ := Finset.mem_image.mp hz |
| 39 | exact AdjacentSupportStalk.coheight_one X m r A B.val.val B.property |
| 40 | obtain ⟨g, k, hg, hk, he⟩ := SingularOrderApproximation.exists_separating |
| 41 | (X.projective.reducedSupport A.val) U (y c) hU |
| 42 | refine ⟨g, k, hg, hk, fun B hB => ?_⟩ |
| 43 | rw [Principal.ClosedSectionCycle.principalCycle_apply] |
| 44 | by_cases hxB : CycleClass.Thom.IntersectionGeometry.supportPoint B.val ∈ (A.val : Set X.carrier) |
| 45 | · rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_left hxB] |
| 46 | let b : T := ⟨⟨B, hB⟩, hxB⟩ |
| 47 | have hb := he (y b) (Finset.mem_image.mpr ⟨b, Finset.mem_univ _, rfl⟩) |
| 48 | have heq : y b = y c ↔ B = C := by |
| 49 | constructor |
| 50 | · intro h |
| 51 | apply Subtype.ext |
| 52 | apply irreducibleSetEquivPoints.injective |
| 53 | exact (hy b).symm.trans ((congrArg (CycleClass.Geometric.GenericPoint.reducedSupportι A.val) h).trans (hy c)) |
| 54 | · intro h |
| 55 | subst B |
| 56 | rfl |
| 57 | change ((CycleClass.Geometric.GenericPoint.reducedSupportScheme A.val).ord g (y b) : ℚ) = _ |
| 58 | rw [hb, heq] |
| 59 | · rw [CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_right hxB, ite_eq_right] |
| 60 | intro h |
| 61 | subst B |
| 62 | exact hxB hCx |
| 63 | |
| 64 | theorem exists_relation (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m r : ℕ) |
| 65 | [SmoothOfRelativeDimension m X.structureMap] (A : X.DimensionCycleSupport r) |
| 66 | (S : Finset (X.DimensionCycleSupport (r + 1))) (C : X.DimensionCycleSupport (r + 1)) |
| 67 | (hC : C ∈ S) (hCA : C.val ≤ A.val) : |
| 68 | ∃ d : X.RationalDimensionCycle (r + 1), d ∈ CycleClass.Thom.IntersectionGeometry.rationalEquivalences X (r + 1) ∧ |
| 69 | CycleSupport.SupportedOn X (r + 1) d ⟨A.val, A.val.isClosed⟩ ∧ |
| 70 | ∀ B ∈ S, d B = if B = C then 1 else 0 := by |
| 71 | obtain ⟨g, k, hg, hk, he⟩ := exists_principal X m r A S C hC hCA |
| 72 | have hk0 : (k : ℚ) ≠ 0 := by exact_mod_cast (Nat.ne_of_gt hk) |
| 73 | refine ⟨(k : ℚ)⁻¹ • Principal.ClosedSectionCycle.principalCycle X (r + 1) A.val g, ?_, ?_, ?_⟩ |
| 74 | · exact Submodule.smul_mem _ _ (Submodule.subset_span |
| 75 | (Principal.ClosedSectionCycle.principalCycle_isPrincipalDivisor X (r + 1) A.val (by rw [A.property]) g hg)) |
| 76 | · intro B hB |
| 77 | apply (Supports.supportPoint_mem_iff_subset |
| 78 | (⟨A.val, A.val.isClosed⟩ : Closeds X.carrier) B.val).mp |
| 79 | by_contra hn |
| 80 | change CycleClass.Thom.IntersectionGeometry.supportPoint B.val ∉ (A.val : Set X.carrier) at hn |
| 81 | have hb := Finsupp.mem_support_iff.mp hB |
| 82 | apply hb |
| 83 | rw [Finsupp.smul_apply, Principal.ClosedSectionCycle.principalCycle_apply, CycleClass.Thom.IntersectionGeometry.principalDivisorCoefficient, dite_eq_right hn, smul_zero] |
| 84 | · intro B hB |
| 85 | rw [Finsupp.smul_apply, he B hB, smul_eq_mul] |
| 86 | split_ifs |
| 87 | · exact inv_mul_cancel₀ hk0 |
| 88 | · exact mul_zero _ |
| 89 | |
| 90 | end |
| 91 | |
| 92 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.AdjacentCycleSeparation |