introvoyz045's picture
Migrated from GitHub
4a56cd6 verified
Raw History Blame Contribute Delete
2.3 kB
import Mathlib.LinearAlgebra.TensorProduct.Associator
import Mathlib.LinearAlgebra.TensorProduct.Basic
import Mathlib.LinearAlgebra.BilinearMap
/-! # Contraction -/
namespace OAI.AlgebraicGeometry.HodgeConjecture.CMReduction.Contraction.CM.Construction
noncomputable section
/-!
The linear-algebra calculation used in CMReduction's composition step. The pairing
is an actual bilinear form, and the contraction is built from tensor-product
associators and evaluation. This module makes no cycle-algebraicity assumption.
-/
open scoped TensorProduct
variable {K U V W : Type*} [Field K]
[AddCommGroup U] [Module K U]
[AddCommGroup V] [Module K V]
[AddCommGroup W] [Module K W]
/-- Contract the two middle slots with the specified bilinear pairing. -/
def middleContraction (Q : V β†’β‚—[K] V β†’β‚—[K] K) :
(U βŠ—[K] V) βŠ—[K] (V βŠ—[K] W) β†’β‚—[K] U βŠ—[K] W :=
(TensorProduct.map (LinearMap.id : U β†’β‚—[K] U)
(TensorProduct.lid K W).toLinearMap).comp
((TensorProduct.map (LinearMap.id : U β†’β‚—[K] U)
(TensorProduct.map (TensorProduct.lift Q) (LinearMap.id : W β†’β‚—[K] W))).comp
((TensorProduct.map (LinearMap.id : U β†’β‚—[K] U)
(TensorProduct.assoc K V V W).symm.toLinearMap).comp
(TensorProduct.assoc K U V (V βŠ—[K] W)).toLinearMap))
/-- The contraction multiplies the endpoint tensor by the middle pairing. -/
theorem middleContraction_tmul (Q : V β†’β‚—[K] V β†’β‚—[K] K)
(u : U) (v v' : V) (w : W) :
middleContraction Q ((u βŠ—β‚œ[K] v) βŠ—β‚œ[K] (v' βŠ—β‚œ[K] w)) =
Q v v' β€’ (u βŠ—β‚œ[K] w) := by
simp [middleContraction, TensorProduct.tmul_smul]
/-- A nonzero middle pairing lets one recover the endpoint from its
contracted multiple in any linear subspace, including a cycle-class image. -/
theorem endpoint_mem_of_contraction_mem (Q : V β†’β‚—[K] V β†’β‚—[K] K)
(S : Submodule K (U βŠ—[K] W))
(u : U) (v v' : V) (w : W)
(hQ : Q v v' β‰  0)
(h : middleContraction Q ((u βŠ—β‚œ[K] v) βŠ—β‚œ[K] (v' βŠ—β‚œ[K] w)) ∈ S) :
u βŠ—β‚œ[K] w ∈ S := by
rw [middleContraction_tmul] at h
have hscaled := S.smul_mem (Q v v')⁻¹ h
simpa only [smul_smul, inv_mul_cancelβ‚€ hQ, one_smul] using hscaled
end
end OAI.AlgebraicGeometry.HodgeConjecture.CMReduction.Contraction.CM.Construction