Skip to content

Minor fixes to CakePB - #1477

Merged
tanyongkiam merged 7 commits into
masterfrom
pb-imp-fix
Sep 2, 2026
Merged

Minor fixes to CakePB#1477
tanyongkiam merged 7 commits into
masterfrom
pb-imp-fix

Conversation

@tanyongkiam

Copy link
Copy Markdown
Contributor

No description provided.

tanyongkiam and others added 3 commits August 26, 2026 00:18
A redundancy subgoal with no explicit subproof is discharged by a syntactic
implication check. That check is directional, so orient it the way VeriPB
does: a proof VeriPB accepts without a subproof is accepted here too.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tanyongkiam
tanyongkiam marked this pull request as draft August 31, 2026 01:17
@tanyongkiam

Copy link
Copy Markdown
Contributor Author

I'll add a few more cleanup changes on this branch.

tanyongkiam and others added 3 commits August 31, 2026 14:46
The pseudo-boolean CNF and WCNF encoders now take their clause syntax,
semantics and DIMACS parser from examples/cnf, and no longer depend on the
LPR checker or satSem. Each clause is canonicalised before it is encoded,
so a repeated literal contributes a single term. The plain-DIMACS parser
and printer move out of the LRUP directory into their own theory.

The CakeML frontends move alongside the encoders they serve, into
cnf_encoding/array.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
The CakeML frontends for the clique, colour, MCIS, MCCIS and subgraph
isomorphism encoders move alongside the encoders they serve, together with
the shared graph-format parser. examples/pseudo_bool/array is left to the
pseudo-boolean checker itself. The scripts are unchanged.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Both carried their own copy of the printer for normalised constraints. They now
use a single one, kept alongside the other OPB surface-syntax definitions. It
prints a negative bound as -1 rather than ~1, matching the printers already
there.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@tanyongkiam
tanyongkiam marked this pull request as ready for review August 31, 2026 13:43
@tanyongkiam
tanyongkiam merged commit 02c6251 into master Sep 2, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant