Support quantified expressions with 0 parameters

This commit is contained in:
2020-04-08 12:48:21 +02:00
parent 9a8013f1cb
commit 3b7394a43e
2 changed files with 101 additions and 28 deletions

View File

@@ -501,8 +501,6 @@ impl Formula
pub fn exists(parameters: std::rc::Rc<VariableDeclarations>, argument: Box<Formula>) -> Self
{
assert!(!parameters.is_empty());
Self::Exists(Exists::new(parameters, argument))
}
@@ -518,8 +516,6 @@ impl Formula
pub fn for_all(parameters: std::rc::Rc<VariableDeclarations>, argument: Box<Formula>) -> Self
{
assert!(!parameters.is_empty());
Self::ForAll(ForAll::new(parameters, argument))
}