def bends
import bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel.bend as Natfuelimport Base
129def bends(f: Nat, +n: Nat) -> Bool:
130 match f n:
131 case 0n 0n:
132 True{}
133 case 0n 1n+np:
134 False{}
135 case 1n+g 0n:
136 True{}
137 case 1n+g 1n+ +np:
138 bends(g, Nat.div(1n+np, 2n))
Uses (3)
Used by (5)
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel:bends_self
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel:bends_bound
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel:bends_zero
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel:bl_fuel
- bend-collections-laws-math@1.0.0.0/proofs/math/typed/natfuel:pm_fuel