added logic engine theorem.  needs to show proof in the morning