package hardcaml_verify
Hardcaml Verification Tools
Install
Dune Dependency
Authors
Maintainers
Sources
hardcaml_verify-v0.16.0.tar.gz
sha256=b475dc8e540d9855b438309de3cf1984b28d29e7cd8a4d2b76d58a68894a8749
doc/hardcaml_verify.kernel/Hardcaml_verify_kernel/Is_one_hot/index.html
Module Hardcaml_verify_kernel.Is_one_hot
Source
Computes information about the one-hotness of a vector. In addition it can compute if no bits are set or more than 1 bit is set.
In actual hardware using popcount
might be better as it can be formulated as a tree with log depth. This implementation has depth O(width vector) but is small and simple.
It's primary purpose is as an efficient check for proving SAT properties.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>