OAI/Combinatorics/EditApproximation/Coarse/CoarseReadTree.lean
8 declarations, 0 contain sorry, 0 declared as axioms
- def
OAI.EditApproximation.coarseReadTreeline 9Source documentation
A source descriptor is expanded by index arithmetic. No sliced or padded list is allocated. The function is the original stored input's read operation.
def coarseReadTree (B : ℕ) {α : Type*} : (d : ℕ) → (ℕ → Option α) → CoarseSourceTree B α d | 0, read => .leaf (read 0) | d + 1, read => .branch (fun i => coarseReadTree B d (fun j => read (i.val * B ^ d + j)))Mentions: OAI.EditApproximation.CoarseSourceTree
- theorem
OAI.EditApproximation.coarseReadTree_extline 15 - theorem
OAI.EditApproximation.coarseReadTree_listline 31 - theorem
OAI.EditApproximation.coarseReadTree_shiftline 43 - theorem
OAI.EditApproximation.coarseReadTree_shift_lengthline 51 - def
OAI.EditApproximation.coarseDescriptorLengthline 57Source documentation
Cached length of a descriptor into a virtually padded source.
def coarseDescriptorLength (B d n start : ℕ) : ℕ := min (B ^ d) (n - start)
- theorem
OAI.EditApproximation.coarseReadTree_padded_lengthline 59 - theorem
OAI.EditApproximation.coarseReadTree_entryline 70