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.GlobalCoefficient.ComponentGluing |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Component.CenterChoice |
| 3 | |
| 4 | /-! # Choice Gluing -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.GlobalComponent.ChoiceGluing.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! Gluing canonical component centers including affine charts already below the fixed control. -/ |
| 11 | |
| 12 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 13 | |
| 14 | universe u v |
| 15 | |
| 16 | theorem existsUnique_global_component_choice_center |
| 17 | (k : Type u) [Field k] [CharZero k] [IsAlgClosed k] |
| 18 | {X : Scheme.{u}} (f : X ⟶ Spec (.of k)) {ι : Type v} [Finite ι] |
| 19 | (R : ι → CommRingCat.{u}) [∀ i, Algebra k (R i)] [∀ i, Algebra ℚ (R i)] |
| 20 | [∀ i, Algebra.Smooth k (R i)] (j : ∀ i, Spec (R i) ⟶ X) |
| 21 | [∀ i, IsOpenImmersion (j i)] [∀ i, QuasiCompact (j i)] |
| 22 | (hstructure : ∀ i, j i ≫ f = Spec.map (CommRingCat.ofHom (algebraMap k (R i)))) |
| 23 | (hcover : ⨆ i, (j i).opensRange = ⊤) (J : X.IdealSheafData) |
| 24 | (A : ∀ i, Ideal (R i)) (hA : ∀ i, J.comap (j i) = Affine.QuotientKernel.Construction.affineQuotientKernel (A i)) |
| 25 | (n : ℕ) (C : ∀ i, Component.CenterChoice.Construction.ComponentCenterChoice k (R i) (A i) n) : |
| 26 | ∃! I : X.IdealSheafData, ∀ i, I.comap (j i) = Affine.QuotientKernel.Construction.affineQuotientKernel (C i).center := by |
| 27 | let K (i : ι) := Affine.QuotientKernel.Construction.affineQuotientKernel (C i).center |
| 28 | apply Blowups.Finite.OpenIdealSheafUniqueness.Construction.existsUnique_idealSheaf_of_finite_affine_cover (fun i => Spec (R i)) j hcover K |
| 29 | intro a b |
| 30 | apply GlobalCoefficient.ComponentGluing.Construction.idealSheaf_eq_of_fromSpec |
| 31 | intro W |
| 32 | let P := pullback (j a) (j b) |
| 33 | let S := Γ(P, W) |
| 34 | let u : Spec (.of S) ⟶ Spec (R a) := W.2.fromSpec ≫ pullback.fst (j a) (j b) |
| 35 | let v : Spec (.of S) ⟶ Spec (R b) := W.2.fromSpec ≫ pullback.snd (j a) (j b) |
| 36 | let φ : R a →+* S := (Spec.preimage u).hom |
| 37 | let ψ : R b →+* S := (Spec.preimage v).hom |
| 38 | have hφ : Spec.map (CommRingCat.ofHom φ) = u := Spec.map_preimage u |
| 39 | have hψ : Spec.map (CommRingCat.ofHom ψ) = v := Spec.map_preimage v |
| 40 | have hcomm : u ≫ j a = v ≫ j b := by |
| 41 | dsimp only [u, v] |
| 42 | rw [Category.assoc, Category.assoc, pullback.condition] |
| 43 | have hbase : φ.comp (algebraMap k (R a)) = ψ.comp (algebraMap k (R b)) := by |
| 44 | have he : CommRingCat.ofHom (φ.comp (algebraMap k (R a))) = |
| 45 | CommRingCat.ofHom (ψ.comp (algebraMap k (R b))) := by |
| 46 | apply Spec.map_injective |
| 47 | change Spec.map (CommRingCat.ofHom (algebraMap k (R a)) ≫ CommRingCat.ofHom φ) = |
| 48 | Spec.map (CommRingCat.ofHom (algebraMap k (R b)) ≫ CommRingCat.ofHom ψ) |
| 49 | rw [Spec.map_comp, Spec.map_comp, hφ, hψ, ← hstructure a, ← hstructure b] |
| 50 | simpa only [Category.assoc] using congrArg (fun m => m ≫ f) hcomm |
| 51 | exact congrArg CommRingCat.Hom.hom he |
| 52 | let : Algebra k S := (φ.comp (algebraMap k (R a))).toAlgebra |
| 53 | let φₖ : R a →ₐ[k] S := { __ := φ, commutes' := fun _ => rfl } |
| 54 | let ψₖ : R b →ₐ[k] S := { __ := ψ, commutes' := fun c => (RingHom.congr_fun hbase c).symm } |
| 55 | let : IsOpenImmersion W.2.fromSpec := W.2.isOpenImmersion_fromSpec |
| 56 | have hφe : φₖ.toRingHom.Etale := by |
| 57 | apply (HasRingHomProperty.Spec_iff (P := @Etale)).mp |
| 58 | rw [Spec.map_preimage] |
| 59 | exact inferInstanceAs (Etale u) |
| 60 | have hψe : ψₖ.toRingHom.Etale := by |
| 61 | apply (HasRingHomProperty.Spec_iff (P := @Etale)).mp |
| 62 | rw [Spec.map_preimage] |
| 63 | exact inferInstanceAs (Etale v) |
| 64 | have hAJ : (A a).map φ = (A b).map ψ := by |
| 65 | apply (GlobalCoefficient.ComponentGluing.Construction.affineQuotientKernel_eq_iff _ _).mp |
| 66 | rw [← Affine.IdealChartDescent.Construction.affineQuotientKernel_comap_hom, ← Affine.IdealChartDescent.Construction.affineQuotientKernel_comap_hom, hφ, hψ, |
| 67 | ← hA a, ← hA b, ← Scheme.IdealSheafData.comap_comp, ← Scheme.IdealSheafData.comap_comp, hcomm] |
| 68 | have hc := Component.CenterChoice.Construction.ComponentCenterChoice.center_eq_on_common_refinement φₖ ψₖ hφe hψe hAJ (C a) (C b) |
| 69 | rw [← Scheme.IdealSheafData.comap_comp, ← Scheme.IdealSheafData.comap_comp] |
| 70 | change (K a).comap u = (K b).comap v |
| 71 | rw [← hφ, ← hψ] |
| 72 | change (Affine.QuotientKernel.Construction.affineQuotientKernel _).comap _ = (Affine.QuotientKernel.Construction.affineQuotientKernel _).comap _ |
| 73 | rw [Affine.IdealChartDescent.Construction.affineQuotientKernel_comap_hom, Affine.IdealChartDescent.Construction.affineQuotientKernel_comap_hom] |
| 74 | exact congrArg Affine.QuotientKernel.Construction.affineQuotientKernel hc |
| 75 | |
| 76 | end |
| 77 | |
| 78 | end OAI.AlgebraicGeometry.Resolution.Blowups.GlobalComponent.ChoiceGluing.Construction |