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.AlgebraicGeometry.HilbertScheme.Presentations.Local.FlatnessCriterion |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.Flat.ReductionTensorInjectivity |
| 3 | |
| 4 | /-! # Reduced Ideal Tensor Criterion -/ |
| 5 | |
| 6 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReducedIdealTensorCriterion |
| 7 | |
| 8 | noncomputable section |
| 9 | |
| 10 | /-! The local flatness criterion with an arbitrary proper reduction ideal: |
| 11 | flat reduced module and a zero ideal-tensor obstruction imply flatness. -/ |
| 12 | |
| 13 | open TensorProduct |
| 14 | |
| 15 | universe u v w |
| 16 | variable {B : Type u} [CommRing B] |
| 17 | variable {F : Type w} [AddCommGroup F] [Module B F] [Module.Flat B F] |
| 18 | variable {M : Type v} [AddCommGroup M] [Module B M] |
| 19 | |
| 20 | theorem flatPresentation_idealTensor_injective_of_flat_reduction |
| 21 | (q : F →ₗ[B] M) (hq : Function.Surjective q) |
| 22 | (I J : Ideal B) (hIJ : I ≤ J) |
| 23 | [Module.Flat (B ⧸ I) ((B ⧸ I) ⊗[B] M)] |
| 24 | (hI : Function.Injective (IdealTensor.Obstruction.idealTensorMultiplication B B M I)) : |
| 25 | Function.Injective (IdealTensor.Obstruction.idealTensorMultiplication B B M J) := by |
| 26 | have hT : Module.IsTorsionBySet B (B ⧸ J) I := |
| 27 | (Module.isTorsionBySet_quotient_iff J I).mpr fun x r hr => J.mul_mem_right x (hIJ hr) |
| 28 | let : Module (B ⧸ I) (B ⧸ J) := hT.module |
| 29 | let : IsScalarTower B (B ⧸ I) (B ⧸ J) := hT.isScalarTower |
| 30 | have hfI : Function.Injective (q.ker.subtype.lTensor (B ⧸ I)) := |
| 31 | (IdealTensor.Presentation.presentation_tensor_quotient_injective_iff q hq I).mpr hI |
| 32 | have hfJ : Function.Injective (q.ker.subtype.lTensor (B ⧸ J)) := |
| 33 | Presentations.Flat.ReductionTensorInjectivity.lTensor_injective_of_flat_reduction (B ⧸ I) (B ⧸ J) q.ker.subtype q |
| 34 | q.exact_subtype_ker_map hq hfI |
| 35 | exact (IdealTensor.Presentation.presentation_tensor_quotient_injective_iff q hq J).mp hfJ |
| 36 | |
| 37 | omit [Module.Flat B F] in |
| 38 | theorem idealTensor_injective_of_flat_reduction |
| 39 | (I J : Ideal B) (hIJ : I ≤ J) |
| 40 | [Module.Flat (B ⧸ I) ((B ⧸ I) ⊗[B] M)] |
| 41 | (hI : Function.Injective (IdealTensor.Obstruction.idealTensorMultiplication B B M I)) : |
| 42 | Function.Injective (IdealTensor.Obstruction.idealTensorMultiplication B B M J) := by |
| 43 | let q : (M →₀ B) →ₗ[B] M := Finsupp.linearCombination B id |
| 44 | exact flatPresentation_idealTensor_injective_of_flat_reduction q |
| 45 | (Finsupp.linearCombination_id_surjective B M) I J hIJ hI |
| 46 | |
| 47 | omit [Module.Flat B F] in |
| 48 | theorem flat_of_idealTensor_injective_of_flat_reduction |
| 49 | [IsNoetherianRing B] [IsLocalRing B] |
| 50 | (S : Type w) [CommRing S] [Algebra B S] [IsNoetherianRing S] [IsLocalRing S] |
| 51 | [IsLocalHom (algebraMap B S)] |
| 52 | [Module S M] [IsScalarTower B S M] [Module.Finite S M] |
| 53 | (I : Ideal B) (hIproper : I ≠ ⊤) |
| 54 | [Module.Flat (B ⧸ I) ((B ⧸ I) ⊗[B] M)] |
| 55 | (hI : Function.Injective (IdealTensor.Obstruction.idealTensorMultiplication B B M I)) : |
| 56 | Module.Flat B M := by |
| 57 | apply Local.FlatnessCriterion.flat_of_maximalIdeal_tensor_injective S M |
| 58 | exact idealTensor_injective_of_flat_reduction I (IsLocalRing.maximalIdeal B) |
| 59 | (IsLocalRing.le_maximalIdeal hIproper) hI |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReducedIdealTensorCriterion |