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.GlobalComponent.CenterRestriction |
| 2 | |
| 3 | /-! # Etale Affine Factorization -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Pointed.EtaleAffineFactorization.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | section |
| 10 | |
| 11 | /-! Two actual pointed étale affine charts have a pointed common affine refinement. -/ |
| 12 | |
| 13 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 14 | |
| 15 | theorem exists_pointed_global_etale_comparison |
| 16 | {X : Scheme} (f : X ⟶ Foundations.Scheme.ProjectiveSpace.complexBase) (R S : CommRingCat) |
| 17 | [Algebra ℂ R] [Algebra ℂ S] |
| 18 | (j : Spec R ⟶ X) (l : Spec S ⟶ X) [Etale j] [Etale l] |
| 19 | (hj : j ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure R) (hl : l ≫ f = ComplexAffineDifferentialIdeal.Construction.complexSpecStructure S) |
| 20 | (p : PrimeSpectrum R) (q : PrimeSpectrum S) (hpq : j p = l q) : |
| 21 | ∃ (T : CommRingCat) (_ : Algebra ℂ T) (φ : R →ₐ[ℂ] T) (ψ : S →ₐ[ℂ] T), |
| 22 | φ.toRingHom.Etale ∧ ψ.toRingHom.Etale ∧ |
| 23 | Spec.map (CommRingCat.ofHom φ.toRingHom) ≫ j = Spec.map (CommRingCat.ofHom ψ.toRingHom) ≫ l ∧ |
| 24 | ∃ Q : PrimeSpectrum T, PrimeSpectrum.comap φ.toRingHom Q = p ∧ PrimeSpectrum.comap ψ.toRingHom Q = q := by |
| 25 | obtain ⟨x, hxp, hxq⟩ := Scheme.exists_preimage_of_isPullback (IsPullback.of_hasPullback j l) p q hpq |
| 26 | obtain ⟨T, a, ha, Q, hQ⟩ := Scheme.exists_Spec_apply_eq x |
| 27 | let : IsOpenImmersion a := ha |
| 28 | let u : Spec T ⟶ Spec R := a ≫ pullback.fst j l |
| 29 | let v : Spec T ⟶ Spec S := a ≫ pullback.snd j l |
| 30 | let φ : R →+* T := (Spec.preimage u).hom |
| 31 | let ψ : S →+* T := (Spec.preimage v).hom |
| 32 | have hφ : Spec.map (CommRingCat.ofHom φ) = u := Spec.map_preimage u |
| 33 | have hψ : Spec.map (CommRingCat.ofHom ψ) = v := Spec.map_preimage v |
| 34 | have hcomm : u ≫ j = v ≫ l := by |
| 35 | dsimp only [u, v] |
| 36 | rw [Category.assoc, Category.assoc, pullback.condition] |
| 37 | have hbase : φ.comp (algebraMap ℂ R) = ψ.comp (algebraMap ℂ S) := by |
| 38 | have he : CommRingCat.ofHom (φ.comp (algebraMap ℂ R)) = |
| 39 | CommRingCat.ofHom (ψ.comp (algebraMap ℂ S)) := by |
| 40 | apply Spec.map_injective |
| 41 | change Spec.map (CommRingCat.ofHom (algebraMap ℂ R) ≫ CommRingCat.ofHom φ) = |
| 42 | Spec.map (CommRingCat.ofHom (algebraMap ℂ S) ≫ CommRingCat.ofHom ψ) |
| 43 | rw [Spec.map_comp, Spec.map_comp, hφ, hψ] |
| 44 | change u ≫ ComplexAffineDifferentialIdeal.Construction.complexSpecStructure R = v ≫ ComplexAffineDifferentialIdeal.Construction.complexSpecStructure S |
| 45 | rw [← hj, ← hl] |
| 46 | simpa only [Category.assoc] using congrArg (fun m => m ≫ f) hcomm |
| 47 | exact congrArg CommRingCat.Hom.hom he |
| 48 | let : Algebra ℂ T := (φ.comp (algebraMap ℂ R)).toAlgebra |
| 49 | let φₖ : R →ₐ[ℂ] T := { __ := φ, commutes' := fun _ => rfl } |
| 50 | let ψₖ : S →ₐ[ℂ] T := { __ := ψ, commutes' := fun c => (RingHom.congr_fun hbase c).symm } |
| 51 | refine ⟨T, inferInstance, φₖ, ψₖ, ?_, ?_, ?_, Q, ?_, ?_⟩ |
| 52 | · apply (HasRingHomProperty.Spec_iff (P := @Etale) (φ := CommRingCat.ofHom φ)).mp |
| 53 | rw [hφ] |
| 54 | exact inferInstanceAs (Etale 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 | /-! A pointed étale affine chart has an actual open refinement factoring through a native affine open. -/ |
| 72 | |
| 73 | open _root_.CategoryTheory _root_.CategoryTheory.Limits _root_.AlgebraicGeometry |
| 74 | |
| 75 | theorem exists_pointed_etale_affine_factorization |
| 76 | {X : Scheme} (R : CommRingCat) (q : Spec R ⟶ X) [Etale q] (p : PrimeSpectrum R) : |
| 77 | ∃ (U : X.affineOpens) (S : CommRingCat) (φ : R →+* S) (ψ : Γ(X, U) →+* S), |
| 78 | IsOpenImmersion (Spec.map (CommRingCat.ofHom φ)) ∧ ψ.Etale ∧ |
| 79 | Spec.map (CommRingCat.ofHom φ) ≫ q = Spec.map (CommRingCat.ofHom ψ) ≫ U.2.fromSpec ∧ |
| 80 | ∃ P : PrimeSpectrum S, PrimeSpectrum.comap φ P = p := by |
| 81 | obtain ⟨U, hU, hpU, _⟩ := exists_isAffineOpen_mem_and_subset (U := ⊤) (x := q p) trivial |
| 82 | let V : X.affineOpens := ⟨U, hU⟩ |
| 83 | let : IsOpenImmersion V.2.fromSpec := V.2.isOpenImmersion_fromSpec |
| 84 | have hrange : q p ∈ V.2.fromSpec.opensRange := by rw [V.2.opensRange_fromSpec]; exact hpU |
| 85 | obtain ⟨r, hr⟩ := hrange |
| 86 | obtain ⟨z, hz, _⟩ := Scheme.exists_preimage_of_isPullback (IsPullback.of_hasPullback q V.2.fromSpec) p r hr.symm |
| 87 | obtain ⟨S, a, ha, P, hP⟩ := Scheme.exists_Spec_apply_eq z |
| 88 | let : IsOpenImmersion a := ha |
| 89 | let u : Spec S ⟶ Spec R := a ≫ pullback.fst q V.2.fromSpec |
| 90 | let v : Spec S ⟶ Spec Γ(X, V) := a ≫ pullback.snd q V.2.fromSpec |
| 91 | let φ := (Spec.preimage u).hom |
| 92 | let ψ := (Spec.preimage v).hom |
| 93 | have hφ : Spec.map (CommRingCat.ofHom φ) = u := Spec.map_preimage u |
| 94 | have hψ : Spec.map (CommRingCat.ofHom ψ) = v := Spec.map_preimage v |
| 95 | refine ⟨V, S, φ, ψ, ?_, ?_, ?_, P, ?_⟩ |
| 96 | · rw [hφ] |
| 97 | exact inferInstanceAs (IsOpenImmersion u) |
| 98 | · apply (HasRingHomProperty.Spec_iff (P := @Etale) (φ := CommRingCat.ofHom ψ)).mp |
| 99 | rw [hψ] |
| 100 | exact inferInstanceAs (Etale v) |
| 101 | · rw [hφ, hψ] |
| 102 | exact (Category.assoc _ _ _).trans ((congrArg (fun t => a ≫ t) pullback.condition).trans |
| 103 | (Category.assoc _ _ _).symm) |
| 104 | · change Spec.map (CommRingCat.ofHom φ) P = p |
| 105 | rw [hφ] |
| 106 | change pullback.fst q V.2.fromSpec (a P) = p |
| 107 | exact (congrArg (pullback.fst q V.2.fromSpec) hP).trans hz |
| 108 | |
| 109 | end |
| 110 | |
| 111 | end OAI.AlgebraicGeometry.Resolution.Blowups.Pointed.EtaleAffineFactorization.Construction |