Abstract
How the mind works is the ultimate mystery for human beings. This paper proposed a framework to solve it. We call it the self-programming system. The self-programming system can learn, store and apply the functions of bodies, external tools, and even the mind itself uniformly. However, due to the generality of the mind, traditional scientific methods are not suitable for validating a theory of mind. Therefore, we appeal to show the explanatory power of the self-programming system. Due to this reason, we applied this framework to solve the problem of consciousness. By comparing our solution to the popular theories of consciousness, we found that these theories only captured different aspects of our solution to consciousness. Beyond this, our solution also solved the hard problem of consciousness by showing that the existence of objectively unexplainable qualia is a matter of course even in a purely physical world.