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.AbelianModuli.ReferenceFamily.Finite.CharacterQuotient |
| 2 | import OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Integral.ActionExtension |
| 3 | import Mathlib.RingTheory.Etale.Field |
| 4 | import Mathlib.LinearAlgebra.TensorProduct.Basis |
| 5 | |
| 6 | /-! # Character Quotient -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Integral.CharacterQuotient |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! Extend an actual integral number-field representation on a |
| 13 | projective module over a rational algebra. Its original finite integral |
| 14 | character quotient is projective, via the constructed unramified splitting. -/ |
| 15 | |
| 16 | open scoped TensorProduct |
| 17 | |
| 18 | variable {E R V I : Type} [Field E] [NumberField E] [Algebra ℚ E] |
| 19 | [CommRing R] [Algebra ℚ R] |
| 20 | [AddCommGroup V] [Module R V] [Module ℚ V] [IsScalarTower ℚ R V] |
| 21 | |
| 22 | def integralCharacterTensorAction |
| 23 | (ρ : NumberField.RingOfIntegers E →+* Module.End R V) : |
| 24 | R ⊗[ℚ] E →ₐ[R] Module.End R V := |
| 25 | Algebra.TensorProduct.lift (Algebra.ofId R (Module.End R V)) (ActionExtension.extendIntegralAction ρ) |
| 26 | (fun r x => Algebra.commutes r (ActionExtension.extendIntegralAction ρ x)) |
| 27 | |
| 28 | theorem integralCharacterTensorAction_integer |
| 29 | (ρ : NumberField.RingOfIntegers E →+* Module.End R V) |
| 30 | (a : NumberField.RingOfIntegers E) : |
| 31 | integralCharacterTensorAction ρ (1 ⊗ₜ[ℚ] (a : E)) = ρ a := by |
| 32 | change algebraMap R (Module.End R V) 1 * ActionExtension.extendIntegralAction ρ (a : E) = ρ a |
| 33 | rw [map_one, one_mul, ActionExtension.extendIntegralAction_integer] |
| 34 | |
| 35 | def integralCharacterTensorMap (χ : NumberField.RingOfIntegers E →+* R) : |
| 36 | R ⊗[ℚ] E →ₐ[R] R := |
| 37 | Algebra.TensorProduct.lift (AlgHom.id R R) (ActionExtension.extendIntegralAction χ) |
| 38 | (fun r x => Commute.all r (ActionExtension.extendIntegralAction χ x)) |
| 39 | |
| 40 | omit [Module R V] [Module ℚ V] [IsScalarTower ℚ R V] in |
| 41 | theorem integralCharacterTensorMap_integer (χ : NumberField.RingOfIntegers E →+* R) |
| 42 | (a : NumberField.RingOfIntegers E) : |
| 43 | integralCharacterTensorMap χ (1 ⊗ₜ[ℚ] (a : E)) = χ a := by |
| 44 | change 1 * ActionExtension.extendIntegralAction χ (a : E) = χ a |
| 45 | rw [one_mul, ActionExtension.extendIntegralAction_integer] |
| 46 | |
| 47 | def integralCharacterTensorBasis (b : Module.Basis I ℤ (NumberField.RingOfIntegers E)) : |
| 48 | Module.Basis I R (R ⊗[ℚ] E) := |
| 49 | (b.localizationLocalization ℚ (nonZeroDivisors ℤ) E).baseChange R |
| 50 | |
| 51 | omit [Module R V] [Module ℚ V] [IsScalarTower ℚ R V] in |
| 52 | theorem integralCharacterTensorBasis_apply |
| 53 | (b : Module.Basis I ℤ (NumberField.RingOfIntegers E)) (i : I) : |
| 54 | integralCharacterTensorBasis (R := R) b i = 1 ⊗ₜ[ℚ] (b i : E) := by |
| 55 | rw [integralCharacterTensorBasis, Module.Basis.baseChange_apply, |
| 56 | Module.Basis.localizationLocalization_apply] |
| 57 | |
| 58 | theorem integralCharacterQuotient_projective |
| 59 | [Fintype I] [Module.Projective R V] |
| 60 | (b : Module.Basis I ℤ (NumberField.RingOfIntegers E)) |
| 61 | (ρ : NumberField.RingOfIntegers E →+* Module.End R V) |
| 62 | (χ : NumberField.RingOfIntegers E →+* R) : |
| 63 | Module.Projective R (PELModuli.IntegralModel.ConormalEigenquotient.conormalEigenquotient (fun i => ρ (b i)) (fun i => χ (b i))) := by |
| 64 | let : Algebra.FormallyEtale ℚ E := Algebra.FormallyEtale.of_isSeparable ℚ E |
| 65 | let a := integralCharacterTensorAction ρ |
| 66 | let : Module (R ⊗[ℚ] E) V := Module.compHom V a.toRingHom |
| 67 | let : IsScalarTower R (R ⊗[ℚ] E) V := ⟨fun r x v => by |
| 68 | change a (r • x) v = r • a x v |
| 69 | exact LinearMap.congr_fun (a.toLinearMap.map_smul r x) v⟩ |
| 70 | have hd : (fun i => (Algebra.lsmul R R V) (integralCharacterTensorBasis (R := R) b i)) = |
| 71 | (fun i => ρ (b i)) := by |
| 72 | funext i |
| 73 | change a (integralCharacterTensorBasis (R := R) b i) = ρ (b i) |
| 74 | rw [integralCharacterTensorBasis_apply] |
| 75 | exact integralCharacterTensorAction_integer ρ (b i) |
| 76 | have hχ : (fun i => integralCharacterTensorMap χ (integralCharacterTensorBasis (R := R) b i)) = |
| 77 | (fun i => χ (b i)) := by |
| 78 | funext i |
| 79 | rw [integralCharacterTensorBasis_apply, integralCharacterTensorMap_integer] |
| 80 | have h := ReferenceFamily.Finite.CharacterQuotient.finiteCharacterQuotient_projective (V := V) |
| 81 | (integralCharacterTensorBasis (R := R) b) (integralCharacterTensorMap χ) |
| 82 | rw [hd, hχ] at h |
| 83 | exact h |
| 84 | |
| 85 | theorem integralCharacterQuotient_rank_isLocallyConstant |
| 86 | [Fintype I] [Module.Projective R V] [Module.Finite R V] [IsNoetherianRing R] |
| 87 | (b : Module.Basis I ℤ (NumberField.RingOfIntegers E)) |
| 88 | (ρ : NumberField.RingOfIntegers E →+* Module.End R V) |
| 89 | (χ : NumberField.RingOfIntegers E →+* R) : |
| 90 | IsLocallyConstant (Module.rankAtStalk (R := R) |
| 91 | (PELModuli.IntegralModel.ConormalEigenquotient.conormalEigenquotient (fun i => ρ (b i)) (fun i => χ (b i)))) := by |
| 92 | let : Module.Projective R (PELModuli.IntegralModel.ConormalEigenquotient.conormalEigenquotient (fun i => ρ (b i)) (fun i => χ (b i))) := |
| 93 | integralCharacterQuotient_projective b ρ χ |
| 94 | let : Module.FinitePresentation R (PELModuli.IntegralModel.ConormalEigenquotient.conormalEigenquotient (fun i => ρ (b i)) (fun i => χ (b i))) := |
| 95 | PELModuli.IntegralModel.ConormalEigenquotient.conormalEigenquotient_finitePresentation _ _ |
| 96 | exact Module.isLocallyConstant_rankAtStalk |
| 97 | |
| 98 | end |
| 99 | |
| 100 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Integral.CharacterQuotient |