OAI/Combinatorics/ContingencyTables/Sampling/GreedyRowMachine.lean
8 declarations, 0 contain sorry, 0 declared as axioms
A binary list program for one row of the greedy initializer
- abbrev
OAI.ContingencyTables.GreedyFeasibleTable.RowAccumulatorline 11 - def
OAI.ContingencyTables.GreedyFeasibleTable.rowCellline 15Source documentation
A row pass keeps its residual margin and builds both output lists in reverse order, using only binary minimum, subtraction and list cons.
def rowCell (z : ℕ × RowAccumulator) : RowAccumulator := …
Mentions: OAI.ContingencyTables.GreedyFeasibleTable.RowAccumulator
- def
OAI.ContingencyTables.GreedyFeasibleTable.rowCellRealizerline 19 - def
OAI.ContingencyTables.GreedyFeasibleTable.listSplitRowline 32Source documentation
The list version of the already proved dimension-recursive row split.
def listSplitRow : ℕ → List ℕ → RowAccumulator | a,[] => (a,([],[])) | a,c::cs => let q := min a c …Mentions: OAI.ContingencyTables.GreedyFeasibleTable.RowAccumulator
- lemma
OAI.ContingencyTables.GreedyFeasibleTable.fold_rowCellline 39 - def
OAI.ContingencyTables.GreedyFeasibleTable.rowSplitRealizerline 52 - lemma
OAI.ContingencyTables.GreedyFeasibleTable.listSplitRow_balanceline 65 - lemma
OAI.ContingencyTables.GreedyFeasibleTable.listSplitRow_lengthsline 75