Download data/lean/OAI/Combinatorics/EditApproximation/Refinement/ComputedKernelWork.lean from introvoyz045/math: direct link, hf CLI and curl.
- Browser
- Download file 1.88 kB
-
https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/EditApproximation/Refinement/ComputedKernelWork.lean
- Command line
-
hf download hf://datasets/introvoyz045/math/data/lean/OAI/Combinatorics/EditApproximation/Refinement/ComputedKernelWork.lean
-
curl -L -o ComputedKernelWork.lean https://huggingface.co/datasets/introvoyz045/math/resolve/main/data/lean/OAI/Combinatorics/EditApproximation/Refinement/ComputedKernelWork.lean
1.88 kB
| import OAI.Combinatorics.EditApproximation.Geometry.RankedMemoKernelWork | |
| import OAI.Combinatorics.EditApproximation.Refinement.ComputedLocalKernelWork | |
| import OAI.Combinatorics.EditApproximation.Definitions | |
| namespace OAI | |
| namespace EditApproximation | |
| open Filter | |
| /-- Local arithmetic annotations follow the actual memo run, hence are | |
| incurred once per cache miss, with the original program and draw values. -/ | |
| theorem computedFamilyKernelWork_le (source target : List β) (N : β) | |
| (input : ComputedFamilyInput source target N) | |
| (cost : ComputedFamilyMemoKey source target N β β) (C : β) | |
| (hcost : β key, cost key β€ C) : | |
| computedFamilyKernelWork source target N input cost β€ | |
| C * (computedFamilyResult source target N input).requests := | |
| rankedMemoKernelWork_le _ _ _ _ cost C hcost _ _ | |
| theorem computedFamilyKernelWork_near_linear (D : β) (epsilon : β) (hepsilon : 0 < epsilon) : | |
| βαΆ N in atTop, β source target : List β, source.length + target.length β€ N β | |
| β (input : ComputedFamilyInput source target N) | |
| (cost : ComputedFamilyMemoKey source target N β β), | |
| (β key, cost key β€ computedLocalKernelBudget D N) β | |
| (computedFamilyKernelWork source target N input cost : β) β€ | |
| (N + 2 : β) ^ (1 + epsilon) := by | |
| filter_upwards [computedLocalKernelBudget_requests_near_linear D epsilon hepsilon] with N hN | |
| intro source target hsize input cost hcost | |
| have h := computedFamilyKernelWork_le source target N input cost | |
| (computedLocalKernelBudget D N) hcost | |
| have hr : (computedFamilyKernelWork source target N input cost : β) β€ | |
| (computedLocalKernelBudget D N : β) * (computedFamilyResult source target N input).requests := by | |
| exact_mod_cast h | |
| exact hr.trans (by simpa only [mul_comm] using hN source target hsize input) | |
| end EditApproximation | |
| end OAI | |