bits.lisp 392 B

123456789
  1. (def! bit-dec
  2. (fn* [x] (
  3. (def! bits (unpack-bits x 256))
  4. (def! enforce-step-1 (fn* [b] (enforce (add-one-lc0 (sub-lc0 b) (add-lc1 b))))
  5. (map enforce-step-1 bits)
  6. (map (fn* [b] ((add-lc0 b) double-coeff-lc) bits)
  7. (enforce reset-coeff-lc sub-lc0 add-one-lc1)
  8. )))))