Algebraic geometric methods for algorithms in satisfiability, irreducibility of varieties, and identity testing