CONSCIOUSNESS IS ALL THERE IS: A MATHEMATICAL APPROACH WITH APPLICATIONS