Two odd things about computation. Daniel Murfet University of Melbourne

Similar documents
Two odd things about computation

Beyond the Second Law of Thermodynamics

Irreversibility and the Second Law in Thermodynamics and Statistical Mechanics

Stratifications and complexity in linear logic. Daniel Murfet

G 8243 Entropy and Information in Probability

Entropy for Mathematicians or... The final Blaubeuren chapters

Notes on proof-nets. Daniel Murfet. 8/4/2016 therisingsea.org/post/seminar-proofnets/

Thermodynamics. Energy is driving life. Energy of sun ultimately drives most of life on Earth

Structuring Logic with Sequent Calculus

Second Law of Thermodynamics: Concept of Entropy. While the first law of thermodynamics defines a relation between work and heat, in terms of

The (absence of a) relationship between thermodynamic and logical reversibility

Maxwell s Demon. Kirk T. McDonald Joseph Henry Laboratories, Princeton University, Princeton, NJ (October 3, 2004)

04. Information and Maxwell's Demon. I. Dilemma for Information-Theoretic Exorcisms.

Ch C e h m e ic i a c l a The Th r e mod o yna n m a ic i s c 2007/08

Maxwell s Demon. Kirk T. McDonald Joseph Henry Laboratories, Princeton University, Princeton, NJ (October 3, 2004; updated September 20, 2016)

AN ALTERNATIVE NATURAL DEDUCTION FOR THE INTUITIONISTIC PROPOSITIONAL LOGIC

Even if you're not burning books, destroying information generates heat.

The Calculus of Inductive Constructions

Quantum Thermodynamics

Asterix calculus - classical computation in detail

The physics of information: from Maxwell s demon to Landauer. Eric Lutz University of Erlangen-Nürnberg

Quantum heat engine using energy quantization in potential barrier

Non-classical Logics: Theory, Applications and Tools

Second law, entropy production, and reversibility in thermodynamics of information

ON BROWNIAN COMPUTATION

