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.Affine.ClosedSupportCoordinates |
| 2 | import OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.General.ChowMoving |
| 3 | |
| 4 | /-! # Chart Germ -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Fixed finite ambient affine charts cover the chosen support. |
| 13 | Their native coordinate primes and section fractions are available |
| 14 | before any cycle is moved. -/ |
| 15 | |
| 16 | set_option backward.isDefEq.respectTransparency false |
| 17 | set_option backward.isDefEq.respectTransparency.types false |
| 18 | |
| 19 | open _root_.CategoryTheory _root_.AlgebraicGeometry _root_.TopologicalSpace |
| 20 | |
| 21 | namespace FiniteSupportCharts |
| 22 | |
| 23 | def affineMap {Y : Scheme} (U : Y.Opens) (hU : IsAffineOpen U) : |
| 24 | Spec (.of (Γ(Y, U) : Type)) ⟶ Y := hU.fromSpec |
| 25 | |
| 26 | variable (X : Foundations.Scheme.SmoothProjective.SmoothProjectivePresentation) (W : IrreducibleCloseds X.carrier) |
| 27 | |
| 28 | def Index : Type := {i : X.carrier.affineCover.finiteSubcover.I₀ // |
| 29 | Nonempty ((CycleClass.Geometric.GenericPoint.reducedSupportι W) ⁻¹ᵁ (X.carrier.affineCover.finiteSubcover.f i).opensRange)} |
| 30 | |
| 31 | instance : Finite (Index X W) := by unfold Index; infer_instance |
| 32 | |
| 33 | def opens (i : Index X W) : X.carrier.Opens := |
| 34 | (X.carrier.affineCover.finiteSubcover.f i.val).opensRange |
| 35 | |
| 36 | theorem affine (i : Index X W) : IsAffineOpen (opens X W i) := |
| 37 | isAffineOpen_opensRange (X.carrier.affineCover.finiteSubcover.f i.val) |
| 38 | |
| 39 | instance (i : Index X W) : Nonempty ((CycleClass.Geometric.GenericPoint.reducedSupportι W) ⁻¹ᵁ opens X W i) := i.property |
| 40 | |
| 41 | def ring (i : Index X W) : CommRingCat := Γ(X.carrier, opens X W i) |
| 42 | |
| 43 | instance (i : Index X W) : IsNoetherianRing (ring X W i) := |
| 44 | IsLocallyNoetherian.component_noetherian ⟨opens X W i, affine X W i⟩ |
| 45 | |
| 46 | def chart (i : Index X W) : Spec (.of (ring X W i : Type)) ⟶ X.carrier := |
| 47 | affineMap (opens X W i) (affine X W i) |
| 48 | |
| 49 | instance (i : Index X W) : IsOpenImmersion (chart X W i) := by unfold chart affineMap; infer_instance |
| 50 | |
| 51 | def prime (i : Index X W) : PrimeSpectrum (ring X W i) := |
| 52 | ClosedSupportCoordinates.prime (CycleClass.Geometric.GenericPoint.reducedSupportι W) (opens X W i) |
| 53 | |
| 54 | theorem prime_point (i : Index X W) : chart X W i (prime X W i) = CycleClass.Thom.IntersectionGeometry.supportPoint W := |
| 55 | (ClosedSupportCoordinates.point (CycleClass.Geometric.GenericPoint.reducedSupportι W) (opens X W i) (affine X W i)).trans |
| 56 | (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq W) |
| 57 | |
| 58 | theorem prime_support (i : Index X W) : |
| 59 | FiltrationAvoidance.support (chart X W i) (prime X W i) = W := |
| 60 | ClosedSupportCoordinates.support (CycleClass.Geometric.GenericPoint.reducedSupportι W) (opens X W i) (affine X W i) |
| 61 | W (CycleClass.Geometric.GenericPoint.reducedSupport_genericPoint_eq W) |
| 62 | |
| 63 | theorem covers (x : X.carrier) (hx : x ∈ (W : Set X.carrier)) : |
| 64 | ∃ i : Index X W, x ∈ opens X W i := by |
| 65 | obtain ⟨i, y, hy⟩ := X.carrier.affineCover.finiteSubcover.exists_eq x |
| 66 | have hxi : x ∈ (X.carrier.affineCover.finiteSubcover.f i).opensRange := ⟨y, hy⟩ |
| 67 | have hnonempty : Nonempty ((CycleClass.Geometric.GenericPoint.reducedSupportι W) ⁻¹ᵁ |
| 68 | (X.carrier.affineCover.finiteSubcover.f i).opensRange) := |
| 69 | ⟨⟨CycleClass.Thom.IntersectionGeometry.supportPreimage W x hx, by |
| 70 | change CycleClass.Geometric.GenericPoint.reducedSupportι W (CycleClass.Thom.IntersectionGeometry.supportPreimage W x hx) ∈ |
| 71 | (X.carrier.affineCover.finiteSubcover.f i).opensRange |
| 72 | rwa [CycleClass.Thom.IntersectionGeometry.supportPreimage_spec]⟩⟩ |
| 73 | exact ⟨⟨i, hnonempty⟩, hxi⟩ |
| 74 | |
| 75 | theorem exists_fractions (g : (CycleClass.Geometric.GenericPoint.reducedSupportScheme W).functionField) (hg : g ≠ 0) : |
| 76 | ∃ (a b : ∀ i : Index X W, ring X W i), |
| 77 | (∀ i, a i ∉ (prime X W i).asIdeal ∧ b i ∉ (prime X W i).asIdeal) ∧ |
| 78 | ∀ (i : Index X W) (x : X.carrier) (hxW : x ∈ (W : Set X.carrier)) (hxU : x ∈ opens X W i), |
| 79 | Support.LocalFraction.Restriction.toFunctionField X.carrier W x hxW |
| 80 | (X.carrier.presheaf.germ (opens X W i) x hxU (a i)) ≠ 0 ∧ |
| 81 | Support.LocalFraction.Restriction.toFunctionField X.carrier W x hxW |
| 82 | (X.carrier.presheaf.germ (opens X W i) x hxU (b i)) ≠ 0 ∧ |
| 83 | g = Support.LocalFraction.Restriction.toFunctionField X.carrier W x hxW |
| 84 | (X.carrier.presheaf.germ (opens X W i) x hxU (a i)) / |
| 85 | Support.LocalFraction.Restriction.toFunctionField X.carrier W x hxW |
| 86 | (X.carrier.presheaf.germ (opens X W i) x hxU (b i)) := by |
| 87 | choose a b ha hb he using fun i : Index X W => |
| 88 | SupportFractions.exists_sections X.carrier W (opens X W i) (affine X W i) g hg |
| 89 | exact ⟨a, b, fun i => ⟨ha i, hb i⟩, he⟩ |
| 90 | |
| 91 | end FiniteSupportCharts |
| 92 | |
| 93 | end |
| 94 | |
| 95 | /-! An ambient affine section becomes exactly its native affine |
| 96 | stalk germ under the actual chart stalk isomorphism. -/ |
| 97 | |
| 98 | set_option backward.isDefEq.respectTransparency false |
| 99 | set_option backward.isDefEq.respectTransparency.types false |
| 100 | |
| 101 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 102 | |
| 103 | theorem map (X : Scheme) (U : X.Opens) (hU : IsAffineOpen U) |
| 104 | (x : Spec Γ(X, U)) (hx : hU.fromSpec x ∈ U) : |
| 105 | X.presheaf.germ U (hU.fromSpec x) hx ≫ hU.fromSpec.stalkMap x = |
| 106 | StructureSheaf.toStalk Γ(X, U) x := by |
| 107 | rw [Scheme.Hom.germ_stalkMap, hU.fromSpec_app_self, Category.assoc] |
| 108 | rw [(Spec Γ(X, U)).presheaf.germ_res (eqToHom hU.fromSpec_preimage_self) x hx] |
| 109 | rfl |
| 110 | |
| 111 | theorem apply (X : Scheme) (U : X.Opens) (hU : IsAffineOpen U) |
| 112 | (x : Spec Γ(X, U)) (hx : hU.fromSpec x ∈ U) (r : Γ(X, U)) : |
| 113 | hU.fromSpec.stalkMap x (X.presheaf.germ U (hU.fromSpec x) hx r) = |
| 114 | StructureSheaf.toStalk Γ(X, U) x r := |
| 115 | congrArg (fun f : Γ(X, U) ⟶ (Spec Γ(X, U)).presheaf.stalk x => f r) (map X U hU x hx) |
| 116 | |
| 117 | end |
| 118 | |
| 119 | end OAI.AlgebraicGeometry.IntersectionTheory.ProjectionFormula.Affine.ChartGerm |