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.Pointed.EtaleAffineFactorization |
| 2 | import Mathlib.AlgebraicGeometry.Noetherian |
| 3 | |
| 4 | /-! # Global Open Comparison -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Pointed.GlobalOpenComparison.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! A pointed étale chart and an actual open chart have a common refinement open in the first chart. -/ |
| 13 | |
| 14 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 15 | |
| 16 | theorem exists_pointed_global_open_comparison |
| 17 | {X : Scheme} (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) (R S : CommRingCat) |
| 18 | [Algebra ℂ R] [Algebra ℂ S] |
| 19 | (j : Spec R ⟶ X) (l : Spec S ⟶ X) [Etale j] [IsOpenImmersion l] |
| 20 | (hj : j ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure R) (hl : l ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure S) |
| 21 | (p : PrimeSpectrum R) (q : PrimeSpectrum S) (hpq : j p = l q) : |
| 22 | ∃ (T : CommRingCat) (_ : Algebra ℂ T) (φ : R →ₐ[ℂ] T) (ψ : S →ₐ[ℂ] T), |
| 23 | IsOpenImmersion (Spec.map (CommRingCat.ofHom φ.toRingHom)) ∧ ψ.toRingHom.Etale ∧ |
| 24 | Spec.map (CommRingCat.ofHom φ.toRingHom) ≫ j = Spec.map (CommRingCat.ofHom ψ.toRingHom) ≫ l ∧ |
| 25 | ∃ Q : PrimeSpectrum T, PrimeSpectrum.comap φ.toRingHom Q = p ∧ PrimeSpectrum.comap ψ.toRingHom Q = q := by |
| 26 | obtain ⟨x, hxp, hxq⟩ := Scheme.exists_preimage_of_isPullback (IsPullback.of_hasPullback j l) p q hpq |
| 27 | obtain ⟨T, a, ha, Q, hQ⟩ := Scheme.exists_Spec_apply_eq x |
| 28 | let : IsOpenImmersion a := ha |
| 29 | let u : Spec T ⟶ Spec R := a ≫ pullback.fst j l |
| 30 | let v : Spec T ⟶ Spec S := a ≫ pullback.snd j l |
| 31 | let φ : R →+* T := (Spec.preimage u).hom |
| 32 | let ψ : S →+* T := (Spec.preimage v).hom |
| 33 | have hφ : Spec.map (CommRingCat.ofHom φ) = u := Spec.map_preimage u |
| 34 | have hψ : Spec.map (CommRingCat.ofHom ψ) = v := Spec.map_preimage v |
| 35 | have hcomm : u ≫ j = v ≫ l := by |
| 36 | dsimp only [u, v] |
| 37 | rw [Category.assoc, Category.assoc, pullback.condition] |
| 38 | have hbase : φ.comp (algebraMap ℂ R) = ψ.comp (algebraMap ℂ S) := by |
| 39 | have he : CommRingCat.ofHom (φ.comp (algebraMap ℂ R)) = |
| 40 | CommRingCat.ofHom (ψ.comp (algebraMap ℂ S)) := by |
| 41 | apply Spec.map_injective |
| 42 | change Spec.map (CommRingCat.ofHom (algebraMap ℂ R) ≫ CommRingCat.ofHom φ) = |
| 43 | Spec.map (CommRingCat.ofHom (algebraMap ℂ S) ≫ CommRingCat.ofHom ψ) |
| 44 | rw [Spec.map_comp, Spec.map_comp, hφ, hψ] |
| 45 | change u ≫ ComplexAffineDifferentialIdeal.Construction.complexSpecStructure R = v ≫ ComplexAffineDifferentialIdeal.Construction.complexSpecStructure S |
| 46 | rw [← hj, ← hl] |
| 47 | simpa only [Category.assoc] using congrArg (fun m => m ≫ f) hcomm |
| 48 | exact congrArg CommRingCat.Hom.hom he |
| 49 | let : Algebra ℂ T := (φ.comp (algebraMap ℂ R)).toAlgebra |
| 50 | let φₖ : R →ₐ[ℂ] T := { __ := φ, commutes' := fun _ => rfl } |
| 51 | let ψₖ : S →ₐ[ℂ] T := { __ := ψ, commutes' := fun c => (RingHom.congr_fun hbase c).symm } |
| 52 | refine ⟨T, inferInstance, φₖ, ψₖ, ?_, ?_, ?_, Q, ?_, ?_⟩ |
| 53 | · rw [hφ] |
| 54 | exact inferInstanceAs (IsOpenImmersion u) |
| 55 | · apply (HasRingHomProperty.Spec_iff (P := @Etale) (φ := CommRingCat.ofHom ψ)).mp |
| 56 | rw [hψ] |
| 57 | exact inferInstanceAs (Etale v) |
| 58 | · rw [hφ, hψ] |
| 59 | exact hcomm |
| 60 | · change Spec.map (CommRingCat.ofHom φ) Q = p |
| 61 | rw [hφ] |
| 62 | change pullback.fst j l (a Q) = p |
| 63 | exact (congrArg (pullback.fst j l) hQ).trans hxp |
| 64 | · change Spec.map (CommRingCat.ofHom ψ) Q = q |
| 65 | rw [hψ] |
| 66 | change pullback.snd j l (a Q) = q |
| 67 | exact (congrArg (pullback.snd j l) hQ).trans hxq |
| 68 | |
| 69 | end |
| 70 | |
| 71 | /-! Two actual integral affine open charts have a pointed common integral noetherian affine open over the same complex base. -/ |
| 72 | |
| 73 | open _root_.CategoryTheory _root_.AlgebraicGeometry |
| 74 | |
| 75 | theorem exists_pointed_integral_affine_overlap |
| 76 | {X : Scheme} (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) (R S : CommRingCat) |
| 77 | [Algebra ℂ R] [Algebra ℂ S] [IsDomain R] [IsNoetherianRing R] |
| 78 | (j : Spec R ⟶ X) (l : Spec S ⟶ X) [IsOpenImmersion j] [IsOpenImmersion l] |
| 79 | (hj : j ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure R) (hl : l ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure S) |
| 80 | (p : PrimeSpectrum R) (q : PrimeSpectrum S) (hpq : j p = l q) : |
| 81 | ∃ (T : CommRingCat) (_ : Algebra ℂ T), IsDomain T ∧ IsNoetherianRing T ∧ |
| 82 | ∃ (φ : R →ₐ[ℂ] T) (ψ : S →ₐ[ℂ] T), |
| 83 | IsOpenImmersion (Spec.map (CommRingCat.ofHom φ.toRingHom)) ∧ |
| 84 | IsOpenImmersion (Spec.map (CommRingCat.ofHom ψ.toRingHom)) ∧ |
| 85 | Spec.map (CommRingCat.ofHom φ.toRingHom) ≫ j = Spec.map (CommRingCat.ofHom ψ.toRingHom) ≫ l ∧ |
| 86 | ∃ Q : PrimeSpectrum T, PrimeSpectrum.comap φ.toRingHom Q = p ∧ PrimeSpectrum.comap ψ.toRingHom Q = q := by |
| 87 | obtain ⟨T, hT, φ, ψ, hφ, _, hcomm, Q, hQφ, hQψ⟩ := |
| 88 | exists_pointed_global_open_comparison f R S j l hj hl p q hpq |
| 89 | let : Algebra ℂ T := hT |
| 90 | let a := Spec.map (CommRingCat.ofHom φ.toRingHom) |
| 91 | let b := Spec.map (CommRingCat.ofHom ψ.toRingHom) |
| 92 | let : IsOpenImmersion a := hφ |
| 93 | let : IsOpenImmersion (b ≫ l) := hcomm ▸ inferInstanceAs (IsOpenImmersion (a ≫ j)) |
| 94 | let : IsOpenImmersion b := IsOpenImmersion.of_comp b l |
| 95 | let : Nonempty (Spec T) := ⟨Q⟩ |
| 96 | let : IsIntegral (Spec T) := isIntegral_of_isOpenImmersion a |
| 97 | let : IsLocallyNoetherian (Spec T) := LocallyOfFiniteType.isLocallyNoetherian a |
| 98 | exact ⟨T, hT, (affine_isIntegral_iff T).mp inferInstance, isLocallyNoetherian_Spec.mp inferInstance, |
| 99 | φ, ψ, hφ, inferInstanceAs (IsOpenImmersion b), hcomm, Q, hQφ, hQψ⟩ |
| 100 | |
| 101 | end |
| 102 | |
| 103 | end OAI.AlgebraicGeometry.Resolution.Blowups.Pointed.GlobalOpenComparison.Construction |