RESOLVING RUSSELL S PARADOX WITHIN CANTOR S INTUITIVE SET THEORY. Feng Xu ( Abstract

Harvard School of Engineering and Applied Sciences CS 152: Programming Languages

Semantics for Propositional Logic

DEMONS: MAXWELL S DEMON, SZILARD S ENGINE AND LANDAUER S ERASURE DISSIPATION

2.2 Classical circuit model of computation

Notes on Landauer s principle, reversible computation, and Maxwell s Demon

The category of open simply-typed lambda terms

Constructive approach to relevant and affine term calculi

Information and Physics Landauer Principle and Beyond

Comparative analysis of non-equilibrium quantum Landauer bounds

An overview of Structural Proof Theory and Computing

Preuves de logique linéaire sur machine, ENS-Lyon, Dec. 18, 2018

Attack of the Exponentials

Colloquium: The physics of Maxwell s demon and information

Propositional Logic Sequent Calculus

Logical Preliminaries

Implicit Computational Complexity

Fundamentals of Logic

General methods in proof theory for modal logic - Lecture 1

A Very Rough Introduction to Linear Logic

Adjoint Logic and Its Concurrent Semantics

An Introduction to Proof Theory

Axiomatic Information Thermodynamics. Received: 1 February 2018; Accepted: 26 March 2018; Published: 29 March 2018

Categories, Proofs and Programs

Axiomatic information thermodynamics

Reversibility. Processes in nature are always irreversible: far from equilibrium

Evaluation Driven Proof-Search in Natural Deduction Calculi for Intuitionistic Propositional Logic

Propositional Logic Language

Implicit Computational Complexity:

Zero and negative energy dissipation at information-theoretic erasure

Canonical Calculi: Invertibility, Axiom expansion and (Non)-determinism

Formulas for which Contraction is Admissible

DEFINITE DESCRIPTIONS: LANGUAGE, LOGIC, AND ELIMINATION

Landauer s principle in the quantum domain

Thermodynamic Third class Dr. Arkan J. Hadi

Decomposing Modalities

Marie Duží

HOW COMMON IS LIFE IN THE UNIVERSE?

The Second Law of Thermodynamics

Henk Barendregt and Freek Wiedijk assisted by Andrew Polonsky. Radboud University Nijmegen. March 5, 2012

Proving Completeness for Nested Sequent Calculi 1

arxiv:chao-dyn/ v1 17 Feb 1999

Demons: Maxwell demon; Szilard engine; and Landauer's erasure-dissipation

Linear logic and deep learning. Huiyi Hu, Daniel Murfet

Foundations of Logic Programming

Conservation of Information

Hypersequent Calculi for some Intermediate Logics with Bounded Kripke Models

Chapter 4. Basic Set Theory. 4.1 The Language of Set Theory

Notation for Logical Operators:

Type Theory and Constructive Mathematics. Type Theory and Constructive Mathematics Thierry Coquand. University of Gothenburg

Victoria Gitman and Thomas Johnstone. New York City College of Technology, CUNY

Hoare Logic: Reasoning About Imperative Programs

Recent Developments in and Around Coaglgebraic Logics

Lecture 11: Measuring the Complexity of Proofs

Chapter 3: Propositional Calculus: Deductive Systems. September 19, 2008

Teaching Natural Deduction as a Subversive Activity

arxiv: v1 [physics.class-ph] 14 Apr 2012

Linear Logic & Polynomial Time

Grammatical resources: logic, structure and control

Lecture Notes on Classical Linear Logic

SOCRATES DID IT BEFORE GÖDEL

Class 22 - Second Law of Thermodynamics and Entropy

BASIC LOGIC AND QUANTUM ENTANGLEMENT

Introduction to dependent type theory. CIRM, May 30

Gentzen Sequent Calculus LK

The goal of thermodynamics is to understand how heat can be converted to work. Not all the heat energy can be converted to mechanical energy

CONTRACTION CONTRACTED

where R = universal gas constant R = PV/nT R = atm L mol R = atm dm 3 mol 1 K 1 R = J mol 1 K 1 (SI unit)

On some Metatheorems about FOL

An Abstract Approach to Stratification in Linear Logic

Display calculi in non-classical logics

Kleene realizability and negative translations

Math 144 Summer 2012 (UCR) Pro-Notes June 24, / 15

Infinite objects in constructive mathematics

Quantum thermodynamics

Transcription:

Two odd things about computation Daniel Murfet University of Melbourne

Two odd things I. Maxwell s demon (1871) Energy cost of computation II. Russell s paradox (1901) Time and space cost of computation

This is not geometry

This is not computation

I. Maxwell s demon How much energy must be used in carrying out a computation?

Quasi-static flux of heat Q into a system at temperature T is associated with an increase of entropy S of that system. Q = T S Q T 1 T 2 heat flux T 1 S 1 = Q = T 2 S 2 S = S 2 + S 1 = 1 T 2 T 1 S 2 = ( > 0 T 1 >T 2 < 0 T 1 <T 2

Second law: it is impossible to derive an engine which, working in a cycle, shall produce no effect other than the transfer of heat from a colder to a hotter body. i.e. in a closed system always S tot 0 Q T 1 T 2 heat flux T 1 S 1 = Q = T 2 S 2 S = S 2 + S 1 = 1 T 2 T 1 S 2 = ( > 0 T 1 >T 2 < 0 T 1 <T 2

If someone points out to you that your pet theory of the universe is in disagreement with Maxwell s equations then so much the worse for Maxwell s equations. If it is found to be contradicted by observation well these experimentalists do bungle things sometimes. But if your theory is found to be against the second law of thermodynamics I can give you no hope; there is nothing for it but to collapse in deepest humiliation. Arthur Stanley Eddington

1 2 3 4 heat bath W = Q = kt ln 2 S bath = k ln 2 In the cycle 1-2-3-4-1, Maxwell s demon seems to violate the second law of thermodynamics

What generates the missing entropy? It s the measurement! - Brillouin 51, Gabor 61. No, it s not the measurement! It s the change in internal state of the demon, viewed as changing over the course of a cyclic computational process - Landauer 61, Fredkin & Toffoli 82, Bennett 82.

Step 1 (diagrams from Bennett 82) Step 2 Step 3 Step 4 S = k ln 2 S = k ln 2 erasure

Landauer s principle: the only fundamental computational operation which generates entropy is erasure. Bennett s exorcism: the resolution of Maxwell s paradox is that, in order to complete a cycle, the demon s internal state must be restored to its original configuration by erasing its memory - thus generating the entropy necessary to put the engine back into compatibility with the second law.

II. Russell s paradox How much time and space must be used in carrying out a computation?

Comprehension considered harmful R = {x x/2 x} R 2 R ` R/2 R R/2 R ` R 2 R

The sequent A 1,...,A n ` B 1,...,B m says: together the A i prove at least one of the B i A ` A axiom `, A A, 0 ` 0, 0 `, 0 cut, A, A `,A` ctr ` A,, A `,A` ` A, ` B,B, ` B, ctr ` B 1,B 2, ` B 1 _ B 2,,A 1,A 2 `,A 1 ^ A 2 ` ` ` B, ` weak weak,b `, stand for multisets of formulae

Example of a proof in the sequent calculus x ` x ax y ` y ax weak x, y ` y cut x, y ` y x ^ y ` y

Theorem (Gentzen 1934). There is an algorithm which, given a proof, produces a cut-free proof of the same sequent. This algorithm is called cut-elimination. logic formula sequent proof cut-elimination contraction weakening programming type input/output spec program execution copying erasure Curry-Howard correspondence

unrestricted comprehension `,A[t/x] `,t2 {x A} comp,a[t/x] `,t2 {x A} ` comp A = x/2 x R = {x A} = {x x/2 x} R/2 R = A[R/x] Applying the new comprehension rule yields...... ` `,R /2 R,R2 R comp,r /2 R `,R2 R ` comp

ax R 2 R ` R 2 R R/2 R ` R/2 R ax ` R/2 R, R 2 R R/2 R, R 2 R ` comp ` R 2 R, R 2 R R 2 R, R 2 R ` comp ctr ctr ` R 2 R ` R 2 R ` cut ` C weak The sequent calculus of naive set theory is inconsistent. The standard point of view is that the culprit is unrestricted comprehension.

logic formula sequent proof cut-elimination contraction weakening programming type input/output spec program execution copying erasure Curry-Howard correspondence

Theorem (Girard 98): there is a consistent refinement of the sequent calculus with unrestricted comprehension but restricted contraction in which the provably total functions N! N are precisely the polynomial time functions. This refinement is called light linear logic. The subject of implicit computational complexity views time and space complexity of programs as constraints on the static geometry of proofs. This has been used to propose versions of System F (the programming language on which Haskell is based) with polytime as a typing constraint (Atassi-Baillot-Terui 07). Derived from a close analysis of Russell s paradox.

logic programming formula type proof program cut-elimination execution contraction copying Russell s paradox weakening restricted contraction erasure restricted complexity Maxwell s paradox What is the physical meaning of complexity?

. '. Wovkpermole Simple ideal gas " %m Pm PV= NRT U CNRT - - lempemlune. mtfehmberhunivenalgasonstant entergy ( constant, depends on gas FIFTH- ' m. " attend ; w ' ; * i ; v,w=g" pav = - 5 * * NRTF, 's 'EN = " " " NRTINKI) = NRTINZ YN = RTINZ.