TraversalLanesRefinement.by_rounds: def of stelliferous@0.0.2.0 Import: import stelliferous@0.0.2.0/proofs/traversal_lanes_refinement.bend as TraversalLanesRefinement Lines 216-229 of stelliferous@0.0.2.0/proofs/traversal_lanes_refinement.bend: https://jend.leeeet.dev/read.txt?path=stelliferous@0.0.2.0/proofs/traversal_lanes_refinement.bend&start_line=216&end_line=229 import Base def by_rounds(~Property: Nat -> Type, ~few: @+count: Nat -> {Nat.is_lt(count,8n) == True{} : Bool} -> Property(count), ~more: @+rest: Nat -> Property(rest) -> Property(8n+rest),count: Nat) -> Property(count): match count: case 0n: few(0n,{==}) case 1n: few(1n,{==}) case 2n: few(2n,{==}) case 3n: few(3n,{==}) case 4n: few(4n,{==}) case 5n: few(5n,{==}) case 6n: few(6n,{==}) case 7n: few(7n,{==}) case 1n+1n+1n+1n+1n+1n+1n+1n+ +rest: more(rest,by_rounds(~Property,~few,~more,rest)) Uses (3): https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Bool https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat https://jend.leeeet.dev/definition.txt?path=Base/base.bend&name=Nat.is_lt