cfahlgren1's picture
download
raw
1.46 kB
import OAI.Combinatorics.EditApproximation.Queries.QueryDataBuffers
import OAI.Combinatorics.EditApproximation.Definitions
namespace OAI
/-! Finite reader budgets for the executable adaptive program. These
uniform bounds follow from stored-key widths, regardless of answer values. -/
namespace EditApproximation.BinaryFraction
theorem queryChildReadWithWork_budget {M n : ℕ} (keys : List (Fin M × TargetInterval n))
(words : List BinaryFraction) (i : Fin M) (r : TargetInterval n) :
(queryChildReadWithWork keys words i r).2 ≤ queryDataReadBudget M n keys := by
exact queryChildReadWithWork_cost keys words i r _ (Nat.le_max_left _ _) (Nat.le_max_right _ _)
@[simp] theorem queryParentReadWithWork_value {n : ℕ} (keys : List (TargetInterval n))
(words : List BinaryFraction) (r : TargetInterval n) :
(queryParentReadWithWork keys words r).1.value = finiteAnswerTable keys (words.map value) r :=
gatheredWordLookupWithWork_value _ queryIntervalEqualWithWork_value keys words r
theorem queryParentReadWithWork_cost {n : ℕ} (keys : List (TargetInterval n))
(words : List BinaryFraction) (r : TargetInterval n) :
(queryParentReadWithWork keys words r).2 ≤ 1 + keys.length * (16 * Nat.size n + 6) := by
exact gatheredWordLookupWithWork_cost queryIntervalEqualWithWork (16 * Nat.size n + 5)
(fun a b => queryIntervalEqualWithWork_cost a b _ le_rfl) keys words r
end EditApproximation.BinaryFraction
end OAI

Xet Storage Details

Size:
1.46 kB
·
Xet hash:
2352a4d6e2a02f779e2eac30986afa6be1e4c51f2393fc11642ef0c6bf4597a5

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