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.Crystalline.Cohomology.AlgebraicForms |
| 2 | import Mathlib.LinearAlgebra.ExteriorPower.Basis |
| 3 | import Mathlib.RingTheory.TensorProduct.IsBaseChangeFree |
| 4 | |
| 5 | /-! # Base Change -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.Comparison.Betti.Exterior.BaseChange |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Exterior powers preserve scalar extension for free modules, with the actual induced map. -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | variable {R S M N : Type*} [CommRing R] [CommRing S] [Algebra R S] |
| 16 | [AddCommGroup M] [Module R M] |
| 17 | [AddCommGroup N] [Module R N] [Module S N] [IsScalarTower R S N] |
| 18 | |
| 19 | theorem isBaseChange_of_basis_map {ι : Type*} (f : M →ₗ[R] N) |
| 20 | (b : Module.Basis ι R M) (c : Module.Basis ι S N) |
| 21 | (h : ∀ i, f (b i) = c i) : IsBaseChange S f := by |
| 22 | let t : M →ₗ[R] S ⊗[R] M := TensorProduct.mk R S M 1 |
| 23 | let hb : IsBaseChange S t := TensorProduct.isBaseChange R M S |
| 24 | let b' := hb.basis b |
| 25 | let e : S ⊗[R] M ≃ₗ[S] N := b'.equiv c (Equiv.refl ι) |
| 26 | apply IsBaseChange.of_equiv e |
| 27 | have he : (e.toLinearMap.restrictScalars R).comp t = f := by |
| 28 | apply b.ext |
| 29 | intro i |
| 30 | change e (t (b i)) = f (b i) |
| 31 | rw [← hb.basis_apply b i] |
| 32 | change (b'.equiv c (Equiv.refl ι)) (b' i) = _ |
| 33 | rw [Module.Basis.equiv_apply] |
| 34 | exact (h i).symm |
| 35 | exact fun x => LinearMap.congr_fun he x |
| 36 | |
| 37 | def map (f : M →ₗ[R] N) (n : ℕ) : ⋀[R]^n M →ₗ[R] ⋀[S]^n N := |
| 38 | exteriorPower.alternatingMapLinearEquiv |
| 39 | ((Crystalline.Cohomology.AlgebraicForms.AlgebraicDeRham.restrictAlternating (R := R) |
| 40 | (exteriorPower.ιMulti S n)).compLinearMap f) |
| 41 | |
| 42 | theorem map_mk (f : M →ₗ[R] N) (n : ℕ) (v : Fin n → M) : |
| 43 | map f n (exteriorPower.ιMulti R n v) = exteriorPower.ιMulti S n (fun i => f (v i)) := by |
| 44 | simp [map, exteriorPower.alternatingMapLinearEquiv_apply_ιMulti] |
| 45 | rfl |
| 46 | |
| 47 | theorem map_basis {ι : Type*} [LinearOrder ι] (f : M →ₗ[R] N) |
| 48 | (h : IsBaseChange S f) (b : Module.Basis ι R M) (n : ℕ) |
| 49 | (s : Set.powersetCard ι n) : |
| 50 | map f n (b.exteriorPower n s) = (h.basis b).exteriorPower n s := by |
| 51 | rw [exteriorPower.basis_apply, exteriorPower.basis_apply] |
| 52 | unfold exteriorPower.ιMulti_family |
| 53 | rw [map_mk] |
| 54 | congr 1 |
| 55 | funext i |
| 56 | exact (h.basis_apply b _).symm |
| 57 | |
| 58 | theorem isBaseChange {ι : Type*} [LinearOrder ι] (f : M →ₗ[R] N) |
| 59 | (h : IsBaseChange S f) (b : Module.Basis ι R M) (n : ℕ) : |
| 60 | IsBaseChange S (map (S := S) f n) := |
| 61 | isBaseChange_of_basis_map (map (S := S) f n) (b.exteriorPower n) ((h.basis b).exteriorPower n) |
| 62 | (map_basis f h b n) |
| 63 | |
| 64 | end |
| 65 | |
| 66 | end OAI.AlgebraicGeometry.Comparison.Betti.Exterior.BaseChange |