diff --git a/src/syntax_tree/fol.rs b/src/syntax_tree/fol.rs index c751d70c..8e9ae77a 100644 --- a/src/syntax_tree/fol.rs +++ b/src/syntax_tree/fol.rs @@ -343,7 +343,7 @@ impl Formula { quantification, formula, } => { - let mut vars = formula.variables(); + let mut vars = formula.free_variables(); for var in &quantification.variables { vars.remove(var); }