File size: 2,474 Bytes
4a56cd6 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 | import OAI.LinearAlgebra.MatrixMultiplication.Separation.ComplexAuxiliarySeparation
import OAI.LinearAlgebra.MatrixMultiplication.Separation.ComplexStageHierarchyResources
namespace OAI
/-! Finite type counts, hierarchy separation and tensor execution bounds. -/
noncomputable section
namespace MatrixMultiplication
open MatrixMultiplication.Foundation Filter
open scoped Topology BigOperators
namespace AuxiliarySeparation
variable {X Y Z Label : Type*} [Fintype Label] [DecidableEq Label]
theorem directSum_rankAtMost (T : Tensor β X Y Z)
(readX : X β Label) (readY : Y β Label) {R : β}
(hT : Tensor.RankAtMost T R)
(readable : β x y z, T x y z β 0 β readX x = readY y) :
Tensor.RankAtMost (Tensor.dependentDirectSum (fun label =>
Tensor.product (labelFiberTensor readX readY T label)
(Tensor.dotPairing (Fin (Fintype.card Label)))))
(R * Separation.gridGroupOrder (Fintype.card Label)) :=
auxiliary_separation_directSum_rankAtMost T readX readY hT readable
theorem directSum_borderRankAtMost [Fintype X] [Fintype Y] [Fintype Z]
(T : Tensor β X Y Z) (readX : X β Label) (readY : Y β Label) {R : β}
(hT : Tensor.BorderRankAtMost T R)
(readable : β x y z, T x y z β 0 β readX x = readY y) :
Tensor.BorderRankAtMost (Tensor.dependentDirectSum (fun label =>
Tensor.product (labelFiberTensor readX readY T label)
(Tensor.dotPairing (Fin (Fintype.card Label)))))
(R * Separation.gridGroupOrder (Fintype.card Label)) :=
auxiliary_separation_directSum_borderRankAtMost T readX readY hT readable
theorem logarithmic_cost :
Tendsto (fun K : β => Real.log (Separation.gridGroupOrder K : β) /
Real.log (K : β)) atTop (π 1) :=
auxiliary_separation_logarithmic_cost
theorem cost_minus_population_tendsto_zero {population : β β β} {rate : β}
(positive : β n, 0 < population n) (rate_nonneg : 0 β€ rate)
(population_rate : Tendsto
(fun n => Real.log (population n : β) / (n : β)) atTop (π rate)) :
Tendsto (fun n =>
(Real.log (LabelHierarchySeparation.poolAuxiliaryCost (population n) : β) -
Real.log (population n : β)) / (n : β)) atTop (π 0) := by
have h := (LabelHierarchySeparation.tendsto_log_poolAuxiliaryCost_div_nat
positive rate_nonneg population_rate).sub population_rate
simpa only [sub_self, sub_div] using h
end AuxiliarySeparation
end MatrixMultiplication
end
end OAI
|