Skip to content

Cull provably-unsatisfiable constructors - #59

Open
mwhicks1 wants to merge 1 commit into
pr-inlining-1-designfrom
pr-inlining-2-culling
Open

Cull provably-unsatisfiable constructors#59
mwhicks1 wants to merge 1 commit into
pr-inlining-1-designfrom
pr-inlining-2-culling

Conversation

@mwhicks1

Copy link
Copy Markdown
Contributor

The idea explored in PR #58 is that for a "state machine" we can inline multiple steps in sequence into a single branch, and thereby have later calls' preconditions affect earlier calls' generators. This sort of inlining will yield a state-space blowup: For N commands, there are N^k commands of inlined k-steps. One way of reducing the blowup is to drop unsatisfiable compositions. If command C1 could never be followed by C2, there is no sense in discovering this at run-time and causing backtracking -- rule it out at compile time.

This PR adds functionality to drop unsatisfiable constructors in an inductive relation, assuming an inlining pass has preceded this one. This functionality must be enabled by a flag. Experiments and examples are included.

The inlining functionality will be in a future PR. Another useful PR would be to cull inlined pairs that add no value, i.e., that later conditions do not influence earlier generations, which perhaps the scheduler could identify.

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…ctors

Adds constructorPremisesUnsat, which telescopes a constructor's premises and
tries simp_all/omega/decide on a False goal under a heartbeat budget;
compileInductiveSchedule skips constructors proved dead. Uses only the
constructor's own premises (never the input state), so it culls only
never-satisfiable constructors and is a sound, opt-in optimization over the
existing runtime backtracking.

Includes VaultCullProof (by-hand disproofs plus keep-these witnesses) and cull
tests on the vault and guarded-dereference all-combinations relations. Results
recorded in Docs/Results.md.
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