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.RingTheory.Flat.Equalizer |
| 2 | |
| 3 | /-! # Flat Cycle -/ |
| 4 | |
| 5 | namespace OAI.AlgebraicGeometry.Quotients.FiniteDescent.FlatCycle.Construction.FlatCycleDetection |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! A functional detecting a cycle after flat scalar extension already |
| 10 | detects a cycle from the original module. -/ |
| 11 | |
| 12 | open TensorProduct |
| 13 | open scoped TensorProduct |
| 14 | |
| 15 | universe u |
| 16 | |
| 17 | variable {R S : Type u} [CommRing R] [CommRing S] [Algebra R S] [Module.Flat R S] |
| 18 | variable {M N P : Type u} [AddCommGroup M] [Module R M] |
| 19 | variable [AddCommGroup N] [Module R N] [AddCommGroup P] [Module S P] |
| 20 | |
| 21 | theorem exists_cycle (d : M →ₗ[R] N) (b : (S ⊗[R] M) →ₗ[S] P) |
| 22 | (x : S ⊗[R] M) (hx : d.baseChange S x = 0) (hb : b x ≠ 0) : |
| 23 | ∃ m : M, d m = 0 ∧ b ((1 : S) ⊗ₜ[R] m) ≠ 0 := by |
| 24 | by_contra h |
| 25 | have hall : ∀ m : d.ker, b ((1 : S) ⊗ₜ[R] m.val) = 0 := by |
| 26 | intro m |
| 27 | by_contra hm |
| 28 | exact h ⟨m.val, m.property, hm⟩ |
| 29 | have hz : b.comp (d.ker.subtype.baseChange S) = 0 := by |
| 30 | apply LinearMap.ext |
| 31 | intro y |
| 32 | induction y using TensorProduct.inductionOn with |
| 33 | | tmul s m => |
| 34 | change b (s ⊗ₜ[R] m.val) = 0 |
| 35 | have ht : s ⊗ₜ[R] m.val = s • ((1 : S) ⊗ₜ[R] m.val) := by |
| 36 | rw [TensorProduct.smul_tmul', smul_eq_mul, mul_one] |
| 37 | rw [ht, b.map_smul, hall, smul_zero] |
| 38 | | add y z hy hz => simp only [map_add, hy, hz] |
| 39 | have he := Module.Flat.ker_lTensor_eq (S := S) (M := S) d |
| 40 | have hm : x ∈ (d.ker.subtype.baseChange S).range := by |
| 41 | change x ∈ (AlgebraTensorModule.lTensor S S d.ker.subtype).range |
| 42 | rw [← he] |
| 43 | exact hx |
| 44 | obtain ⟨y, rfl⟩ := hm |
| 45 | exact hb (LinearMap.congr_fun hz y) |
| 46 | |
| 47 | end |
| 48 | |
| 49 | end OAI.AlgebraicGeometry.Quotients.FiniteDescent.FlatCycle.Construction.FlatCycleDetection |