# Algebra of Self-Replication

Typical arguments for results like Kleene's Second Recursion Theorem and the existence of self-writing computer programs bear the fingerprints of equational reasoning and combinatory logic. In fact, the connection of combinatory logic and computability theory is very old, and this paper extends this connection in new ways. In one direction, we counter the main trend in both computability theory and combinatory logic of heading straight to undecidability. Instead, this paper proposes using several very small equational logics to examine results in computability theory itself. These logics are decidable via term rewriting. We argue that they have something interesting to say about computability theory. They are closely related to fragments of combinatory logic which are decidable, and so this paper contributes to the study of such fragments. The paper has a few surprising results such as a classification of quine programs (programs which output themselves) in two decidable fragments. The classification goes via examination of normal forms in term rewriting systems, hence the title of the paper. The classification is an explanation of why all quine programs (in any language) are "pretty much the same, except for inessential details." In addition, we study the relational structure whose objects are the programs with the relation "p expresses q" meaning that if the program p is run on nothing, then it eventually outputs the program q.

research
07/15/2022

### First-order logic with self-reference

We consider an extension of first-order logic with a recursion operator ...
research
01/16/2023

### A separation logic for sequences in pointer programs and its decidability

Separation logic and its variants can describe various properties on poi...
research
08/31/2011

### Every Formula-Based Logic Program Has a Least Infinite-Valued Model

Every definite logic program has as its meaning a least Herbrand model w...
research
05/03/2020

### Algebraic classifications for fragments of first-order logic and beyond

Complexity and decidability of logical systems is a major research area ...
research
03/28/2018

### Bundled fragments of first-order modal logic: (un)decidability

Quantified modal logic provides a natural logical language for reasoning...
research
02/07/2020

### RHLE: Automatic Verification of ∀∃-Hyperproperties

Specifications of program behavior typically consider single executions ...
research
10/03/2022

### Relational program synthesis with numerical reasoning

Program synthesis approaches struggle to learn programs with numerical v...