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.NumberTheory.NumberField.Basic |
| 2 | import Mathlib.RingTheory.Algebraic.Integral |
| 3 | import Mathlib.RingTheory.TensorProduct.Maps |
| 4 | |
| 5 | /-! # Action Extension -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Integral.ActionExtension |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! Extend an integral number-field action to a rational algebra by |
| 12 | the actual scalar-extension presentation Q tensor O_E = E. The target |
| 13 | algebra may be noncommutative, as for endomorphism rings. -/ |
| 14 | |
| 15 | open scoped TensorProduct |
| 16 | |
| 17 | variable {E D : Type*} [Field E] [NumberField E] [Algebra ℚ E] |
| 18 | [Ring D] [Algebra ℚ D] |
| 19 | |
| 20 | def integralRationalTensorIso : ℚ ⊗[ℤ] NumberField.RingOfIntegers E ≃ₐ[ℚ] E := |
| 21 | Algebra.IsPushout.equiv ℤ ℚ (NumberField.RingOfIntegers E) E |
| 22 | |
| 23 | def integralActionTensorMap (ρ : NumberField.RingOfIntegers E →+* D) : |
| 24 | ℚ ⊗[ℤ] NumberField.RingOfIntegers E →ₐ[ℚ] D := |
| 25 | Algebra.TensorProduct.lift (Algebra.ofId ℚ D) ρ.toIntAlgHom |
| 26 | (fun r x => Algebra.commutes r (ρ x)) |
| 27 | |
| 28 | /-- The extension is a genuine Q-algebra homomorphism into the actual |
| 29 | endomorphism algebra; scalar commutation is built into the tensor map. -/ |
| 30 | def extendIntegralAction (ρ : NumberField.RingOfIntegers E →+* D) : E →ₐ[ℚ] D := |
| 31 | (integralActionTensorMap ρ).comp integralRationalTensorIso.symm.toAlgHom |
| 32 | |
| 33 | theorem extendIntegralAction_tmul (ρ : NumberField.RingOfIntegers E →+* D) |
| 34 | (q : ℚ) (a : NumberField.RingOfIntegers E) : |
| 35 | extendIntegralAction ρ (integralRationalTensorIso (q ⊗ₜ[ℤ] a)) = algebraMap ℚ D q * ρ a := by |
| 36 | change integralActionTensorMap ρ (integralRationalTensorIso.symm |
| 37 | (integralRationalTensorIso (q ⊗ₜ[ℤ] a))) = _ |
| 38 | rw [AlgEquiv.symm_apply_apply] |
| 39 | rfl |
| 40 | |
| 41 | /-- Commuting with every integral operator implies commuting with the |
| 42 | entire field action, by the explicit rational tensor presentation. -/ |
| 43 | theorem extendIntegralAction_commute (ρ : NumberField.RingOfIntegers E →+* D) (z : D) |
| 44 | (h : ∀ a, Commute (ρ a) z) (x : E) : Commute (extendIntegralAction ρ x) z := by |
| 45 | obtain ⟨t, rfl⟩ := (integralRationalTensorIso (E := E)).surjective x |
| 46 | induction t using TensorProduct.inductionOn with |
| 47 | | add t u ht hu => |
| 48 | rw [map_add, map_add] |
| 49 | exact ht.add_left hu |
| 50 | | tmul q a => |
| 51 | rw [extendIntegralAction_tmul] |
| 52 | exact (show Commute (algebraMap ℚ D q) z from Algebra.commutes q z).mul_left (h a) |
| 53 | |
| 54 | theorem extendIntegralAction_integer (ρ : NumberField.RingOfIntegers E →+* D) |
| 55 | (a : NumberField.RingOfIntegers E) : extendIntegralAction ρ (a : E) = ρ a := by |
| 56 | have ha : integralRationalTensorIso (1 ⊗ₜ[ℤ] a) = (a : E) := by |
| 57 | exact (Algebra.IsPushout.equiv_tmul ℤ ℚ (NumberField.RingOfIntegers E) E 1 a).trans |
| 58 | ((congrArg (fun x => x * (a : E)) (map_one (algebraMap ℚ E))).trans (one_mul _)) |
| 59 | change integralActionTensorMap ρ (integralRationalTensorIso.symm (a : E)) = ρ a |
| 60 | rw [← ha, AlgEquiv.symm_apply_apply] |
| 61 | change (Algebra.ofId ℚ D) 1 * ρ a = ρ a |
| 62 | rw [map_one, one_mul] |
| 63 | |
| 64 | theorem extendIntegralAction_end_apply {V : Type*} [AddCommGroup V] [Module ℚ V] |
| 65 | (ρ : NumberField.RingOfIntegers E →+* Module.End ℚ V) |
| 66 | (a : NumberField.RingOfIntegers E) (v : V) : |
| 67 | extendIntegralAction (D := Module.End ℚ V) ρ (a : E) v = ρ a v := |
| 68 | LinearMap.congr_fun (extendIntegralAction_integer (D := Module.End ℚ V) ρ a) v |
| 69 | |
| 70 | theorem extendIntegralAction_end_commute_apply {V : Type*} [AddCommGroup V] [Module ℚ V] |
| 71 | (ρ : NumberField.RingOfIntegers E →+* Module.End ℚ V) (F : Module.End ℚ V) |
| 72 | (h : ∀ a, Commute (ρ a) F) (a : E) (v : V) : |
| 73 | F (extendIntegralAction (D := Module.End ℚ V) ρ a v) = |
| 74 | extendIntegralAction (D := Module.End ℚ V) ρ a (F v) := |
| 75 | (LinearMap.congr_fun (extendIntegralAction_commute ρ F h a).eq v).symm |
| 76 | |
| 77 | end |
| 78 | |
| 79 | end OAI.AlgebraicGeometry.AbelianModuli.ReferenceFamily.Integral.ActionExtension |