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.IdealSheaf.ProductRestriction |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Affine.IdealSheafIdentification |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Finite.OpenIdealSheafUniqueness |
| 4 | |
| 5 | /-! # Product Pullback -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.IdealSheaf.ProductPullback.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Products and powers of native ideal sheaves commute with arbitrary scheme pullback. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | theorem idealSheaf_comap_mul_affineMap {X : Scheme.{u}} (I J : X.IdealSheafData) |
| 18 | (U : X.affineOpens) {S : Type u} [CommRing S] (φ : Γ(X, U) →+* S) : |
| 19 | (I * J).comap (Spec.map (CommRingCat.ofHom φ) ≫ U.2.fromSpec) = |
| 20 | I.comap (Spec.map (CommRingCat.ofHom φ) ≫ U.2.fromSpec) * |
| 21 | J.comap (Spec.map (CommRingCat.ofHom φ) ≫ U.2.fromSpec) := by |
| 22 | rw [Affine.IdealSheafIdentification.Construction.idealSheaf_comap_affineMap_eq_quotient_kernel, |
| 23 | Affine.IdealSheafIdentification.Construction.idealSheaf_comap_affineMap_eq_quotient_kernel, Affine.IdealSheafIdentification.Construction.idealSheaf_comap_affineMap_eq_quotient_kernel] |
| 24 | change Affine.QuotientKernel.Construction.affineQuotientKernel (((I.ideal U) * (J.ideal U)).map φ) = |
| 25 | Affine.QuotientKernel.Construction.affineQuotientKernel ((I.ideal U).map φ) * Affine.QuotientKernel.Construction.affineQuotientKernel ((J.ideal U).map φ) |
| 26 | rw [Ideal.map_mul, ProductRestriction.Construction.affineQuotientKernel_mul] |
| 27 | |
| 28 | theorem exists_affine_pair_at_point {X Y : Scheme.{u}} (f : Y ⟶ X) (y : Y) : |
| 29 | ∃ (U : X.affineOpens) (V : Y.affineOpens), V.1 ≤ f ⁻¹ᵁ U.1 ∧ y ∈ V.1 := by |
| 30 | obtain ⟨_, ⟨U, hU, rfl⟩, hyU, _⟩ := |
| 31 | X.isBasis_affineOpens.exists_subset_of_mem_open (Set.mem_univ (f y)) isOpen_univ |
| 32 | obtain ⟨_, ⟨V, hV, rfl⟩, hyV, hVU⟩ := |
| 33 | Y.isBasis_affineOpens.exists_subset_of_mem_open hyU (f ⁻¹ᵁ U).isOpen |
| 34 | exact ⟨⟨U, hU⟩, ⟨V, hV⟩, hVU, hyV⟩ |
| 35 | |
| 36 | theorem idealSheaf_comap_mul {X Y : Scheme.{u}} (I J : X.IdealSheafData) (f : Y ⟶ X) : |
| 37 | (I * J).comap f = I.comap f * J.comap f := by |
| 38 | classical |
| 39 | choose U V hsub hmem using exists_affine_pair_at_point f |
| 40 | let : ∀ y : Y, IsOpenImmersion (V y).2.fromSpec := fun y => (V y).2.isOpenImmersion_fromSpec |
| 41 | have hcover : ⨆ y : Y, ((V y).2.fromSpec).opensRange = ⊤ := by |
| 42 | apply top_le_iff.mp |
| 43 | intro y _ |
| 44 | apply TopologicalSpace.Opens.mem_iSup.mpr |
| 45 | refine ⟨y, ?_⟩ |
| 46 | rw [(V y).2.opensRange_fromSpec] |
| 47 | exact hmem y |
| 48 | apply Finite.OpenIdealSheafUniqueness.Construction.idealSheaf_eq_of_open_affine_restrictions |
| 49 | (fun y : Y => Spec (.of Γ(Y, V y))) (fun y => (V y).2.fromSpec) hcover |
| 50 | intro y |
| 51 | rw [ProductRestriction.Construction.idealSheaf_comap_mul_open (I.comap f) (J.comap f) (V y).2.fromSpec, |
| 52 | ← Scheme.IdealSheafData.comap_comp (I * J) (V y).2.fromSpec f, |
| 53 | ← Scheme.IdealSheafData.comap_comp I (V y).2.fromSpec f, |
| 54 | ← Scheme.IdealSheafData.comap_comp J (V y).2.fromSpec f, |
| 55 | ← IsAffineOpen.SpecMap_appLE_fromSpec f (U y).2 (V y).2 (hsub y)] |
| 56 | exact idealSheaf_comap_mul_affineMap I J (U y) (f.appLE (U y).1 (V y).1 (hsub y)).hom |
| 57 | |
| 58 | theorem idealSheaf_comap_pow {X Y : Scheme.{u}} (I : X.IdealSheafData) (f : Y ⟶ X) (n : ℕ) : |
| 59 | (I ^ n).comap f = I.comap f ^ n := by |
| 60 | induction n with |
| 61 | | zero => simp only [pow_zero, Scheme.IdealSheafData.one_eq_top, Scheme.IdealSheafData.comap_top] |
| 62 | | succ n ih => rw [pow_succ, idealSheaf_comap_mul, ih, pow_succ] |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.Resolution.Blowups.IdealSheaf.ProductPullback.Construction |