Definition nodes_preserved (cfg cfg' : BDDconfig) :=
forall (x : BDDvar) (l r node : ad),
MapGet _ (fst cfg) node = Some (x, (l, r)) ->
MapGet _ (fst cfg') node = Some (x, (l, r)).

Lemma BDDneg_2_config_OK_lemma_2 :
forall (cfg : BDDconfig) (node : ad) (x : BDDvar) (l r : ad) (n m : nat),
BDDconfig_OK cfg ->
MapGet _ (fst cfg) node = Some (x, (l, r)) ->
nat_of_N (var cfg node) < n ->
n = S m -> BDDconfig_OK (fst (BDDneg_2 (fst (BDDneg_2 cfg l m)) r m)).