Skip to content

Use generic mapSolution + SipserReduceToSAT3 instead of reverseMappedSolution#89

Open
wrigjl wants to merge 1 commit into
ReduxISU:ReduxAPI_GUIfrom
wrigjl:submit/replace-reverse-mapped-solution
Open

Use generic mapSolution + SipserReduceToSAT3 instead of reverseMappedSolution#89
wrigjl wants to merge 1 commit into
ReduxISU:ReduxAPI_GUIfrom
wrigjl:submit/replace-reverse-mapped-solution

Conversation

@wrigjl
Copy link
Copy Markdown
Contributor

@wrigjl wrigjl commented May 24, 2026

In requestSolvedInstanceTemporarySat3CliqueSolver (components/redux/index.js), switch the "map the clique back to a 3SAT assignment" call from the per-reduction SAT3 controller endpoint SipserReduceToCliqueStandard/reverseMappedSolution to the generic ProblemProvider/mapSolution route, dispatched via the inverse reduction class SipserReduceToSAT3. Body shape changes from the three-field {problemFrom, problemTo, problemFromSolution} envelope to a plain instance string, matching how every other call site in this file uses the generic mapSolution route.

This is the GUI half of the cleanup tracked by ReduxISU/Redux#214. It removes the only remaining caller of reverseMappedSolution, after which the Redux C# repo can delete the endpoint, its controller route, and the orphaned reverseMapSolutions method on SipserReduceToCliqueStandard. The Redux C# side will need both PRs in flight before either is reviewed safely: this PR alone leaves reverseMappedSolution unused but still defined; the C# deletion PR alone would break this GUI call site if merged first. Suggested order: merge this PR, then the C# deletion PR.

The new call requires SipserReduceToSAT3 to exist in the running Redux C# backend, which it does on the clique-to-sat3 branch (ReduxISU/Redux#213).

…Solution

In requestSolvedInstanceTemporarySat3CliqueSolver, switch the
"map the clique back to a 3SAT assignment" call from the
per-reduction SAT3 controller endpoint
`SipserReduceToCliqueStandard/reverseMappedSolution` to the generic
`ProblemProvider/mapSolution` route, dispatched via the inverse
reduction class `SipserReduceToSAT3`. Body shape changes from the
three-field `{problemFrom, problemTo, problemFromSolution}` envelope
to a plain instance string, matching how every other call site uses
the generic mapSolution route.

This removes the last caller of `reverseMappedSolution`, clearing the
way for ReduxISU/Redux#214 to delete the endpoint and method in the
Redux C# repo.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
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