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.Algebra.Lie.Killing |
| 2 | import Mathlib.LinearAlgebra.BilinearForm.Properties |
| 3 | |
| 4 | /-! # Invariant Dual Tensor -/ |
| 5 | |
| 6 | namespace OAI.NumberTheory.ArithmeticGroups.Lattices.InvariantDualTensor.Construction |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | section |
| 11 | |
| 12 | /-! Dual-basis trace identities and the adjoint Casimir identity for |
| 13 | a finite-dimensional Lie algebra with nondegenerate Killing form. -/ |
| 14 | |
| 15 | open scoped Classical |
| 16 | open _root_.Module LieAlgebra |
| 17 | |
| 18 | theorem bilinear_dualBasis_pair_repr |
| 19 | {k V ι : Type*} [Field k] [AddCommGroup V] [Module k V] [Fintype ι] |
| 20 | (B : LinearMap.BilinForm k V) (hB : B.Nondegenerate) (b : Basis ι k V) (x : V) (i : ι) : |
| 21 | B (B.dualBasis hB b i) x = b.repr x i := by |
| 22 | let : FiniteDimensional k V := b.finiteDimensional_of_finite |
| 23 | simp only [LinearMap.BilinForm.dualBasis, Basis.map_apply, |
| 24 | LinearMap.BilinForm.apply_toDual_symm_apply, Basis.coe_dualBasis, Basis.coord_apply] |
| 25 | |
| 26 | theorem trace_eq_dualBasis_sum |
| 27 | {k V ι : Type*} [Field k] [AddCommGroup V] [Module k V] [Fintype ι] |
| 28 | (B : LinearMap.BilinForm k V) (hB : B.Nondegenerate) (b : Basis ι k V) |
| 29 | (T : V →ₗ[k] V) : LinearMap.trace k V T = ∑ i, B (B.dualBasis hB b i) (T (b i)) := by |
| 30 | rw [LinearMap.trace_eq_matrix_trace k b] |
| 31 | change (∑ i, (LinearMap.toMatrix b b T) i i) = _ |
| 32 | simp only [LinearMap.toMatrix_apply', bilinear_dualBasis_pair_repr] |
| 33 | |
| 34 | theorem killing_casimir_apply |
| 35 | {k L ι : Type*} [Field k] [LieRing L] [LieAlgebra k L] [Fintype ι] |
| 36 | (hB : (killingForm k L).Nondegenerate) (b : Basis ι k L) (x : L) : |
| 37 | ∑ i, ⁅b i, ⁅(killingForm k L).dualBasis hB b i, x⁆⁆ = x := by |
| 38 | let : FiniteDimensional k L := b.finiteDimensional_of_finite |
| 39 | apply ((killingForm k L).toDual hB).injective |
| 40 | apply LinearMap.ext |
| 41 | intro y |
| 42 | change killingForm k L (∑ i, ⁅b i, ⁅(killingForm k L).dualBasis hB b i, x⁆⁆) y = |
| 43 | killingForm k L x y |
| 44 | rw [map_sum, LinearMap.sum_apply] |
| 45 | calc |
| 46 | _ = ∑ i, killingForm k L ((killingForm k L).dualBasis hB b i) ⁅x, ⁅y, b i⁆⁆ := by |
| 47 | apply Finset.sum_congr rfl |
| 48 | intro i _ |
| 49 | rw [LieModule.traceForm_comm k L L ⁅b i, ⁅(killingForm k L).dualBasis hB b i, x⁆⁆ y, |
| 50 | ← LieModule.traceForm_apply_lie_apply, |
| 51 | LieModule.traceForm_comm k L L ⁅y, b i⁆, |
| 52 | LieModule.traceForm_apply_lie_apply] |
| 53 | _ = LinearMap.trace k L (ad k L x ∘ₗ ad k L y) := |
| 54 | (trace_eq_dualBasis_sum (killingForm k L) hB b (ad k L x ∘ₗ ad k L y)).symm |
| 55 | _ = _ := (killingForm_apply_apply k L x y).symm |
| 56 | |
| 57 | end |
| 58 | |
| 59 | /-! The dual-basis tensor of a nondegenerate bilinear form is fixed by |
| 60 | every skew-adjoint endomorphism. -/ |
| 61 | |
| 62 | open scoped Classical |
| 63 | open _root_.Module |
| 64 | |
| 65 | theorem bilinear_dualBasis_skew_sum |
| 66 | {k V M ι : Type*} [Field k] [AddCommGroup V] [Module k V] |
| 67 | [AddCommGroup M] [Module k M] [Fintype ι] |
| 68 | (B : LinearMap.BilinForm k V) (hB : B.Nondegenerate) (b : Basis ι k V) |
| 69 | (T : V →ₗ[k] V) (hT : ∀ x y, B (T x) y = -B x (T y)) |
| 70 | (F : V →ₗ[k] V →ₗ[k] M) : |
| 71 | (∑ i, F (T (b i)) (B.dualBasis hB b i)) + |
| 72 | (∑ i, F (b i) (T (B.dualBasis hB b i))) = 0 := by |
| 73 | let d := B.dualBasis hB b |
| 74 | have hcoeff (i j : ι) : d.repr (T (d i)) j = -b.repr (T (b j)) i := by |
| 75 | rw [LinearMap.BilinForm.dualBasis_repr_apply, hT, bilinear_dualBasis_pair_repr] |
| 76 | have hleft (i : ι) : F (T (b i)) (d i) = |
| 77 | ∑ j, b.repr (T (b i)) j • F (b j) (d i) := by |
| 78 | conv_lhs => rw [← b.sum_repr (T (b i))] |
| 79 | simp only [map_sum, map_smul, LinearMap.sum_apply, LinearMap.smul_apply] |
| 80 | have hright (i : ι) : F (b i) (T (d i)) = |
| 81 | -∑ j, b.repr (T (b j)) i • F (b i) (d j) := by |
| 82 | conv_lhs => rw [← d.sum_repr (T (d i))] |
| 83 | simp only [map_sum, map_smul, map_neg, hcoeff, neg_smul, Finset.sum_neg_distrib] |
| 84 | change (∑ i, F (T (b i)) (d i)) + (∑ i, F (b i) (T (d i))) = 0 |
| 85 | simp only [hleft, hright, Finset.sum_neg_distrib] |
| 86 | rw [Finset.sum_comm] |
| 87 | exact add_neg_cancel _ |
| 88 | |
| 89 | theorem killing_dualBasis_lie_sum |
| 90 | {k L M ι : Type*} [Field k] [LieRing L] [LieAlgebra k L] |
| 91 | [AddCommGroup M] [Module k M] [Fintype ι] |
| 92 | (hB : (killingForm k L).Nondegenerate) (b : Basis ι k L) |
| 93 | (x : L) (F : L →ₗ[k] L →ₗ[k] M) : |
| 94 | (∑ i, F ⁅x, b i⁆ ((killingForm k L).dualBasis hB b i)) + |
| 95 | (∑ i, F (b i) ⁅x, (killingForm k L).dualBasis hB b i⁆) = 0 := by |
| 96 | let : FiniteDimensional k L := b.finiteDimensional_of_finite |
| 97 | exact bilinear_dualBasis_skew_sum (killingForm k L) hB b (LieAlgebra.ad k L x) |
| 98 | (fun y z => LieModule.traceForm_apply_lie_apply' k L L x y z) F |
| 99 | |
| 100 | end |
| 101 | |
| 102 | end OAI.NumberTheory.ArithmeticGroups.Lattices.InvariantDualTensor.Construction |