Download data/lean/OAI/LinearAlgebra/MatrixMultiplication/Duality/ExponentConsumer.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 3.53 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/MatrixMultiplication/Duality/ExponentConsumer.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/LinearAlgebra/MatrixMultiplication/Duality/ExponentConsumer.lean
-
curl -L -o ExponentConsumer.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/LinearAlgebra/MatrixMultiplication/Duality/ExponentConsumer.lean
3.53 kB
| import OAI.LinearAlgebra.MatrixMultiplication.Arithmetic.Exponent | |
| import OAI.LinearAlgebra.MatrixMultiplication.Numerical.ComplexCertificatesDual | |
| import OAI.LinearAlgebra.MatrixMultiplication.Tensor.ComplexWitness | |
| import OAI.LinearAlgebra.MatrixMultiplication.Rectangular.ASI | |
| import OAI.LinearAlgebra.MatrixMultiplication.Rectangular.RateLimit | |
| namespace OAI | |
| /-! Dual matrix multiplication exponents and finite rectangular constructions. -/ | |
| noncomputable section | |
| namespace MatrixMultiplication.DualExponentBound | |
| open Filter | |
| open scoped Topology | |
| def fixedAspect : β := 4651 / 10000 | |
| theorem target_lt_fixedAspect : (93 : β) / 200 < fixedAspect := by | |
| norm_num [fixedAspect] | |
| theorem fixedAspect_lt_certificate : fixedAspect < (1548637 : β) / 3327360 := by | |
| norm_num [fixedAspect] | |
| theorem fixedAspect_lt_dual_aspect : fixedAspect < DualWitness.aspect := | |
| fixedAspect_lt_certificate.trans ComplexCertificates.dual_aspect_lower | |
| theorem fixedAspect_mem_unit : fixedAspect β Set.Icc (0 : β) 1 := by | |
| norm_num [fixedAspect] | |
| structure ActualFamily (k budget : β) where | |
| witness : β β ComplexWitness.FiniteRectangularWitness | |
| scale : β β β | |
| outerRate : β | |
| innerRate : β | |
| multiplicityRate : β | |
| rankRate : β | |
| scale_positive : βαΆ n in atTop, 0 < scale n | |
| outer_positive : 0 < outerRate | |
| outer_limit : Tendsto | |
| (fun n => Real.log ((witness n).outer : β) / scale n) atTop (π outerRate) | |
| inner_limit : Tendsto | |
| (fun n => Real.log ((witness n).inner : β) / scale n) atTop (π innerRate) | |
| multiplicity_limit : Tendsto | |
| (fun n => Real.log ((witness n).multiplicity : β) / scale n) atTop (π multiplicityRate) | |
| rank_limit : Tendsto | |
| (fun n => Real.log ((witness n).rank : β) / scale n) atTop (π rankRate) | |
| aspect_gap : k * outerRate < innerRate | |
| cost_bound : rankRate - multiplicityRate β€ budget * outerRate | |
| namespace ActualFamily | |
| theorem omega_le {k budget : β} (P : ActualFamily k budget) (hk : 0 β€ k) : | |
| Arithmetic.rectangularOmega β k β€ budget := by | |
| have hbound := RectangularRateLimit.exponent_le_of_finite_asi | |
| (fun n => (P.witness n).outer_pos) (fun n => (P.witness n).inner_pos) | |
| P.scale_positive P.outer_limit P.inner_limit P.multiplicity_limit P.rank_limit | |
| P.outer_positive P.aspect_gap | |
| (fun n ha hab => Arithmetic.equalRectangular_log_inequality_of_polynomialApproximation | |
| ha (P.witness n).multiplicity_pos hk hab (P.witness n).approximation) | |
| exact hbound.trans ((div_le_iffβ P.outer_positive).2 P.cost_bound) | |
| end ActualFamily | |
| theorem omega_eq_two_of_arbitrarily_close_families {k : β} (hk : 0 β€ k) | |
| (families : β Ξ΅ : β, 0 < Ξ΅ β Nonempty (ActualFamily k (2 + Ξ΅))) : | |
| Arithmetic.rectangularOmega β k = 2 := by | |
| apply le_antisymm _ (Arithmetic.rectangularOmega_two_le k) | |
| by_contra h | |
| have hΟ : 2 < Arithmetic.rectangularOmega β k := lt_of_not_ge h | |
| have hΞ΅ : 0 < (Arithmetic.rectangularOmega β k - 2) / 2 := by linarith | |
| obtain β¨Pβ© := families ((Arithmetic.rectangularOmega β k - 2) / 2) hΞ΅ | |
| have hbound := P.omega_le hk | |
| linarith | |
| theorem alpha_gt_target_of_arbitrarily_close_families | |
| (families : β Ξ΅ : β, 0 < Ξ΅ β Nonempty (ActualFamily fixedAspect (2 + Ξ΅))) : | |
| (93 : β) / 200 < Arithmetic.complexAlpha := by | |
| have hΟ := omega_eq_two_of_arbitrarily_close_families fixedAspect_mem_unit.1 families | |
| exact target_lt_fixedAspect.trans_le (Arithmetic.le_complexAlpha fixedAspect_mem_unit hΟ) | |
| end MatrixMultiplication.DualExponentBound | |
| end | |
| end OAI | |