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.LinearAlgebra.TensorProduct.Tower |
| 2 | import Mathlib.RingTheory.TensorProduct.Finite |
| 3 | import Mathlib.RingTheory.Flat.EquationalCriterion |
| 4 | import Mathlib.RingTheory.Noetherian.Basic |
| 5 | |
| 6 | /-! # Obstruction -/ |
| 7 | |
| 8 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.IdealTensor.Obstruction |
| 9 | |
| 10 | noncomputable section |
| 11 | |
| 12 | /-! The ideal-tensor kernel which tests flatness is a finite module |
| 13 | over a noetherian coefficient algebra. Flat modules have zero kernel. -/ |
| 14 | |
| 15 | open TensorProduct |
| 16 | |
| 17 | universe u v w |
| 18 | variable (B : Type u) [CommRing B] (S : Type v) [CommRing S] [Algebra B S] |
| 19 | variable (M : Type w) [AddCommGroup M] [Module B M] [Module S M] [IsScalarTower B S M] |
| 20 | |
| 21 | def idealTensorMultiplication (I : Ideal B) : M ⊗[B] I →ₗ[S] M := |
| 22 | (AlgebraTensorModule.rid B S M).toLinearMap.comp |
| 23 | (AlgebraTensorModule.map (LinearMap.id : M →ₗ[S] M) I.subtype) |
| 24 | |
| 25 | theorem idealTensorMultiplication_tmul (I : Ideal B) (m : M) (r : I) : |
| 26 | idealTensorMultiplication B S M I (m ⊗ₜ[B] r) = r.val • m := rfl |
| 27 | |
| 28 | theorem idealTensorMultiplication_injective (I : Ideal B) [Module.Flat B M] : |
| 29 | Function.Injective (idealTensorMultiplication B S M I) := by |
| 30 | exact (AlgebraTensorModule.rid B S M).injective.comp |
| 31 | (Module.Flat.lTensor_preserves_injective_linearMap (M := M) I.subtype Subtype.val_injective) |
| 32 | |
| 33 | theorem idealTensorModule_finite (I : Ideal B) (hI : I.FG) [Module.Finite S M] : |
| 34 | Module.Finite S (M ⊗[B] I) := by |
| 35 | let : Module.Finite B I := Module.Finite.of_fg hI |
| 36 | exact Module.Finite.equiv (AlgebraTensorModule.cancelBaseChange B S S M I) |
| 37 | |
| 38 | theorem idealTensorObstruction_finite [IsNoetherianRing S] [Module.Finite S M] |
| 39 | (I : Ideal B) (hI : I.FG) : Module.Finite S (idealTensorMultiplication B S M I).ker := by |
| 40 | let := idealTensorModule_finite B S M I hI |
| 41 | infer_instance |
| 42 | |
| 43 | theorem idealTensorObstruction_eq_bot (I : Ideal B) [Module.Flat B M] : |
| 44 | (idealTensorMultiplication B S M I).ker = ⊥ := |
| 45 | LinearMap.ker_eq_bot.mpr (idealTensorMultiplication_injective B S M I) |
| 46 | |
| 47 | theorem flat_iff_idealTensorObstructions_zero : |
| 48 | Module.Flat B M ↔ ∀ I : Ideal B, (idealTensorMultiplication B S M I).ker = ⊥ := by |
| 49 | constructor |
| 50 | · intro h I |
| 51 | let := h |
| 52 | exact idealTensorObstruction_eq_bot B S M I |
| 53 | · intro h |
| 54 | apply ((Module.Flat.tfae_equational_criterion B M).out 1 2).mpr |
| 55 | intro I |
| 56 | apply (I.subtype.lTensor_inj_iff_rTensor_inj M).mp |
| 57 | intro x y hxy |
| 58 | apply (LinearMap.ker_eq_bot.mp (h I)) |
| 59 | exact congrArg (AlgebraTensorModule.rid B S M) hxy |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.IdealTensor.Obstruction |