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.Component.CenterOverlap |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Finite.OpenIdealSheafUniqueness |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Affine.IdealSheafIdentification |
| 4 | import OAI.AlgebraicGeometry.Resolution.Blowups.Affine.IdealChartDescent |
| 5 | |
| 6 | /-! # Component Gluing -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.GlobalCoefficient.ComponentGluing.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Native global component centers from independent smooth affine maximal-contact charts. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | universe u v |
| 17 | |
| 18 | theorem affineQuotientKernel_eq_iff {R : Type u} [CommRing R] (I J : Ideal R) : |
| 19 | Affine.QuotientKernel.Construction.affineQuotientKernel I = Affine.QuotientKernel.Construction.affineQuotientKernel J ↔ I = J := by |
| 20 | constructor |
| 21 | · intro h |
| 22 | exact le_antisymm ((Affine.IdealChartDescent.Construction.affineQuotientKernel_le_iff I J).mp h.le) |
| 23 | ((Affine.IdealChartDescent.Construction.affineQuotientKernel_le_iff J I).mp h.ge) |
| 24 | · exact congrArg Affine.QuotientKernel.Construction.affineQuotientKernel |
| 25 | |
| 26 | theorem idealSheaf_eq_of_fromSpec {X : Scheme.{u}} (I J : X.IdealSheafData) |
| 27 | (h : ∀ U : X.affineOpens, I.comap U.2.fromSpec = J.comap U.2.fromSpec) : I = J := by |
| 28 | ext1 |
| 29 | funext U |
| 30 | have he := h U |
| 31 | rw [Affine.IdealSheafIdentification.Construction.idealSheaf_comap_fromSpec_eq_quotient_kernel, Affine.IdealSheafIdentification.Construction.idealSheaf_comap_fromSpec_eq_quotient_kernel] at he |
| 32 | exact (affineQuotientKernel_eq_iff (I.ideal U) (J.ideal U)).mp he |
| 33 | |
| 34 | theorem existsUnique_global_coefficient_component_center |
| 35 | (k : Type u) [Field k] [CharZero k] [IsAlgClosed k] |
| 36 | {X : Scheme.{u}} (f : X ⟶ Spec (.of k)) {ι : Type v} [Finite ι] |
| 37 | (R : ι → CommRingCat.{u}) [∀ i, Algebra k (R i)] [∀ i, Algebra ℚ (R i)] |
| 38 | [∀ i, Algebra.Smooth k (R i)] (j : ∀ i, Spec (R i) ⟶ X) |
| 39 | [∀ i, IsOpenImmersion (j i)] [∀ i, QuasiCompact (j i)] |
| 40 | (hstructure : ∀ i, j i ≫ f = Spec.map (CommRingCat.ofHom (algebraMap k (R i)))) |
| 41 | (hcover : ⨆ i, (j i).opensRange = ⊤) (J : X.IdealSheafData) |
| 42 | (A : ∀ i, Ideal (R i)) (hA : ∀ i, J.comap (j i) = Affine.QuotientKernel.Construction.affineQuotientKernel (A i)) |
| 43 | (n : ℕ) (z : ∀ i, R i) (D : ∀ i, Derivation k (R i) (R i)) |
| 44 | (hD : ∀ i, D i (z i) = 1) (hz : ∀ i, z i ∈ Relative.DifferentialBlowup.Construction.iteratedRelativeDifferentialIdeal k (A i) n) : |
| 45 | ∃! I : X.IdealSheafData, ∀ i, I.comap (j i) = |
| 46 | Affine.QuotientKernel.Construction.affineQuotientKernel (Coefficient.ComponentNaturality.Construction.coefficientComponentCenter k (z i) (Relative.DifferentialEquiv.Construction.relativeHomogenizedIdeal k (A i) n) (n + 1)) := by |
| 47 | let C (i : ι) := Affine.QuotientKernel.Construction.affineQuotientKernel |
| 48 | (Coefficient.ComponentNaturality.Construction.coefficientComponentCenter k (z i) (Relative.DifferentialEquiv.Construction.relativeHomogenizedIdeal k (A i) n) (n + 1)) |
| 49 | apply Blowups.Finite.OpenIdealSheafUniqueness.Construction.existsUnique_idealSheaf_of_finite_affine_cover (fun i => Spec (R i)) j hcover C |
| 50 | intro a b |
| 51 | apply idealSheaf_eq_of_fromSpec |
| 52 | intro W |
| 53 | let P := pullback (j a) (j b) |
| 54 | let S := Γ(P, W) |
| 55 | let u : Spec (.of S) ⟶ Spec (R a) := W.2.fromSpec ≫ pullback.fst (j a) (j b) |
| 56 | let v : Spec (.of S) ⟶ Spec (R b) := W.2.fromSpec ≫ pullback.snd (j a) (j b) |
| 57 | let φ : R a →+* S := (Spec.preimage u).hom |
| 58 | let ψ : R b →+* S := (Spec.preimage v).hom |
| 59 | have hφ : Spec.map (CommRingCat.ofHom φ) = u := Spec.map_preimage u |
| 60 | have hψ : Spec.map (CommRingCat.ofHom ψ) = v := Spec.map_preimage v |
| 61 | have hcomm : u ≫ j a = v ≫ j b := by |
| 62 | dsimp only [u, v] |
| 63 | rw [Category.assoc, Category.assoc, pullback.condition] |
| 64 | have hbase : φ.comp (algebraMap k (R a)) = ψ.comp (algebraMap k (R b)) := by |
| 65 | have he : CommRingCat.ofHom (φ.comp (algebraMap k (R a))) = |
| 66 | CommRingCat.ofHom (ψ.comp (algebraMap k (R b))) := by |
| 67 | apply Spec.map_injective |
| 68 | change Spec.map (CommRingCat.ofHom (algebraMap k (R a)) ≫ CommRingCat.ofHom φ) = |
| 69 | Spec.map (CommRingCat.ofHom (algebraMap k (R b)) ≫ CommRingCat.ofHom ψ) |
| 70 | rw [Spec.map_comp, Spec.map_comp, hφ, hψ, ← hstructure a, ← hstructure b] |
| 71 | simpa only [Category.assoc] using congrArg (fun m => m ≫ f) hcomm |
| 72 | exact congrArg CommRingCat.Hom.hom he |
| 73 | let : Algebra k S := (φ.comp (algebraMap k (R a))).toAlgebra |
| 74 | let φₖ : R a →ₐ[k] S := { __ := φ, commutes' := fun _ => rfl } |
| 75 | let ψₖ : R b →ₐ[k] S := { __ := ψ, commutes' := fun c => (RingHom.congr_fun hbase c).symm } |
| 76 | let : IsOpenImmersion W.2.fromSpec := W.2.isOpenImmersion_fromSpec |
| 77 | have hφe : φₖ.toRingHom.Etale := by |
| 78 | apply (HasRingHomProperty.Spec_iff (P := @Etale)).mp |
| 79 | rw [Spec.map_preimage] |
| 80 | exact inferInstanceAs (Etale u) |
| 81 | have hψe : ψₖ.toRingHom.Etale := by |
| 82 | apply (HasRingHomProperty.Spec_iff (P := @Etale)).mp |
| 83 | rw [Spec.map_preimage] |
| 84 | exact inferInstanceAs (Etale v) |
| 85 | have hAJ : (A a).map φ = (A b).map ψ := by |
| 86 | apply (affineQuotientKernel_eq_iff _ _).mp |
| 87 | rw [← Affine.IdealChartDescent.Construction.affineQuotientKernel_comap_hom, ← Affine.IdealChartDescent.Construction.affineQuotientKernel_comap_hom, hφ, hψ, |
| 88 | ← hA a, ← hA b, ← Scheme.IdealSheafData.comap_comp, ← Scheme.IdealSheafData.comap_comp, hcomm] |
| 89 | have hc := Component.CenterOverlap.Construction.coefficient_component_centers_agree_on_common_refinement k φₖ ψₖ hφe hψe |
| 90 | (A a) (A b) hAJ n (z a) (z b) (D a) (D b) (hD a) (hD b) (hz a) (hz b) |
| 91 | rw [← Scheme.IdealSheafData.comap_comp, ← Scheme.IdealSheafData.comap_comp] |
| 92 | change (C a).comap u = (C b).comap v |
| 93 | rw [← hφ, ← hψ] |
| 94 | change (Affine.QuotientKernel.Construction.affineQuotientKernel _).comap _ = (Affine.QuotientKernel.Construction.affineQuotientKernel _).comap _ |
| 95 | rw [Affine.IdealChartDescent.Construction.affineQuotientKernel_comap_hom, Affine.IdealChartDescent.Construction.affineQuotientKernel_comap_hom] |
| 96 | exact congrArg Affine.QuotientKernel.Construction.affineQuotientKernel hc |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.Resolution.Blowups.GlobalCoefficient.ComponentGluing.Construction |