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.IntrinsicAffineNormalFrames |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Smooth.HypersurfaceNormalFrames |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Global.SmoothHypersurfaceTransform |
| 4 | import OAI.AlgebraicGeometry.Resolution.Blowups.ControlledIdealKernel |
| 5 | |
| 6 | /-! # Hypersurface Normal Cover -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Global.HypersurfaceNormalCover.Construction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Smooth contained Cartier hypersurfaces admit native common normal frames near every center point. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem exists_global_hypersurface_normal_neighborhood |
| 17 | {X : Scheme} [IsIntegral X] [IsLocallyNoetherian X] |
| 18 | (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) [Smooth f] (I H : X.IdealSheafData) (hH : H ≠ ⊥) |
| 19 | [Smooth (I.subschemeι ≫ f)] [Smooth (H.subschemeι ≫ f)] |
| 20 | (hlocal : Locally.PrincipalIdealSheaf.Construction.LocallyPrincipalIdealSheaf H) (hHI : H ≤ I) (x : X) : |
| 21 | ∃ U : X.affineOpens, x ∈ U.1 ∧ |
| 22 | (I.ideal U = ⊤ ∨ |
| 23 | letI := Blowups.Smooth.DifferentialIdealSheaf.Construction.affineComplexAlgebra f U |
| 24 | ∃ (ι : Type) (_ : DecidableEq ι) (g : ι → I.ideal U) |
| 25 | (D : ι → Derivation ℂ Γ(X, U) Γ(X, U)), |
| 26 | (∀ i j, D i (g j).val = if i = j then 1 else 0) ∧ |
| 27 | Ideal.span (Set.range (fun i => (g i).val)) = I.ideal U ∧ |
| 28 | ∃ j : ι, H.ideal U = Ideal.span {(g j).val}) := by |
| 29 | classical |
| 30 | by_cases hx : x ∈ I.support |
| 31 | · obtain ⟨U, hxU, z, hz, hHz⟩ := Locally.PrincipalRegular.Construction.locallyPrincipal_regular_generators H hH hlocal x |
| 32 | let : Algebra ℂ Γ(X, U) := Blowups.Smooth.DifferentialIdealSheaf.Construction.affineComplexAlgebra f U |
| 33 | let : Algebra.Smooth ℂ Γ(X, U) := Blowups.Smooth.DifferentialIdealSheaf.Construction.affineComplexAlgebra_smooth f U |
| 34 | let : IsNoetherianRing Γ(X, U) := IsLocallyNoetherian.component_noetherian U |
| 35 | let : Algebra.Smooth ℂ (Γ(X, U) ⧸ I.ideal U) := SmoothCenterBlowup.Construction.idealSheaf_complex_smooth_center_quotient f I U |
| 36 | let : Algebra.Smooth ℂ (Γ(X, U) ⧸ Ideal.span {z}) := by |
| 37 | rw [← hHz] |
| 38 | exact SmoothCenterBlowup.Construction.idealSheaf_complex_smooth_center_quotient f H U |
| 39 | have hzI : z ∈ I.ideal U := (hHI U) (by rw [hHz]; exact Ideal.mem_span_singleton_self z) |
| 40 | let : IsOpenImmersion U.2.fromSpec := U.2.isOpenImmersion_fromSpec |
| 41 | have hxrange : x ∈ U.2.fromSpec.opensRange := by rw [U.2.opensRange_fromSpec]; exact hxU |
| 42 | obtain ⟨p, hp⟩ := hxrange |
| 43 | have hIp : I.ideal U ≤ p.asIdeal := by |
| 44 | have hm := (Scheme.IdealSheafData.mem_support_iff_of_mem (I := I) hxU).mp hx |
| 45 | have hpre : p ∈ U.2.fromSpec ⁻¹' X.zeroLocus (I.ideal U : Set Γ(X, U)) := by |
| 46 | change U.2.fromSpec p ∈ X.zeroLocus (I.ideal U : Set Γ(X, U)) |
| 47 | rwa [hp] |
| 48 | rwa [U.2.fromSpec_preimage_zeroLocus] at hpre |
| 49 | obtain ⟨S, aS, hsS, φ, hopen, q, hq, ι, hι, hdec, v, D, hD, hv, hgen⟩ := |
| 50 | Blowups.Smooth.HypersurfaceNormalFrames.Construction.smooth_hypersurface_center_pointed_normal_frame (k := ℂ) (I.ideal U) z hz hzI p hIp |
| 51 | let : Algebra ℂ S := aS |
| 52 | let : IsOpenImmersion (Spec.map (CommRingCat.ofHom φ.toRingHom)) := hopen |
| 53 | let j := Spec.map (CommRingCat.ofHom φ.toRingHom) ≫ U.2.fromSpec |
| 54 | have hg : j ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure S := by |
| 55 | dsimp only [j] |
| 56 | rw [Category.assoc, ← Affine.ComplexNaturality.Construction.affineComplexScalars_spec f U, ← Spec.map_comp] |
| 57 | apply congrArg Spec.map |
| 58 | ext c |
| 59 | exact φ.commutes c |
| 60 | have hjq : j q = x := by |
| 61 | change U.2.fromSpec (PrimeSpectrum.comap φ.toRingHom q) = x |
| 62 | rw [hq] |
| 63 | exact hp |
| 64 | have hIn : I.comap j = Affine.QuotientKernel.Construction.affineQuotientKernel (Ideal.span (Set.range v)) := by |
| 65 | rw [Affine.IdealSheafIdentification.Construction.idealSheaf_comap_affineMap_eq_quotient_kernel, hgen] |
| 66 | have hHn : H.comap j = Affine.QuotientKernel.Construction.affineQuotientKernel (Ideal.span {v none}) := by |
| 67 | rw [Affine.IdealSheafIdentification.Construction.idealSheaf_comap_affineMap_eq_quotient_kernel, hHz, Ideal.map_span, Set.image_singleton, hv] |
| 68 | obtain ⟨V, hxV, g, E, hE, hspan, hnormal⟩ := |
| 69 | IntrinsicAffineNormalFrames.Construction.exists_native_affine_normal_frame f I H S j hg q v D hD none hIn hHn |
| 70 | exact ⟨V, hjq ▸ hxV, Or.inr ⟨Option ι, inferInstance, g, E, hE, hspan, none, hnormal⟩⟩ |
| 71 | · obtain ⟨V, hV, hxV, hVI⟩ := exists_isAffineOpen_mem_and_subset |
| 72 | (U := I.support.compl) (x := x) hx |
| 73 | let U : X.affineOpens := ⟨V, hV⟩ |
| 74 | let : IsOpenImmersion U.2.fromSpec := U.2.isOpenImmersion_fromSpec |
| 75 | refine ⟨U, hxV, Or.inl ?_⟩ |
| 76 | apply (GlobalCoefficient.ComponentGluing.Construction.affineQuotientKernel_eq_iff (I.ideal U) ⊤).mp |
| 77 | rw [DifferentialUnitGluing.Construction.affineQuotientKernel_top] |
| 78 | have ht : I.comap U.2.fromSpec = ⊤ := by |
| 79 | apply ControlledIdealKernel.Construction.idealSheaf_comap_eq_top_of_avoids_support |
| 80 | intro p hp |
| 81 | have hm : U.2.fromSpec p ∈ U.1 := by |
| 82 | have hr : U.2.fromSpec p ∈ U.2.fromSpec.opensRange := ⟨p, rfl⟩ |
| 83 | rwa [U.2.opensRange_fromSpec] at hr |
| 84 | exact hVI hm hp |
| 85 | exact (Affine.IdealSheafIdentification.Construction.idealSheaf_comap_fromSpec_eq_quotient_kernel I U).symm.trans ht |
| 86 | |
| 87 | end |
| 88 | |
| 89 | end OAI.AlgebraicGeometry.Resolution.Blowups.Global.HypersurfaceNormalCover.Construction |