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.FiniteAlgebraFamilyFree |
| 2 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReducedPrincipalDomain |
| 3 | import OAI.AlgebraicGeometry.HilbertScheme.Presentations.IteratedPrincipalFreeRefinement |
| 4 | |
| 5 | /-! # Reduced Algebra Family Free -/ |
| 6 | |
| 7 | namespace OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReducedAlgebraFamilyFree |
| 8 | |
| 9 | noncomputable section |
| 10 | |
| 11 | /-! A finite family of finite-type algebras over a nonzero reduced |
| 12 | Noetherian ring becomes free on a common nonempty principal open. -/ |
| 13 | |
| 14 | open TensorProduct |
| 15 | |
| 16 | universe u v w |
| 17 | variable (R : Type u) [CommRing R] [IsReduced R] [IsNoetherianRing R] [Nontrivial R] |
| 18 | variable {ι : Type v} [Finite ι] (S : ι → Type w) |
| 19 | variable [∀ i, CommRing (S i)] [∀ i, Algebra R (S i)] [∀ i, Algebra.FiniteType R (S i)] |
| 20 | |
| 21 | theorem exists_generic_free_reduced_algebra_family : |
| 22 | ∃ s : R, ¬ IsNilpotent s ∧ ∀ i, Module.Free (Localization.Away s) |
| 23 | (Localization.Away s ⊗[R] S i) := by |
| 24 | obtain ⟨a, _, hA⟩ := ReducedPrincipalDomain.exists_reduced_principal_domain (R := R) |
| 25 | let A := Localization.Away a |
| 26 | let : IsDomain A := hA |
| 27 | obtain ⟨t, ht, hfree⟩ := FiniteAlgebraFamilyFree.exists_generic_free_finite_algebra_family A (fun i => A ⊗[R] S i) |
| 28 | obtain ⟨r, har, φ, hφ, hu⟩ := IteratedPrincipalFreeRefinement.principal_domain_element_refinement a t ht |
| 29 | let C := Localization.Away (a * r) |
| 30 | let D := Localization.Away t |
| 31 | let : Algebra A C := φ.toAlgebra |
| 32 | let : IsScalarTower R A C := IsScalarTower.of_algebraMap_eq (fun x => (hφ x).symm) |
| 33 | let ψ : D →+* C := IsLocalization.Away.lift t hu |
| 34 | have hψ (x : A) : ψ (algebraMap A D x) = φ x := IsLocalization.Away.lift_eq t hu x |
| 35 | let : Algebra D C := ψ.toAlgebra |
| 36 | let : IsScalarTower R D C := IsScalarTower.of_algebraMap_eq (fun x => by |
| 37 | change algebraMap R C x = ψ (algebraMap R D x) |
| 38 | rw [IsScalarTower.algebraMap_apply R A D, hψ, hφ]) |
| 39 | refine ⟨a * r, har, ?_⟩ |
| 40 | intro i |
| 41 | let : Module.Free D (D ⊗[A] (A ⊗[R] S i)) := hfree i |
| 42 | let : Module.Free D (D ⊗[R] S i) := Module.Free.of_equiv |
| 43 | (AlgebraTensorModule.cancelBaseChange R A D D (S i)) |
| 44 | exact Principal.LocalizationFreeRefinement.free_baseChange_along_tower (S i) D C |
| 45 | |
| 46 | end |
| 47 | |
| 48 | end OAI.AlgebraicGeometry.HilbertScheme.Presentations.ReducedAlgebraFamilyFree |