law double_div_two_add_mod_two_sym
import bend-mathlib@0.8.1.0/nat.bend as Natimport Base
4837# Twice the half plus the parity is the number: double (n / 2) + n % 2 = n, reversed to rewrite toward the simple side.
4838law double_div_two_add_mod_two_sym:
4839 for n: Nat
4840 {n == Nat.add(Nat.double(Nat.div(n, 2n)), Nat.mod(n, 2n)) : Nat}
Uses (7)
Used by (0)
No other definition uses this definition.