Buckets:
cfahlgren1/math / lean /OAI /Combinatorics /EditApproximation /Probability /FiniteQueryCostOrder.lean
| import OAI.Combinatorics.EditApproximation.Geometry.GlobalQueryCost | |
| namespace OAI | |
| namespace EditApproximation.FiniteQuery | |
| theorem cost_mono_weights {ι : Type*} (oracle : ι → ℚ) (program : FiniteQuery ι) | |
| (left right : ι → ℕ) (hle : ∀ key, left key ≤ right key) : | |
| program.cost oracle left ≤ program.cost oracle right := by | |
| induction program with | |
| | done result => exact le_rfl | |
| | read key next ih => exact Nat.add_le_add (hle key) (ih (oracle key)) | |
| theorem cost_zero {ι : Type*} (oracle : ι → ℚ) (program : FiniteQuery ι) : | |
| program.cost oracle (fun _ => 0) = 0 := by | |
| induction program with | |
| | done result => rfl | |
| | read key next ih => simpa only [cost, Nat.zero_add] using ih (oracle key) | |
| theorem cost_eq_zero_of_keys {ι : Type*} (oracle : ι → ℚ) (program : FiniteQuery ι) | |
| (weight : ι → ℕ) (hzero : ∀ key ∈ program.keys oracle, weight key = 0) : | |
| program.cost oracle weight = 0 := | |
| (cost_congr_weights oracle program weight (fun _ => 0) hzero).trans (cost_zero oracle program) | |
| end EditApproximation.FiniteQuery | |
| end OAI | |
Xet Storage Details
- Size:
- 1.09 kB
- Xet hash:
- 40fc638f5710c190f9b5b6ccd1cbd9c65fa9a43fbdb2267797c75e38d24ef978
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.