The permutation of the positive integers #
This file formalizes the final proof and computability remark in the paper
“A 4AP-free permutation of the positive integers”. Starting from the empty
word, stage n + 1 extends stage n with target {n}. These safe words give
an explicit bijection of ℕ, proved 4AP-free by permutationOfSafeStages_apFree.
Adding one to each value gives the positive sequence; shifting the positions
as well gives the positive permutation in the paper's indexing convention.
The numerical prefixes from the remark are checked separately in its upstream numerical examples module, using the stabilization results proved here.
The singleton-target stages P⁽ⁿ⁾ from the proof of the theorem and the
final remark: start empty, then force 0, 1, 2, ... in succession.
Equations
Instances For
Every stage of the executable construction is safe, as asserted in the proof of the main theorem.
The executable stages retain every entry already placed (main proof).
By stage n, all integers below n have appeared. This supplies the
exhaustion statement in the main proof and the termination guarantee in the
final remark's procedure for computing any given entry.
The particular computable permutation of ℕ₀ specified by the singleton
targets in the final remark. Both this map and its inverse are executable.
Equations
Instances For
The permutation computed in the final remark is 4AP-free. This connects the executable algorithm to the theorem, rather than merely checking examples.
The stopping criterion in the final remark: any stage long enough to contain a position already gives the final value at that position.
Reading a finite initial segment from a sufficiently long stage agrees with the actual infinite permutation. This is the list form of the stopping criterion and justifies the displayed numerical example in the remark.
Add one to the executable permutation, as in the last sentence of the proof and the second displayed prefix in the final remark. Positions remain zero-based here so the sequence can be read directly using Lean lists.
Instances For
The positive sequence is the nonnegative permutation shifted by one, exactly as stated in the paper.
The explicit positive sequence avoids every nonconstant four-term AP, including negative integer differences. This is the theorem's conclusion for the particular computable construction in the final remark.
The actual computable permutation of positive integers, with both values
and positions indexed by ℕ+, matching the paper's a₁ a₂ … convention.
Equations
Instances For
The paper's main theorem for the explicitly constructed positive permutation, now also with positive-integer positions.