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 Mathlib.RingTheory.RingHom.Etale |
| 2 | import Mathlib.RingTheory.TensorProduct.Maps |
| 3 | |
| 4 | /-! # Comparison Fiber Product -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.Resolution.Blowups.Etale.ComparisonFiberProduct.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The actual affine fiber product used to compare two étale coordinate charts. -/ |
| 11 | |
| 12 | open scoped TensorProduct |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {k P R S : Type u} [CommRing k] [CommRing P] [CommRing R] [CommRing S] |
| 17 | [Algebra k P] [Algebra k R] [Algebra k S] [Algebra P R] [Algebra P S] |
| 18 | [IsScalarTower k P R] [IsScalarTower k P S] |
| 19 | |
| 20 | def etaleComparisonLeft : R →ₐ[k] R ⊗[P] S := Algebra.TensorProduct.includeLeft |
| 21 | |
| 22 | def etaleComparisonRight : S →ₐ[k] R ⊗[P] S := |
| 23 | (Algebra.TensorProduct.includeRight : S →ₐ[P] R ⊗[P] S).restrictScalars k |
| 24 | |
| 25 | theorem etaleComparison_coordinate_relation (p : P) : |
| 26 | etaleComparisonLeft (k := k) (P := P) (S := S) (algebraMap P R p) = |
| 27 | etaleComparisonRight (k := k) (P := P) (R := R) (algebraMap P S p) := by |
| 28 | exact ((Algebra.TensorProduct.includeLeft : R →ₐ[P] R ⊗[P] S).commutes p).trans |
| 29 | ((Algebra.TensorProduct.includeRight : S →ₐ[P] R ⊗[P] S).commutes p).symm |
| 30 | |
| 31 | omit [Algebra k S] [IsScalarTower k P S] in |
| 32 | theorem etaleComparisonLeft_etale [Algebra.Etale P S] : |
| 33 | (etaleComparisonLeft (k := k) (P := P) (R := R) (S := S)).toRingHom.Etale := by |
| 34 | change (algebraMap R (R ⊗[P] S)).Etale |
| 35 | exact RingHom.etale_algebraMap.mpr inferInstance |
| 36 | |
| 37 | theorem etaleComparisonRight_etale [Algebra.Etale P R] : |
| 38 | (etaleComparisonRight (k := k) (P := P) (R := R) (S := S)).toRingHom.Etale := by |
| 39 | have he : (etaleComparisonRight (k := k) (P := P) (R := R) (S := S)).toRingHom = |
| 40 | (Algebra.TensorProduct.comm P S R).toRingHom.comp (algebraMap S (S ⊗[P] R)) := by |
| 41 | ext s |
| 42 | simp [etaleComparisonRight, Algebra.TensorProduct.algebraMap_apply] |
| 43 | rw [he] |
| 44 | exact RingHom.Etale.stableUnderComposition |
| 45 | (algebraMap S (S ⊗[P] R)) (Algebra.TensorProduct.comm P S R).toRingHom |
| 46 | ((RingHom.etale_algebraMap (R := S) (S := S ⊗[P] R)).mpr inferInstance) |
| 47 | (RingHom.Etale.of_bijective (Algebra.TensorProduct.comm P S R).bijective) |
| 48 | |
| 49 | variable {C : Type u} [CommRing C] [Algebra k C] |
| 50 | |
| 51 | /-- Compatible points of the two coordinate charts give a point on their actual |
| 52 | fiber product, retaining the original coefficient algebra. -/ |
| 53 | def etaleComparisonPoint (r : R →ₐ[k] C) (s : S →ₐ[k] C) |
| 54 | (h : ∀ p : P, r (algebraMap P R p) = s (algebraMap P S p)) : |
| 55 | R ⊗[P] S →ₐ[k] C := by |
| 56 | let : Algebra P C := (r.toRingHom.comp (algebraMap P R)).toAlgebra |
| 57 | let : IsScalarTower k P C := IsScalarTower.of_algebraMap_eq' (by |
| 58 | ext a |
| 59 | change algebraMap k C a = r (algebraMap P R (algebraMap k P a)) |
| 60 | rw [← IsScalarTower.algebraMap_apply k P R, r.commutes]) |
| 61 | let rP : R →ₐ[P] C := { r.toRingHom with commutes' := fun _ => rfl } |
| 62 | let sP : S →ₐ[P] C := { s.toRingHom with commutes' := fun p => (h p).symm } |
| 63 | exact (Algebra.TensorProduct.lift rP sP (fun _ _ => Commute.all _ _)).restrictScalars k |
| 64 | |
| 65 | omit [IsScalarTower k P S] in |
| 66 | theorem etaleComparisonPoint_left (r : R →ₐ[k] C) (s : S →ₐ[k] C) |
| 67 | (h : ∀ p : P, r (algebraMap P R p) = s (algebraMap P S p)) (x : R) : |
| 68 | etaleComparisonPoint r s h (etaleComparisonLeft (k := k) (P := P) (S := S) x) = r x := by |
| 69 | change r x * s 1 = r x |
| 70 | rw [map_one, mul_one] |
| 71 | |
| 72 | theorem etaleComparisonPoint_right (r : R →ₐ[k] C) (s : S →ₐ[k] C) |
| 73 | (h : ∀ p : P, r (algebraMap P R p) = s (algebraMap P S p)) (x : S) : |
| 74 | etaleComparisonPoint r s h (etaleComparisonRight (k := k) (P := P) (R := R) x) = s x := by |
| 75 | change r 1 * s x = s x |
| 76 | rw [map_one, one_mul] |
| 77 | |
| 78 | end |
| 79 | |
| 80 | end OAI.AlgebraicGeometry.Resolution.Blowups.Etale.ComparisonFiberProduct.Construction |