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.ArithmeticGeometry.OrdinaryLocus.Openness.ScalarRingTensorEquiv |
| 2 | |
| 3 | /-! # Scalar Ring Cycle Equiv -/ |
| 4 | |
| 5 | namespace OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ScalarRingCycleEquiv.Construction |
| 6 | |
| 7 | noncomputable section |
| 8 | |
| 9 | /-! The cycle-lifting condition is invariant under compatible isomorphisms of coefficient rings. -/ |
| 10 | |
| 11 | open _root_.CategoryTheory |
| 12 | open scoped ChangeOfRings |
| 13 | |
| 14 | universe u |
| 15 | |
| 16 | variable {R A B : Type u} [CommRing R] [CommRing A] [CommRing B] |
| 17 | variable (r : R →+* A) (s : R →+* B) (e : A ≃+* B) (h : ∀ x, e (r x) = s x) |
| 18 | variable (C : CochainComplex (ModuleCat.{u} R) ℕ) |
| 19 | |
| 20 | def scalarRingCochainFirstCyclesEquiv : |
| 21 | ((CochainBaseChangeCycles.Construction.cochainExtendScalars r C).d 0 1).hom.ker ≃+ |
| 22 | ((CochainBaseChangeCycles.Construction.cochainExtendScalars s C).d 0 1).hom.ker := by |
| 23 | let e₀ := ScalarRingTensorEquiv.Construction.scalarRingTensorAddEquiv r s e h (C.X 0) |
| 24 | let e₁ := ScalarRingTensorEquiv.Construction.scalarRingTensorAddEquiv r s e h (C.X 1) |
| 25 | refine |
| 26 | { toFun := fun x ↦ ⟨e₀ x.val, ?_⟩ |
| 27 | invFun := fun y ↦ ⟨e₀.symm y.val, ?_⟩ |
| 28 | left_inv := fun x ↦ Subtype.ext (e₀.symm_apply_apply x.val) |
| 29 | right_inv := fun y ↦ Subtype.ext (e₀.apply_symm_apply y.val) |
| 30 | map_add' := fun x y ↦ Subtype.ext (map_add e₀ x.val y.val) } |
| 31 | · exact (ScalarRingTensorEquiv.Construction.scalarRingTensorAddEquiv_naturality r s e h (C.d 0 1) x.val).symm.trans |
| 32 | ((congrArg e₁ x.property).trans (map_zero e₁)) |
| 33 | · apply e₁.injective |
| 34 | have hn := ScalarRingTensorEquiv.Construction.scalarRingTensorAddEquiv_naturality r s e h (C.d 0 1) (e₀.symm y.val) |
| 35 | exact (hn.trans (congrArg (fun z ↦ (CochainBaseChangeCycles.Construction.cochainExtendScalars s C).d 0 1 z) |
| 36 | (e₀.apply_symm_apply y.val))).trans (y.property.trans (map_zero e₁).symm) |
| 37 | |
| 38 | theorem scalarRingCochainFirstCyclesEquiv_unit (x : (C.d 0 1).hom.ker) : |
| 39 | scalarRingCochainFirstCyclesEquiv r s e h C (CochainBaseChangeCycles.Construction.cochainBaseChangeFirstCycle r C x) = |
| 40 | CochainBaseChangeCycles.Construction.cochainBaseChangeFirstCycle s C x := by |
| 41 | apply Subtype.ext |
| 42 | change ScalarRingTensorEquiv.Construction.scalarRingTensorAddEquiv r s e h (C.X 0) ((1 : A) ⊗ₜ[R,r] x.val) = |
| 43 | (1 : B) ⊗ₜ[R,s] x.val |
| 44 | rw [ScalarRingTensorEquiv.Construction.scalarRingTensorAddEquiv_tmul, e.map_one] |
| 45 | |
| 46 | include e h in |
| 47 | theorem cochain_cycles_lift_iff_of_scalarRingIso : |
| 48 | Function.Surjective (CochainBaseChangeCycles.Construction.cochainBaseChangeFirstCycle r C) ↔ |
| 49 | Function.Surjective (CochainBaseChangeCycles.Construction.cochainBaseChangeFirstCycle s C) := by |
| 50 | let E := scalarRingCochainFirstCyclesEquiv r s e h C |
| 51 | constructor |
| 52 | · intro hr z |
| 53 | obtain ⟨x, hx⟩ := hr (E.symm z) |
| 54 | refine ⟨x, ?_⟩ |
| 55 | exact (scalarRingCochainFirstCyclesEquiv_unit r s e h C x).symm.trans |
| 56 | ((congrArg E hx).trans (E.apply_symm_apply z)) |
| 57 | · intro hs z |
| 58 | obtain ⟨x, hx⟩ := hs (E z) |
| 59 | exact ⟨x, E.injective ((scalarRingCochainFirstCyclesEquiv_unit r s e h C x).trans hx)⟩ |
| 60 | |
| 61 | end |
| 62 | |
| 63 | end OAI.ArithmeticGeometry.OrdinaryLocus.Openness.ScalarRingCycleEquiv.Construction |