First version of sat theorem
Minor changes to sat