OAI/Combinatorics/EditApproximation/Coarse/CoarseInitialAllocation.lean
12 declarations, 0 contain sorry, 0 declared as axioms
- theorem
OAI.EditApproximation.arithmeticMapAllocation_with_indices_le_workline 10Source documentation
Besides each result cell, reserve one index-list cell for each callback.
theorem arithmeticMapAllocation_with_indices_le_work {α β : Type*} (f : α → β × ℕ) (allocation : α → ℕ) (values : List α) (h : ∀ a ∈ values, allocation a ≤ 2 * (f a).2) : arithmeticMapAllocation allocation values + values.length ≤ 2 * (arithmeticMapWithWork f values).2 := by …Mentions: OAI.EditApproximation.arithmeticMapAllocation, OAI.EditApproximation.arithmeticMapWithWork
- def
OAI.EditApproximation.BinaryFraction.coarseIndexedRootAllocationline 25 - theorem
OAI.EditApproximation.BinaryFraction.coarseIndexedRootAllocation_le_workline 36 - def
OAI.EditApproximation.BinaryFraction.coarseIndexedCandidateAllocationline 63 - theorem
OAI.EditApproximation.BinaryFraction.coarseIndexedCandidateAllocation_le_workline 72 - def
OAI.EditApproximation.BinaryFraction.coarseMinimumListAllocationline 90 - theorem
OAI.EditApproximation.BinaryFraction.coarseMinimumListAllocation_le_workline 94 - def
OAI.EditApproximation.BinaryFraction.coarseMinimumAllocationline 103 - theorem
OAI.EditApproximation.BinaryFraction.coarseMinimumAllocation_le_workline 107 - def
OAI.EditApproximation.BinaryFraction.coarseIndexedInitialAllocationline 116Source documentation
Fresh arithmetic cells and root/index list spines. Constant words and preexisting input/cached words are shared. The retained input and output words are counted separately by the global storage capacity.
def coarseIndexedInitialAllocation {B d : ℕ} (q L N : ℕ) (hB : 0 < B) (hq : 0 < q) (hL : 0 < L) (x y : List ℕ) (draws : CoarseGuessIndex (coarseEntryWidth x y) → CoarseThresholdDraws B d) : ℕ := …Mentions: OAI.EditApproximation.CoarseGuessIndex, OAI.EditApproximation.coarseEntryWidth, OAI.EditApproximation.CoarseThresholdDraws
- theorem
OAI.EditApproximation.BinaryFraction.coarseIndexedInitialAllocation_le_workline 129 - theorem
OAI.EditApproximation.BinaryFraction.computedCoarseIndexedInitialAllocation_polynomialline 162Source documentation
Every draw has polynomial scratch, including outcomes outside the success event.
theorem computedCoarseIndexedInitialAllocation_polynomial : ∀ᶠ N : ℕ in atTop, ∀ B d : ℕ, ∀ x y : List ℕ, B = (integerParameters N).B → d = computedCoarseDepth N (coarseEntryWidth x y) → coarseEntryWidth x y ≤ N → (∀ a ∈ x ++ y, Nat.size a ≤ inputHeight N ^ 3) → ∀ (hB : 0 < B) (hq : 0 < inputHeight N ^ 4) (hL : 0 < 64 * inputHeight N) (draws : CoarseGuessIndex (coarseEntryWidth x y) → CoarseThresholdDraws B d), coarseIndexedInitialAllocation (inputHeight N ^ 4) (64 * inputHeight N) N hB hq hL x y draws ≤ (N + 2) ^ 181 := by …Mentions: OAI.EditApproximation.integerParameters, OAI.EditApproximation.computedCoarseDepth, OAI.EditApproximation.coarseEntryWidth, OAI.EditApproximation.inputHeight, OAI.EditApproximation.CoarseGuessIndex, OAI.EditApproximation.CoarseThresholdDraws, OAI.EditApproximation.BinaryFraction.coarseIndexedInitialAllocation