The Tharine Theorem: A Quantum-Thermodynamic Derivation of the Free Energy Principle in Artificial Cognitive Systems | Synapse