cfahlgren1's picture
download
raw
1.97 kB
import OAI.LinearAlgebra.MatrixMultiplication.AuxiliarySeparation.Tensor.CharacterBounds
import OAI.LinearAlgebra.MatrixMultiplication.AuxiliarySeparation.Tensor.DirectSum
namespace OAI
/-!
# Character additivity for binary tensor sums
The summands may have different finite coordinate types. A binary sum is a
coordinate reindexing of the dependent direct sum over `Bool`.
-/
noncomputable section
open MatrixMultiplication.Foundation
open scoped BigOperators
namespace MatrixMultiplication.AuxiliarySeparation.Character
/-- A character is additive on binary direct sums with arbitrary finite
coordinate types. -/
theorem value_sumTensor (χ : Character)
{X Y Z U V W : Type}
[Fintype X] [Fintype Y] [Fintype Z]
[Fintype U] [Fintype V] [Fintype W]
(T : Tensor ℂ X Y Z) (S : Tensor ℂ U V W) :
χ.value (sumTensor T S) = χ.value T + χ.value S := by
classical
let family : (b : Bool) →
Tensor ℂ (bif b then U else X) (bif b then V else Y) (bif b then W else Z)
| false => T
| true => S
let : ∀ b : Bool, Fintype (bif b then U else X) :=
fun | false => inferInstanceAs (Fintype X) | true => inferInstanceAs (Fintype U)
let : ∀ b : Bool, Fintype (bif b then V else Y) :=
fun | false => inferInstanceAs (Fintype Y) | true => inferInstanceAs (Fintype V)
let : ∀ b : Bool, Fintype (bif b then W else Z) :=
fun | false => inferInstanceAs (Fintype Z) | true => inferInstanceAs (Fintype W)
have heq : Tensor.pullback (Equiv.sumEquivSigmaBool X U)
(Equiv.sumEquivSigmaBool Y V) (Equiv.sumEquivSigmaBool Z W)
(Tensor.dependentDirectSum family) = sumTensor T S := by
funext x y z
cases x <;> cases y <;> cases z <;>
simp [Tensor.pullback, Tensor.dependentDirectSum, Equiv.sumEquivSigmaBool,
family, sumTensor]
rw [← heq, χ.value_reindex, χ.value_dependentDirectSum]
simp [family, add_comm]
end MatrixMultiplication.AuxiliarySeparation.Character
end
end OAI

Xet Storage Details

Size:
1.97 kB
·
Xet hash:
7502c8cc8b257a53e6ebf267b5725845f0fd2b034aec845a25af543f780cc316

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.