Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions carcara/src/checker/rules/quantifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -351,6 +351,13 @@ pub fn miniscope_split(RuleArgs { conclusion, pool, .. }: RuleArgs) -> RuleResul

let mut bindings_set: IndexSet<_> = bindings.iter().collect();
for (phi, right) in phis.iter().zip(right_args) {
// `right` is the same as `phi`, it must have no bound variables from the quantifier being
// split, which is checked afterwards.
if phi == right {
continue;
}
// Otherwise an appropriate binder must have been put around `right` and its variables must
// be from the bindings_set in the LHS of the conclusion
let (inner_bindings, inner) = match op {
Operator::Or => match_term_err!((forall ... phi) = right)?,
Operator::And => match_term_err!((exists ... phi) = right)?,
Expand Down