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.Integral.DivisorThroughPoint |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Support.DivisorImage |
| 3 | |
| 4 | /-! # Intermediate Supports -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.IntermediateSupports |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Actual intermediate integral supports exist in every lower |
| 11 | codimension. Consequently native specialization coheight agrees with the |
| 12 | dimension grading at every support, in every ambient dimension. -/ |
| 13 | |
| 14 | set_option backward.isDefEq.respectTransparency false |
| 15 | set_option backward.isDefEq.respectTransparency.types false |
| 16 | |
| 17 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace _root_.Order |
| 18 | |
| 19 | theorem image_mem (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (W : IrreducibleCloseds X.carrier) |
| 20 | (Z : IrreducibleCloseds (CycleClass.Geometric.GenericPoint.reducedSupportScheme W)) (y : CycleClass.Geometric.GenericPoint.reducedSupportScheme W) |
| 21 | (hy : y ∈ (Z : Set (CycleClass.Geometric.GenericPoint.reducedSupportScheme W))) : |
| 22 | CycleClass.Geometric.GenericPoint.reducedSupportι W y ∈ (Support.DivisorImage.image X W Z : Set X.carrier) := by |
| 23 | have hs := ((Z.isIrreducible.isGenericPoint_genericPoint Z.isClosed).specializes hy).map |
| 24 | (CycleClass.Geometric.GenericPoint.reducedSupportι W).continuous |
| 25 | change CycleClass.Geometric.GenericPoint.reducedSupportι W (CycleClass.Thom.IntersectionGeometry.supportPoint Z) ⤳ CycleClass.Geometric.GenericPoint.reducedSupportι W y at hs |
| 26 | rw [← Support.DivisorImage.image_point X W Z] at hs |
| 27 | exact hs.mem_closed (Support.DivisorImage.image X W Z).isClosed |
| 28 | ((Support.DivisorImage.image X W Z).isIrreducible.isGenericPoint_genericPoint |
| 29 | (Support.DivisorImage.image X W Z).isClosed).mem |
| 30 | |
| 31 | theorem next_support (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m r p : ℕ) |
| 32 | [SmoothOfRelativeDimension m X.structureMap] |
| 33 | (W : X.DimensionCycleSupport r) (C : X.DimensionCycleSupport p) |
| 34 | (hr : r < p) (hCW : C.val ≤ W.val) : |
| 35 | ∃ A : X.DimensionCycleSupport (r + 1), C.val ≤ A.val ∧ A.val ≤ W.val := by |
| 36 | have hxW : CycleClass.Thom.IntersectionGeometry.supportPoint C.val ∈ (W.val : Set X.carrier) := |
| 37 | hCW (C.val.isIrreducible.isGenericPoint_genericPoint C.val.isClosed).mem |
| 38 | let y := CycleClass.Thom.IntersectionGeometry.supportPreimage W.val (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) hxW |
| 39 | have hy : y ≠ genericPoint (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val) := by |
| 40 | intro he |
| 41 | have hpnt := congrArg (CycleClass.Geometric.GenericPoint.reducedSupportι W.val) he |
| 42 | rw [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec, CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq] at hpnt |
| 43 | have hd := congrArg X.supportCodimension (irreducibleSetEquivPoints.injective hpnt) |
| 44 | rw [C.property, W.property] at hd |
| 45 | omega |
| 46 | obtain ⟨Z, hZ, hyZ⟩ := Integral.DivisorThroughPoint.exists_support (CycleClass.Geometric.GenericPoint.reducedSupportScheme W.val) y hy |
| 47 | let A := Support.DivisorImage.image X W.val Z |
| 48 | have hA : X.supportCodimension A = r + 1 := by |
| 49 | rw [Support.DivisorImage.codimension X W.val m Z hZ, W.property] |
| 50 | refine ⟨⟨A, hA⟩, ?_, Support.DivisorImage.image_le X W.val Z⟩ |
| 51 | apply (Supports.supportPoint_mem_iff_subset |
| 52 | (⟨(A : Set X.carrier), A.isClosed⟩ : Closeds X.carrier) C.val).mp |
| 53 | have h := image_mem X W.val Z y hyZ |
| 54 | rw [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec] at h |
| 55 | exact h |
| 56 | |
| 57 | theorem exists_support (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m r p : ℕ) |
| 58 | [SmoothOfRelativeDimension m X.structureMap] (C : X.DimensionCycleSupport p) (hr : r ≤ p) : |
| 59 | ∃ A : X.DimensionCycleSupport r, C.val ≤ A.val := by |
| 60 | induction r with |
| 61 | | zero => |
| 62 | exact ⟨ZeroComponents.containingComponent X m C.val, |
| 63 | ZeroComponents.subset_containingComponent X m C.val⟩ |
| 64 | | succ r ih => |
| 65 | obtain ⟨W, hCW⟩ := ih (by omega) |
| 66 | obtain ⟨A, hCA, _⟩ := next_support X m r p W C (by omega) hCW |
| 67 | exact ⟨A, hCA⟩ |
| 68 | |
| 69 | theorem support_coheight (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p : ℕ) |
| 70 | [SmoothOfRelativeDimension m X.structureMap] (C : X.DimensionCycleSupport p) : |
| 71 | coheight (CycleClass.Thom.IntersectionGeometry.supportPoint C.val) = p := by |
| 72 | induction p with |
| 73 | | zero => |
| 74 | have h := CurveSupports.coheight_le_codimension X m C.val |
| 75 | rw [C.property, Nat.cast_zero] at h |
| 76 | exact le_antisymm h zero_le |
| 77 | | succ p ih => |
| 78 | obtain ⟨A, hCA⟩ := exists_support X m p (p + 1) C (by omega) |
| 79 | have hne : C.val ≠ A.val := by |
| 80 | intro he |
| 81 | have h := congrArg X.supportCodimension he |
| 82 | rw [C.property, A.property] at h |
| 83 | omega |
| 84 | have hA : coheight A.val = p := by simpa only [CycleClass.Thom.IntersectionGeometry.supportPoint, coheight_orderIso] using ih A |
| 85 | apply le_antisymm |
| 86 | · simpa only [C.property] using CurveSupports.coheight_le_codimension X m C.val |
| 87 | · rw [CycleClass.Thom.IntersectionGeometry.supportPoint, coheight_orderIso] |
| 88 | simpa only [hA, Nat.cast_add, Nat.cast_one] using coheight_add_one_le (lt_of_le_of_ne hCA hne) |
| 89 | |
| 90 | theorem stalk_height (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (m p : ℕ) |
| 91 | [SmoothOfRelativeDimension m X.structureMap] (C : X.DimensionCycleSupport p) : |
| 92 | (IsLocalRing.maximalIdeal (X.carrier.presheaf.stalk (CycleClass.Thom.IntersectionGeometry.supportPoint C.val))).height = p := by |
| 93 | apply WithBot.coe_injective |
| 94 | rw [IsLocalRing.maximalIdeal_height_eq_ringKrullDim, ringKrullDim_stalk_eq_coheight, |
| 95 | support_coheight X m p C] |
| 96 | |
| 97 | end |
| 98 | |
| 99 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.IntermediateSupports |