Piecewise Affine Function: Difference between revisions
Rewrite article using PAF terminology and definitions from Ben-Amram's paper. |
Add reference to 2-region proof and update reference style to allow specifying the sections where the proofs come from. |
||
| Line 27: | Line 27: | ||
== Turing Complete == | == Turing Complete == | ||
PAF are Turing complete. This has been proven by implementing Generalized Collatz Problems and Minsky machines as iterated PAF problems: Amir M. Ben-Amram proved in 2015 that 2-dimensional PAF are Turing complete by implementing arbitrary GCP<ref> | PAF are Turing complete. This has been proven by implementing Generalized Collatz Problems and Minsky machines as iterated PAF problems: Amir M. Ben-Amram proved in 2015 that 2-dimensional PAF are Turing complete by implementing arbitrary GCP<ref>Ben-Amram 2015. Section 2: Undecidability in Two Dimensions</ref> and also that 2-region PAF are Turing complete by implementing arbitrary Minsky machines.<ref>Ben-Amram, Genaim, Masud 2012. Section 5: Loops with Two Linear Pieces</ref> | ||
Independently, similar results were proven on the bbchallenge Discord in 2025: @Bard proved that 3-dim PAF are Turing complete: [https://discord.com/channels/960643023006490684/1239205785913790465/1420457986564030641 Discord link], @star proved that 2-dim PAF are Turing complete: [https://discord.com/channels/960643023006490684/1239205785913790465/1421271424588451915 Discord link] and Shawn Ligocki wrote up a proof sketch that 2-region PAF are Turing complete: [https://discord.com/channels/960643023006490684/1239205785913790465/1422772752980639866 Discord link]. | Independently, similar results were proven on the bbchallenge Discord in 2025 (all by reduction to Minsky machines): @Bard proved that 3-dim PAF are Turing complete: [https://discord.com/channels/960643023006490684/1239205785913790465/1420457986564030641 Discord link], @star proved that 2-dim PAF are Turing complete: [https://discord.com/channels/960643023006490684/1239205785913790465/1421271424588451915 Discord link] and Shawn Ligocki wrote up a proof sketch that 2-region PAF are Turing complete: [https://discord.com/channels/960643023006490684/1239205785913790465/1422772752980639866 Discord link]. | ||
== References == | == References == | ||
<references /> | <references /> | ||
* Amir M. Ben-Amram. 2015. [https://drops.dagstuhl.de/storage/00lipics/lipics-vol020-stacs2013/LIPIcs.STACS.2013.514/LIPIcs.STACS.2013.514.pdf Mortality of iterated piecewise affine functions over the integers: Decidability and complexity]. ''Computability''. 2015;4(1):19-56. [https://doi.org/10.3233/COM-150032 doi:10.3233/COM-150032] | |||
* Amir M. Ben-Amram, Samir Genaim, and Abu Naser Masud. 2012. On the Termination of Integer Loops. ''ACM Transactions on Programming Languages and Systems'' 34, 4, Article 16 (December 2012), 24 pages. [https://doi.org/10.1145/2400676.2400679 doi:10.1145/2400676.2400679] | |||
Revision as of 16:17, 28 October 2025
A Piecewise Affine Function (PAF) is a piecewise-defined function where each case is affine (and the case constraints are polyhedra). Many Cryptids are modeled by iterated PAFs, for example, BMO1. Like Generalized Collatz Problems, iterated PAFs are also proven to be Turing complete. On the bbchallenge Discord, these were originally called "Linear-Inequality Affine Transformation Automata (LIATA)" before we knew about the existing name in published literature.
Formal Definition
A n-dimension, p-region PAF is a piecewise defined partial function :Where each is an affine function and the are non-overlapping "polyhedral regions" (defined below). If is not in any region , we say that it halts on that configuration.
We define a closed, rational half-space to be a region for some and . In other words, it is the half of n-dimensional Euclidean space on one side of a hyperplane (a subspace defined by an affine function). And let an open, rational half-space be the same thing but using strict inequality ().
Finally, define a polyhedral regions (or simply polyhedron) as the intersection of a finite number of rational half-spaces (any combination of closed and open ones). So, for example, the following are all polyhedral regions:
- represented formally as
- represented formally as
- represented formally as
Given a PAF f, we say that it halts in k steps starting from configuration iff is undefined.
Example
An example of a PAF are the rules for BMO1:where is undefined. BMO1 halts iff there exists k such that is undefined (in other words for some n).
This is a 2-dimension, 2-region PAF. The 2 dimensions are the parameters a,b and the two regions are the half-spaces and . For each case the parameters are transformed via an affine transformation.
Turing Complete
PAF are Turing complete. This has been proven by implementing Generalized Collatz Problems and Minsky machines as iterated PAF problems: Amir M. Ben-Amram proved in 2015 that 2-dimensional PAF are Turing complete by implementing arbitrary GCP[1] and also that 2-region PAF are Turing complete by implementing arbitrary Minsky machines.[2]
Independently, similar results were proven on the bbchallenge Discord in 2025 (all by reduction to Minsky machines): @Bard proved that 3-dim PAF are Turing complete: Discord link, @star proved that 2-dim PAF are Turing complete: Discord link and Shawn Ligocki wrote up a proof sketch that 2-region PAF are Turing complete: Discord link.
References
- Amir M. Ben-Amram. 2015. Mortality of iterated piecewise affine functions over the integers: Decidability and complexity. Computability. 2015;4(1):19-56. doi:10.3233/COM-150032
- Amir M. Ben-Amram, Samir Genaim, and Abu Naser Masud. 2012. On the Termination of Integer Loops. ACM Transactions on Programming Languages and Systems 34, 4, Article 16 (December 2012), 24 pages. doi:10.1145/2400676.2400679