This PR changes the AIG representation of constants from `const (b : Bool)` to a single constructor `false`. Since #7381 `Ref` contains an `invert` flag meaning the constant `true` can be represented as a `Ref` to `false` with `invert` set, so no expressivity is lost. The main advantage to this representation is that it allows pattern matching on constants to match just on the `invert` field rather than on both `invert` and the constant value or having to XOR the two together. This representation is also standard in other AIG frameworks, such as the [Aiger standard](https://fmv.jku.at/aiger/FORMAT.aiger). This PR also generalizes the idempotency rule in `mkGateCached` from `(a /\ b) = a` when `(a = b)` to also cover `(¬a /\ ¬b) = ¬a` when `a = b` as it was not covered. |
||
|---|---|---|
| .. | ||
| bench | ||
| compiler | ||
| elabissues | ||
| ir | ||
| lean | ||
| pkg | ||
| playground | ||
| plugin | ||
| simpperf | ||
| .gitignore | ||
| common.sh | ||
| lean-toolchain | ||