package hardcaml_verify
Hardcaml Verification Tools
Install
Dune Dependency
Authors
Maintainers
Sources
hardcaml_verify-v0.15.0.tar.gz
sha256=a469d63c76bd86fbd04aa38d391dc736d4bc291ad5ffe0090b31cc4ae3ba6622
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)"
>