Definition bool_fun_iff (bf1 bf2 : bool_fun) : bool_fun :=
fun vb : var_binding => eqb (bf1 vb) (bf2 vb).

Lemma BDDiff_preserves_bool_fun :
forall (cfg : BDDconfig) (negm : BDDneg_memo) (orm : BDDor_memo)
(node1 node2 : ad),
BDDconfig_OK cfg ->
BDDneg_memo_OK_2 cfg negm ->
BDDor_memo_OK cfg orm ->
config_node_OK cfg node1 ->
config_node_OK cfg node2 ->
forall node : ad,
config_node_OK cfg node ->
bool_fun_eq (bool_fun_of_BDD (fst (BDDiff cfg negm orm node1 node2)) node)
(bool_fun_of_BDD cfg node).