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.HilbertScheme.Presentations.Principal.TensorIsomorphismNeighborhood |
| 2 | import Mathlib.RingTheory.TensorProduct.Basic |
| 3 | import Mathlib.RingTheory.Noetherian.Basic |
| 4 | |
| 5 | /-! # Algebra Isomorphism Neighborhood -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.AlgebraIsomorphismNeighborhood |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite algebra over a noetherian ring that becomes the base ring |
| 12 | at a local spectrum already does so on a principal open neighborhood. -/ |
| 13 | |
| 14 | open TensorProduct |
| 15 | |
| 16 | universe u v w |
| 17 | variable {R : Type u} [CommRing R] {A : Type v} [CommRing A] [Algebra R A] |
| 18 | |
| 19 | theorem tensor_algebraMap_bijective_iff |
| 20 | (B : Type w) [CommRing B] [Algebra R B] : |
| 21 | Function.Bijective ((Algebra.linearMap R A).lTensor B) ↔ |
| 22 | Function.Bijective (algebraMap B (B ⊗[R] A)) := by |
| 23 | let e := TensorProduct.rid R B |
| 24 | have he : (fun b : B => (Algebra.linearMap R A).lTensor B (e.symm b)) = |
| 25 | algebraMap B (B ⊗[R] A) := by |
| 26 | funext b |
| 27 | simp only [e, TensorProduct.rid_symm_apply, LinearMap.lTensor_tmul, Algebra.linearMap_apply, |
| 28 | map_one, Algebra.TensorProduct.algebraMap_apply] |
| 29 | rfl |
| 30 | constructor |
| 31 | · intro h |
| 32 | rw [← he] |
| 33 | exact h.comp e.symm.bijective |
| 34 | · intro h |
| 35 | have hf : (fun x : B ⊗[R] R => (Algebra.linearMap R A).lTensor B x) = |
| 36 | fun x => algebraMap B (B ⊗[R] A) (e x) := by |
| 37 | funext x |
| 38 | rw [← he] |
| 39 | exact congrArg ((Algebra.linearMap R A).lTensor B) (e.symm_apply_apply x).symm |
| 40 | rw [show ((Algebra.linearMap R A).lTensor B : B ⊗[R] R → B ⊗[R] A) = |
| 41 | (fun x => algebraMap B (B ⊗[R] A) (e x)) from hf] |
| 42 | exact h.comp e.bijective |
| 43 | |
| 44 | theorem exists_principalOpen_algebra_isomorphism [IsNoetherianRing R] [Module.Finite R A] |
| 45 | (p : PrimeSpectrum R) |
| 46 | (hp : Function.Bijective (algebraMap (Localization.AtPrime p.asIdeal) |
| 47 | (Localization.AtPrime p.asIdeal ⊗[R] A))) : |
| 48 | ∃ r ∉ p.asIdeal, Function.Bijective (algebraMap (Localization.Away r) |
| 49 | (Localization.Away r ⊗[R] A)) := by |
| 50 | obtain ⟨r, hr, h⟩ := TensorIsomorphismNeighborhood.exists_principalOpen_tensor_isomorphism (Algebra.linearMap R A) p |
| 51 | ((tensor_algebraMap_bijective_iff (R := R) (A := A) (Localization.AtPrime p.asIdeal)).mpr hp) |
| 52 | exact ⟨r, hr, (tensor_algebraMap_bijective_iff (R := R) (A := A) (Localization.Away r)).mp h⟩ |
| 53 | |
| 54 | end |
| 55 | |
| 56 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.Principal.AlgebraIsomorphismNeighborhood |