OAI/Combinatorics/EditApproximation/Coarse/CoarseLabelWork.lean
4 declarations, 0 contain sorry, 0 declared as axioms
- theorem
OAI.EditApproximation.coarseLabelChildren_leline 16Source documentation
Only expanded internal nodes request their child thresholds. The full product seed is a specification; labels below a pruned node are never read.
private theorem coarseLabelChildren_le {B d : ℕ} {α : Type*} (Q lam allowance : ℚ) (labels arrays : CoarseSourceTree B α d → CoarseThresholdDraws B d → ℚ → ℕ) (children : List (CoarseSourceTree B α d × Fin B × CoarseThresholdDraws B d)) (hle : ∀ child draw below, (child, draw, below) ∈ children → ∀ a, labels child below a ≤ arrays child below a) : coarseLabelChildren Q lam allowance labels children ≤ coarseActiveChildrenWork Q lam allowance arrays children := by …Mentions: OAI.EditApproximation.CoarseSourceTree, OAI.EditApproximation.CoarseThresholdDraws, OAI.EditApproximation.coarseLabelChildren, OAI.EditApproximation.coarseActiveChildrenWork
- theorem
OAI.EditApproximation.coarseLabelCount_le_arrayWorkline 29 - def
OAI.EditApproximation.coarseThresholdBitWorkline 54Source documentation
Power-of-two threshold sampling consumes exactly the fixed word length per used label.
binaryWord_uniformproves the output law of every draw.def coarseThresholdBitWork {d : ℕ} {α : Type*} (r : ℕ) (Q lam : ℚ) (tree : CoarseSourceTree (2 ^ r) α d) (draws : CoarseThresholdDraws (2 ^ r) d) (allowance : ℚ) : ℕ := r * coarseLabelCount Q lam tree draws allowanceMentions: OAI.EditApproximation.CoarseSourceTree, OAI.EditApproximation.CoarseThresholdDraws, OAI.EditApproximation.coarseLabelCount
- theorem
OAI.EditApproximation.coarseThresholdBitWork_leline 58