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.NumberTheory.PadicHodge.PeriodInvariants.EtaleFieldTracePairing |
| 2 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.TracePairingBasis |
| 3 | import OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteFreeFiberSurjectivity |
| 4 | |
| 5 | /-! # Finite Etale Dual Basis -/ |
| 6 | |
| 7 | namespace OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteEtaleDualBasis |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! # Actual trace-dual bases for finite free étale algebras over arbitrary rings -/ |
| 12 | |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u v |
| 16 | variable {R S : Type u} [CommRing R] [CommRing S] [Algebra R S] |
| 17 | [Module.Free R S] [Module.Finite R S] [Algebra.Etale R S] |
| 18 | {ι : Type v} [Fintype ι] (b : Module.Basis ι R S) |
| 19 | |
| 20 | theorem fiber_surjective (F : Type u) [Field F] [Algebra R F] : |
| 21 | Function.Surjective ((TracePairingBasis.linear b).baseChange F) := by |
| 22 | have : FiniteDimensional F (F ⊗[R] S) := inferInstance |
| 23 | have hn : (Algebra.traceForm F (F ⊗[R] S)).Nondegenerate := |
| 24 | EtaleFieldTracePairing.Finite.nondegenerate F (F ⊗[R] S) |
| 25 | have hs : Function.Surjective (TracePairingBasis.linear (b.baseChange F)) := |
| 26 | TracePairingBasis.surjective (b.baseChange F) hn |
| 27 | have he : Function.Surjective ((TracePairingBasis.linear b).baseChange F) = |
| 28 | Function.Surjective (TracePairingBasis.linear (b.baseChange F)) := |
| 29 | congrArg (fun f : (F ⊗[R] S) →ₗ[F] (F ⊗[R] S) => Function.Surjective f) |
| 30 | (TracePairingBasis.baseChange b F) |
| 31 | exact Eq.mpr he hs |
| 32 | |
| 33 | theorem bijective : Function.Bijective (TracePairingBasis.linear b) := by |
| 34 | apply FiniteFreeFiberSurjectivity.bijective |
| 35 | intro m hm |
| 36 | let : Field (R ⧸ m) := Ideal.Quotient.field m |
| 37 | exact fiber_surjective b (R ⧸ m) |
| 38 | |
| 39 | def equiv : S ≃ₗ[R] S := LinearEquiv.ofBijective (TracePairingBasis.linear b) (bijective b) |
| 40 | |
| 41 | def dualBasis : Module.Basis ι R S := b.map (equiv b).symm |
| 42 | |
| 43 | theorem trace_basis_dual [DecidableEq ι] (i j : ι) : |
| 44 | Algebra.trace R S (b i * dualBasis b j) = if i = j then 1 else 0 := by |
| 45 | rw [← TracePairingBasis.coordinate b (dualBasis b j) i] |
| 46 | have he : TracePairingBasis.linear b (dualBasis b j) = b j := |
| 47 | (equiv b).apply_symm_apply (b j) |
| 48 | rw [he, b.equivFun_self] |
| 49 | simp only [eq_comm] |
| 50 | |
| 51 | theorem trace_dual_basis [DecidableEq ι] (i j : ι) : |
| 52 | Algebra.trace R S (dualBasis b i * b j) = if i = j then 1 else 0 := by |
| 53 | rw [mul_comm, trace_basis_dual] |
| 54 | simp only [eq_comm] |
| 55 | |
| 56 | theorem coordinate (i : ι) : Algebra.traceForm R S (dualBasis b i) = b.coord i := by |
| 57 | classical |
| 58 | apply b.ext |
| 59 | intro j |
| 60 | change Algebra.trace R S (dualBasis b i * b j) = b.repr (b j) i |
| 61 | rw [trace_dual_basis, b.repr_self_apply] |
| 62 | simp only [eq_comm] |
| 63 | |
| 64 | theorem expansion (x : S) : (∑ i, Algebra.trace R S (dualBasis b i * x) • b i) = x := by |
| 65 | have he : ∀ i, Algebra.trace R S (dualBasis b i * x) = b.repr x i := |
| 66 | fun i => LinearMap.congr_fun (coordinate b i) x |
| 67 | simp only [he, b.sum_repr] |
| 68 | |
| 69 | end |
| 70 | |
| 71 | end OAI.NumberTheory.PadicHodge.PeriodInvariants.FiniteEtaleDualBasis |