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.JacobianDerivationFrame |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.Etale.Derivation |
| 3 | |
| 4 | /-! # Jacobian Neighborhood -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.JacobianNeighborhood.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Actual Jacobian-open neighborhoods with adapted étale coordinates. -/ |
| 13 | |
| 14 | variable {k A ι : Type*} [CommRing k] [CommRing A] [Algebra k A] |
| 15 | [Fintype ι] [DecidableEq ι] |
| 16 | |
| 17 | abbrev derivationJacobianNeighborhood (D : ι → Derivation k A A) (z : ι → A) := |
| 18 | Localization.Away (JacobianDerivationFrame.Construction.derivationJacobian D z).det |
| 19 | |
| 20 | def jacobianNeighborhoodDerivation (D : ι → Derivation k A A) (z : ι → A) (i : ι) : |
| 21 | Derivation k (derivationJacobianNeighborhood D z) (derivationJacobianNeighborhood D z) := |
| 22 | letI : Algebra.FormallyEtale A (derivationJacobianNeighborhood D z) := |
| 23 | Algebra.FormallyEtale.of_isLocalization (Submonoid.powers (JacobianDerivationFrame.Construction.derivationJacobian D z).det) |
| 24 | Blowups.Etale.Derivation.Construction.extendEtaleRingDerivation (S := derivationJacobianNeighborhood D z) (D i) |
| 25 | |
| 26 | theorem jacobianNeighborhoodDerivation_constants (D : ι → Derivation k A A) (z : ι → A) |
| 27 | (i : ι) (p : A) : |
| 28 | jacobianNeighborhoodDerivation D z i (algebraMap A (derivationJacobianNeighborhood D z) p) = |
| 29 | algebraMap A (derivationJacobianNeighborhood D z) (D i p) := by |
| 30 | let : Algebra.FormallyEtale A (derivationJacobianNeighborhood D z) := |
| 31 | Algebra.FormallyEtale.of_isLocalization (Submonoid.powers (JacobianDerivationFrame.Construction.derivationJacobian D z).det) |
| 32 | exact Blowups.Etale.Derivation.Construction.extendEtaleRingDerivation_algebraMap (D i) p |
| 33 | |
| 34 | theorem jacobianNeighborhood_jacobian_isUnit (D : ι → Derivation k A A) (z : ι → A) : |
| 35 | IsUnit (JacobianDerivationFrame.Construction.derivationJacobian (jacobianNeighborhoodDerivation D z) |
| 36 | (fun j => algebraMap A (derivationJacobianNeighborhood D z) (z j))).det := by |
| 37 | have hM : JacobianDerivationFrame.Construction.derivationJacobian (jacobianNeighborhoodDerivation D z) |
| 38 | (fun j => algebraMap A (derivationJacobianNeighborhood D z) (z j)) = |
| 39 | (algebraMap A (derivationJacobianNeighborhood D z)).mapMatrix (JacobianDerivationFrame.Construction.derivationJacobian D z) := by |
| 40 | funext i j |
| 41 | exact jacobianNeighborhoodDerivation_constants D z i (z j) |
| 42 | rw [hM, ← RingHom.map_det] |
| 43 | exact IsLocalization.Away.algebraMap_isUnit (JacobianDerivationFrame.Construction.derivationJacobian D z).det |
| 44 | |
| 45 | /-- Every point in the Jacobian-open neighborhood has an étale coordinate |
| 46 | chart retaining all the original functions, with the coefficient map unchanged. -/ |
| 47 | theorem jacobianNeighborhood_exists_adapted_coordinates [Algebra.Smooth k A] |
| 48 | (D : ι → Derivation k A A) (z : ι → A) |
| 49 | (q : Ideal (derivationJacobianNeighborhood D z)) [q.IsPrime] : |
| 50 | ∃ f ∉ q, ∃ (n : ℕ) (φ : MvPolynomial (Fin n ⊕ ι) k →+* Localization.Away f), |
| 51 | φ.Etale ∧ (∀ r : k, φ (MvPolynomial.C r) = algebraMap k (Localization.Away f) r) ∧ |
| 52 | ∀ j : ι, φ (MvPolynomial.X (Sum.inr j)) = algebraMap A (Localization.Away f) (z j) := by |
| 53 | let B := derivationJacobianNeighborhood D z |
| 54 | let : Algebra.Smooth A B := Algebra.Smooth.of_isLocalization_Away (JacobianDerivationFrame.Construction.derivationJacobian D z).det |
| 55 | let : Algebra.Smooth k B := Algebra.Smooth.comp k A B |
| 56 | obtain ⟨f, hf, n, φ, hφ, hC, hX⟩ := JacobianDerivationFrame.Construction.exists_adapted_etale_frame_of_jacobian |
| 57 | (jacobianNeighborhoodDerivation D z) (fun j => algebraMap A B (z j)) |
| 58 | (jacobianNeighborhood_jacobian_isUnit D z) q |
| 59 | refine ⟨f, hf, n, φ, hφ, hC, ?_⟩ |
| 60 | intro j |
| 61 | exact (hX j).trans (IsScalarTower.algebraMap_apply A B (Localization.Away f) (z j)).symm |
| 62 | |
| 63 | end |
| 64 | |
| 65 | /-! Invertible changes of individual boundary equations retain independent differentials. -/ |
| 66 | |
| 67 | variable {k R ι : Type*} [CommRing k] [CommRing R] [Algebra k R] |
| 68 | [Fintype ι] [DecidableEq ι] |
| 69 | |
| 70 | /-- At a prime containing a dual coordinate family, multiplying its |
| 71 | members by arbitrary units leaves a Jacobian determinant outside the prime. -/ |
| 72 | theorem unit_boundary_jacobian_not_mem |
| 73 | (z : ι → R) (D : ι → Derivation k R R) |
| 74 | (hD : ∀ i j, D i (z j) = if i = j then 1 else 0) |
| 75 | (u : ι → R) (hu : ∀ j, IsUnit (u j)) (q : Ideal R) [q.IsPrime] |
| 76 | (hz : ∀ j, z j ∈ q) : |
| 77 | (JacobianDerivationFrame.Construction.derivationJacobian D (fun j => u j * z j)).det ∉ q := by |
| 78 | let φ : R →+* R ⧸ q := Ideal.Quotient.mk q |
| 79 | have hmat : φ.mapMatrix (JacobianDerivationFrame.Construction.derivationJacobian D (fun j => u j * z j)) = |
| 80 | Matrix.diagonal (fun j => φ (u j)) := by |
| 81 | ext i j |
| 82 | change φ (D i (u j * z j)) = Matrix.diagonal (fun j => φ (u j)) i j |
| 83 | simp only [Derivation.leibniz, smul_eq_mul, map_add, map_mul, hD] |
| 84 | have hzj : φ (z j) = 0 := Ideal.Quotient.eq_zero_iff_mem.mpr (hz j) |
| 85 | rw [hzj] |
| 86 | by_cases hij : i = j |
| 87 | · subst j |
| 88 | simp |
| 89 | · simp [hij] |
| 90 | have hunit : IsUnit (φ (JacobianDerivationFrame.Construction.derivationJacobian D (fun j => u j * z j)).det) := by |
| 91 | rw [RingHom.map_det, hmat, Matrix.det_diagonal] |
| 92 | exact IsUnit.prod_univ_iff.mpr (fun j => (hu j).map φ) |
| 93 | intro hmem |
| 94 | have hzero : φ (JacobianDerivationFrame.Construction.derivationJacobian D (fun j => u j * z j)).det = 0 := |
| 95 | Ideal.Quotient.eq_zero_iff_mem.mpr hmem |
| 96 | exact hunit.ne_zero hzero |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.Resolution.Blowups.JacobianNeighborhood.Construction |