MlbendSelect.select_covers: law of mlbend-select@0.1.0.0 Import: import mlbend-select@0.1.0.0/main.bend as MlbendSelect Lines 25-33 of mlbend-select@0.1.0.0/main.bend: https://jend.leeeet.dev/read.txt?path=mlbend-select@0.1.0.0/main.bend&start_line=25&end_line=33 import Base import mlbend-split@0.1.1.0/main.bend as Split # LAW (select_covers): every row of the dataset is in exactly one fold — # the fold list holds one entry per row, so the folds cover the dataset # exactly once each. law select_covers: for labels: List<&2, Nat> for +orders: List<&2, List<&2, Nat>> for +k: Nat for +i: Nat {Split.count_rows(Split.folds_from(labels, orders, k, i)) == List.length(&2, Nat, labels) : Nat} Uses (6): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=List.length https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.add https://jend.leeeet.dev/definition.txt?path=mlbend-split@0.1.1.0/main.bend&name=count_rows https://jend.leeeet.dev/definition.txt?path=mlbend-split@0.1.1.0/main.bend&name=folds_from