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.ReplacementCoordinateUnramified |
| 2 | import OAI.AlgebraicGeometry.Resolution.Blowups.AdaptedEtaleFrame |
| 3 | import OAI.AlgebraicGeometry.Resolution.Blowups.Smooth.CoordinateFrame |
| 4 | |
| 5 | /-! # Coordinate Replacement -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Etale.CoordinateReplacement.Construction |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Replacing one coordinate of an étale chart while keeping every complement fixed. -/ |
| 12 | |
| 13 | variable {σ K R : Type*} [Field K] [CommRing R] |
| 14 | [Algebra (MvPolynomial σ K) R] [Algebra.Etale (MvPolynomial σ K) R] |
| 15 | [Algebra K R] [IsScalarTower K (MvPolynomial σ K) R] [DecidableEq σ] |
| 16 | |
| 17 | def replacementCoordinateFamily (i : σ) (z : R) : Option {j : σ // i ≠ j} → R := |
| 18 | AdaptedEtaleFrame.Construction.transverseExtendedCoordinates |
| 19 | (fun j : {j : σ // i ≠ j} => algebraMap (MvPolynomial σ K) R (MvPolynomial.X j.val)) z |
| 20 | |
| 21 | def replacementCoordinateMap (i : σ) (z : R) : |
| 22 | MvPolynomial (Option {j : σ // i ≠ j}) K →ₐ[K] R := |
| 23 | MvPolynomial.aeval (replacementCoordinateFamily (K := K) i z) |
| 24 | |
| 25 | omit [Algebra.Etale (MvPolynomial σ K) R] [IsScalarTower K (MvPolynomial σ K) R] |
| 26 | [DecidableEq σ] in |
| 27 | theorem replacementCoordinateMap_none (i : σ) (z : R) : |
| 28 | replacementCoordinateMap (K := K) i z (MvPolynomial.X none) = z := |
| 29 | MvPolynomial.aeval_X _ _ |
| 30 | |
| 31 | omit [Algebra.Etale (MvPolynomial σ K) R] [IsScalarTower K (MvPolynomial σ K) R] |
| 32 | [DecidableEq σ] in |
| 33 | theorem replacementCoordinateMap_some (i : σ) (z : R) (j : {j : σ // i ≠ j}) : |
| 34 | replacementCoordinateMap (K := K) i z (MvPolynomial.X (some j)) = |
| 35 | algebraMap (MvPolynomial σ K) R (MvPolynomial.X j.val) := |
| 36 | MvPolynomial.aeval_X _ _ |
| 37 | |
| 38 | variable [Fintype σ] |
| 39 | |
| 40 | /-- A unit coordinate partial derivative makes the replacement map étale. |
| 41 | Every other original coordinate is retained exactly. -/ |
| 42 | theorem replacementCoordinateMap_etale (i : σ) (z : R) |
| 43 | (hz : IsUnit (DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := R) i z)) : |
| 44 | (replacementCoordinateMap (K := K) i z).toRingHom.Etale := by |
| 45 | let u : Rˣ := hz.unit |
| 46 | have hu : (u : R) = DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := R) i z := hz.unit_spec |
| 47 | let E : Derivation K R R := (u⁻¹ : Rˣ) • DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := R) i |
| 48 | let D : {j : σ // i ≠ j} → Derivation K R R := fun j => DifferentialEquation.Construction.etaleRelativePartial (K := K) j.val |
| 49 | let w : {j : σ // i ≠ j} → R := fun j => |
| 50 | algebraMap (MvPolynomial σ K) R (MvPolynomial.X j.val) |
| 51 | have hEz : E z = 1 := by |
| 52 | change (u⁻¹ : Rˣ) • DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := R) i z = 1 |
| 53 | rw [← hu] |
| 54 | change (↑u⁻¹ : R) * ↑u = 1 |
| 55 | exact Units.inv_mul u |
| 56 | have hEw : ∀ j, E (w j) = 0 := by |
| 57 | intro j |
| 58 | change (u⁻¹ : Rˣ) • DifferentialEquation.Construction.etaleRelativePartial (K := K) (S := R) i |
| 59 | (algebraMap (MvPolynomial σ K) R (MvPolynomial.X j.val)) = 0 |
| 60 | rw [TransverseHypersurfaceCoordinates.Construction.etaleRelativePartial_X, ite_eq_right j.property, smul_zero] |
| 61 | have hD : ∀ j l, D j (w l) = if j = l then 1 else 0 := by |
| 62 | intro j l |
| 63 | simpa only [Subtype.ext_iff] using TransverseHypersurfaceCoordinates.Construction.etaleRelativePartial_X (K := K) (S := R) j.val l.val |
| 64 | let Q := MvPolynomial (Option {j : σ // i ≠ j}) K |
| 65 | let γ : Q →ₐ[K] R := replacementCoordinateMap i z |
| 66 | let : Algebra Q R := γ.toRingHom.toAlgebra |
| 67 | let : IsScalarTower K Q R := IsScalarTower.of_algebraMap_eq' (by |
| 68 | ext a |
| 69 | change algebraMap K R a = γ (algebraMap K Q a) |
| 70 | exact (γ.commutes a).symm) |
| 71 | have hmap : ∀ j : Option {j : σ // i ≠ j}, |
| 72 | algebraMap Q R (MvPolynomial.X j) = AdaptedEtaleFrame.Construction.transverseExtendedCoordinates w z j := by |
| 73 | intro j |
| 74 | change γ (MvPolynomial.X j) = AdaptedEtaleFrame.Construction.transverseExtendedCoordinates w z j |
| 75 | exact MvPolynomial.aeval_X _ _ |
| 76 | let F := AdaptedEtaleFrame.Construction.transverseExtendedDerivations D E z |
| 77 | have hF : ∀ j l, F j (algebraMap Q R (MvPolynomial.X l)) = |
| 78 | if j = l then 1 else 0 := by |
| 79 | intro j l |
| 80 | rw [hmap] |
| 81 | exact AdaptedEtaleFrame.Construction.transverseExtendedDerivations_dual D w E z hD hEz hEw j l |
| 82 | let : Algebra.Smooth K (MvPolynomial σ K) := ⟨inferInstance, inferInstance⟩ |
| 83 | let : Algebra.Smooth K R := Algebra.Smooth.comp K (MvPolynomial σ K) R |
| 84 | let : Algebra.Smooth Q R := Blowups.Smooth.CoordinateFrame.Construction.smooth_over_coordinate_frame F hF |
| 85 | let : Algebra.FormallyUnramified Q R := ReplacementCoordinateUnramified.Construction.formallyUnramified_of_replacement_coordinate |
| 86 | (B := Q) i z hz (by |
| 87 | intro j hij |
| 88 | refine ⟨MvPolynomial.X (some ⟨j, hij⟩), ?_⟩ |
| 89 | exact (hmap (some ⟨j, hij⟩)).symm) ⟨MvPolynomial.X none, (hmap none).symm⟩ |
| 90 | have he : Algebra.Etale Q R := |
| 91 | Algebra.Etale.iff_formallyUnramified_and_smooth.mpr ⟨inferInstance, inferInstance⟩ |
| 92 | change (algebraMap Q R).Etale |
| 93 | exact RingHom.etale_algebraMap.mpr he |
| 94 | |
| 95 | end |
| 96 | |
| 97 | end OAI.AlgebraicGeometry.Resolution.Blowups.Etale.CoordinateReplacement.Construction |