Change the literal type in a Clause from α to β by using r.
Equations
- Std.Sat.CNF.Clause.relabel r c = { atoms := Array.map r c.atoms, polarities := c.polarities, size_polarities := ⋯, isBool_polarities := ⋯ }
Instances For
Relabelling #
It is convenient to be able to construct a CNF using a more complicated literal type,
but eventually we need to embed in Nat.
Change the literal type in a CNF formula from α to β by using r.
Equations
- Std.Sat.CNF.relabel r f = { clauses := Array.map (Std.Sat.CNF.Clause.relabel r) f.clauses }