<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://lem12.uksw.edu.pl/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="pl">
		<id>https://lem12.uksw.edu.pl/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AndrzejSalwicki</id>
		<title>Lem - Wkład użytkownika [pl]</title>
		<link rel="self" type="application/atom+xml" href="https://lem12.uksw.edu.pl/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=AndrzejSalwicki"/>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Specjalna:Wk%C5%82ad/AndrzejSalwicki"/>
		<updated>2026-08-23T03:54:50Z</updated>
		<subtitle>Wkład użytkownika</subtitle>
		<generator>MediaWiki 1.23.8</generator>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-20T17:48:22Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks &lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  ?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd  numbers &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in !&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt;  \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1)  &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------&lt;br /&gt;
17 siepnia 2026&lt;br /&gt;
I ta wersja też została odrzucona.&lt;br /&gt;
----&lt;br /&gt;
Nothing to share&lt;br /&gt;
-----&lt;br /&gt;
tak brzmi recenzja lb raczej jej brak.&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
==== Wersja z 15 marca 2026 ====&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-20T09:21:53Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks &lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  ?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd  numbers &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in !&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------&lt;br /&gt;
17 siepnia 2026&lt;br /&gt;
I ta wersja też została odrzucona.&lt;br /&gt;
----&lt;br /&gt;
Nothing to share&lt;br /&gt;
-----&lt;br /&gt;
tak brzmi recenzja lb raczej jej brak.&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
==== Wersja z 15 marca 2026 ====&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-20T09:21:28Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks &lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  ?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd  numbers &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in !&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
=============================&lt;br /&gt;
17 siepnia 2026&lt;br /&gt;
I ta wersja też została odrzucona.&lt;br /&gt;
----&lt;br /&gt;
Nothing to share&lt;br /&gt;
-----&lt;br /&gt;
tak brzmi recenzja lb raczej jej brak.&lt;br /&gt;
-----------------------------------------------------------------------------&lt;br /&gt;
&lt;br /&gt;
==== Wersja z 15 marca 2026 ====&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-20T08:42:41Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks &lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  ?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd  numbers &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in !&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
=============================&lt;br /&gt;
17 siepnia 2026&lt;br /&gt;
I ta wersja też została odrzucona.&lt;br /&gt;
----&lt;br /&gt;
Nothing to share&lt;br /&gt;
-----&lt;br /&gt;
tak brzmi recenzja lb raczej jej brak.&lt;br /&gt;
=========================================================&lt;br /&gt;
==== Wersja z 15 marca 2026 ====&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-20T08:41:04Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks &lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  ?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd  numbers &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in !&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
=============================&lt;br /&gt;
17 siepnia 2026&lt;br /&gt;
I ta wersja też została odrzucona.&lt;br /&gt;
----&lt;br /&gt;
Nothing to share&lt;br /&gt;
-----&lt;br /&gt;
tak brzmi recenzja lb raczej jej brak.&lt;br /&gt;
=========================================================&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-13T16:20:17Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks &lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  ?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd  numbers &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in !&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-13T16:18:43Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks &lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  ?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd  numbers &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in accordance with the lengths of their permutations. See also the trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;    -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T16:46:28Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in accordance with the lengths of their permutations. See also the trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;    -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T16:45:43Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in accordance with the lengths of their permutations. See also the trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;    -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T16:26:01Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in accordance with the lengths of their permutations. See also the trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;    -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T16:25:02Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Quelques photos du massif du Vercors&lt;br /&gt;
|wielkość=300&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in accordance with the lengths of their permutations. See also the trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;    -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T16:23:57Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Quelques photos du massif du Vercors&lt;br /&gt;
|wielkość=300&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
&lt;br /&gt;
}}&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in accordance with the lengths of their permutations. See also the trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;    -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T16:19:27Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png|Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png|the graph HC after permuting odd numbers in accordance with the lengths of their permutations. See also the trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;    -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png|Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T16:06:57Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria&lt;br /&gt;
|Nazwa=Three not so easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after permuting odd numbers in accordance with the lengths of their permutations. See also the trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt;    -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png |Computation for n equal 27 &lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T16:00:27Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=left&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png |Computation for n=27&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T15:57:46Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria&lt;br /&gt;
| Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
| wielkość=250&lt;br /&gt;
|pozycja=right&lt;br /&gt;
|Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
|Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
|Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png |Computation for n=27&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T15:56:12Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria&lt;br /&gt;
Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250&lt;br /&gt;
| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a tree too, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png |Computation for n=27&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T15:54:18Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture&lt;br /&gt;
|  wielkość=250&lt;br /&gt;
| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png |Computation for n=27&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T15:47:23Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png |Computation for n=27&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T15:45:28Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png |Example of computation for n=27&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T15:42:12Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | Trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png |Example of computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T15:38:52Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=350| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png | Example of computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T13:08:44Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=350| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png | example of computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T13:05:38Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six  steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three not so easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png | example of computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:56:32Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three non-easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png | example of computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
| Plik:Computationforn27.png | example of computation for n=27&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:53:44Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three non-easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png | example of computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png| the graph HC after inverting edges -it is a tree!&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:48:06Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three non-easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png | example of computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:45:47Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three non-easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
}}&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:38:36Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three non-easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==== ABSTRACT ====&lt;br /&gt;
 &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:36:51Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three non-easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
| Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:28:10Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
{{Galeria|Nazwa=Three non-easy remarks on Collatz conjecture|  wielkość=250| pozycja=right&lt;br /&gt;
| Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:19:50Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture| wielkość=250|pozycja=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:16:38Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture| wielkość=250|pozycjan=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:14:32Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture| wielkość=250|pozycjan=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:13:34Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture| wielkość=250|pozycjan=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz.png &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:12:06Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture| wielkość=250|pozycjan=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC| Hotel Collatz.png &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:11:11Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture| wielkość=250|pozycjan=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:07:26Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
A  guide to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria|Nazwa=Three easy remarks on Collatz conjecture| wielkość=250|pozycjan=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-12T12:04:56Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;A  guide&amp;lt;/big&amp;gt; to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria||Nazwa=Three easy remarks on Collatz conjecture| wielkość=250|pozycjan=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Szablon:Galeria</id>
		<title>Szablon:Galeria</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Szablon:Galeria"/>
				<updated>2026-08-12T11:56:20Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: Utworzono nową stronę &amp;quot;&amp;lt;includeonly&amp;gt;&amp;lt;TemplateStyles src=&amp;quot;Galeria/styles.css&amp;quot; /&amp;gt;&amp;lt;div  class=&amp;quot;ImageGroup ImageGroup-{{{pozycja|right}}}&amp;quot;  style=&amp;quot;max-width:{{#expr: {{#if:{{{wielkość|}}}|{{{wie...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;includeonly&amp;gt;&amp;lt;TemplateStyles src=&amp;quot;Galeria/styles.css&amp;quot; /&amp;gt;&amp;lt;div&lt;br /&gt;
 class=&amp;quot;ImageGroup ImageGroup-{{{pozycja|right}}}&amp;quot;&lt;br /&gt;
 style=&amp;quot;max-width:{{#expr: {{#if:{{{wielkość|}}}|{{{wielkość}}}|250}} + 15 }}px;&amp;quot;&lt;br /&gt;
&amp;gt;{{#if:{{{Nazwa|}}}|&amp;lt;div style=&amp;quot;font-weight:bold;&amp;quot;&amp;gt;{{{Nazwa}}}&amp;lt;/div&amp;gt;}}&amp;lt;div class=&amp;quot;ImageGroupUnits&amp;quot;&amp;gt;&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{1|}}}|[[{{{1}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{2}}}]]|{{#if:{{{2|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{3|}}}|[[{{{3}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{4}}}]]|{{#if:{{{4|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{5|}}}|[[{{{5}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{6}}}]]|{{#if:{{{6|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{7|}}}|[[{{{7}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{8}}}]]|{{#if:{{{8|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{9|}}}|[[{{{9}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{10}}}]]|{{#if:{{{10|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{11|}}}|[[{{{11}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{12}}}]]|{{#if:{{{12|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{13|}}}|[[{{{13}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{14}}}]]|{{#if:{{{14|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{15|}}}|[[{{{15}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{16}}}]]|{{#if:{{{16|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{17|}}}|[[{{{17}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{18}}}]]|{{#if:{{{18|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{19|}}}|[[{{{19}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{20}}}]]|{{#if:{{{20|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{21|}}}|[[{{{21}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{22}}}]]|{{#if:{{{22|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{23|}}}|[[{{{23}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{24}}}]]|{{#if:{{{24|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{25|}}}|[[{{{25}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{26}}}]]|{{#if:{{{26|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{27|}}}|[[{{{27}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{28}}}]]|{{#if:{{{28|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{29|}}}|[[{{{29}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{30}}}]]|{{#if:{{{30|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{31|}}}|[[{{{31}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{32}}}]]|{{#if:{{{32|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{33|}}}|[[{{{33}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{34}}}]]|{{#if:{{{34|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{35|}}}|[[{{{35}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{36}}}]]|{{#if:{{{36|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{37|}}}|[[{{{37}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{38}}}]]|{{#if:{{{38|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{39|}}}|[[{{{39}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{40}}}]]|{{#if:{{{40|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{41|}}}|[[{{{41}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{42}}}]]|{{#if:{{{42|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{43|}}}|[[{{{43}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{44}}}]]|{{#if:{{{44|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{45|}}}|[[{{{45}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{46}}}]]|{{#if:{{{46|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{47|}}}|[[{{{47}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{48}}}]]|{{#if:{{{48|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{49|}}}|[[{{{49}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{50}}}]]|{{#if:{{{50|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{51|}}}|[[{{{51}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{52}}}]]|{{#if:{{{52|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{53|}}}|[[{{{53}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{54}}}]]|{{#if:{{{54|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{55|}}}|[[{{{55}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{56}}}]]|{{#if:{{{56|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{57|}}}|[[{{{57}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{58}}}]]|{{#if:{{{58|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{59|}}}|[[{{{59}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{60}}}]]|{{#if:{{{60|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{61|}}}|[[{{{61}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{62}}}]]|{{#if:{{{62|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{63|}}}|[[{{{63}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{64}}}]]|{{#if:{{{64|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{65|}}}|[[{{{65}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{66}}}]]|{{#if:{{{66|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{67|}}}|[[{{{67}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{68}}}]]|{{#if:{{{68|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{69|}}}|[[{{{69}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{70}}}]]|{{#if:{{{70|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{71|}}}|[[{{{71}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{72}}}]]|{{#if:{{{72|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{73|}}}|[[{{{73}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{74}}}]]|{{#if:{{{74|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{75|}}}|[[{{{75}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{76}}}]]|{{#if:{{{76|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{77|}}}|[[{{{77}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{78}}}]]|{{#if:{{{78|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{79|}}}|[[{{{79}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{80}}}]]|{{#if:{{{80|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{81|}}}|[[{{{81}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{82}}}]]|{{#if:{{{82|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{83|}}}|[[{{{83}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{84}}}]]|{{#if:{{{84|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{85|}}}|[[{{{85}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{86}}}]]|{{#if:{{{86|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{87|}}}|[[{{{87}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{88}}}]]|{{#if:{{{88|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{89|}}}|[[{{{89}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{90}}}]]|{{#if:{{{90|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{91|}}}|[[{{{91}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{92}}}]]|{{#if:{{{92|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{93|}}}|[[{{{93}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{94}}}]]|{{#if:{{{94|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{95|}}}|[[{{{95}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{96}}}]]|{{#if:{{{96|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{97|}}}|[[{{{97}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{98}}}]]|{{#if:{{{98|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
--&amp;gt;{{#if:{{{99|}}}|[[{{{99}}}|{{#if:{{{wielkość|}}}|{{{wielkość}}}|250}}px|thumb|center|{{{100}}}]]|{{#if:{{{100|}}}|[[Kategoria:Zdegenerowana galeria]]}}}}&amp;lt;!--&lt;br /&gt;
&lt;br /&gt;
--&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/includeonly&amp;gt;&amp;lt;noinclude&amp;gt;&lt;br /&gt;
{{Dokumentacja}}&lt;br /&gt;
&amp;lt;/noinclude&amp;gt;&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-11T07:09:42Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;A  guide&amp;lt;/big&amp;gt; to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria||Nazwa=Three easy remarks on Collatz conjecture| wielkość=250|pozycjan=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-11T07:01:05Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;A  guide&amp;lt;/big&amp;gt; to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{Galeria||Name=Three easy remarks on Collatz conjecture| size=250|position=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-11T06:56:50Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;A  guide&amp;lt;/big&amp;gt; to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;|Name=Three easy remarks on Collatz conjecture| size=250|position=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-11T06:53:27Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;A  guide&amp;lt;/big&amp;gt; to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&lt;br /&gt;
{{gallery|Name=Three easy remarks on Collatz conjecture| size=250|position=right&lt;br /&gt;
| Plik:Collatz_tree.png|Collatz tree - does it contain all natural numbers?&lt;br /&gt;
| Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
| Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
}}&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Plik:DrzewoHCpoModyfikacjach.png</id>
		<title>Plik:DrzewoHCpoModyfikacjach.png</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Plik:DrzewoHCpoModyfikacjach.png"/>
				<updated>2026-08-10T16:17:22Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== This is the graph &amp;lt;math&amp;gt; HC &amp;lt;/math&amp;gt;  from another perspective===&lt;br /&gt;
Yes! &amp;lt;br /&amp;gt;&lt;br /&gt;
# The odd numbers are permuted.&lt;br /&gt;
# All edges go to the left.&lt;br /&gt;
=== Ordering the odd numbers  ===&lt;br /&gt;
We are ordering the odd numbers with respect to the length of &amp;lt;math&amp;gt; 3n+1 &amp;lt;/math&amp;gt; computations.&lt;br /&gt;
Let &amp;lt;math&amp;gt; x &amp;lt;/math&amp;gt;be a number of multiplications by 3, let &amp;lt;math&amp;gt; z &amp;lt;/math&amp;gt; be the number of divisions by 2.We assume that the length of &amp;lt;math&amp;gt; 3n+1 &amp;lt;/math&amp;gt; computation is &amp;lt;math&amp;gt; x+z &amp;lt;/math&amp;gt;. &amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Plik:DrzewoHCpoModyfikacjach.png</id>
		<title>Plik:DrzewoHCpoModyfikacjach.png</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Plik:DrzewoHCpoModyfikacjach.png"/>
				<updated>2026-08-10T14:50:37Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Ordering the odd numbers  ===&lt;br /&gt;
We are ordering the odd numbers with respect to the length of &amp;lt;math&amp;gt; 3n+1 &amp;lt;/math&amp;gt; computations.&lt;br /&gt;
Let &amp;lt;math&amp;gt; x &amp;lt;/math&amp;gt;be a number of multiplications by 3, let &amp;lt;math&amp;gt; z &amp;lt;/math&amp;gt; be the number of divisions by 2.We assume that the length of &amp;lt;math&amp;gt; 3n+1 &amp;lt;/math&amp;gt; computation is &amp;lt;math&amp;gt; x+z &amp;lt;/math&amp;gt;. &amp;lt;br /&amp;gt;&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Collatz</id>
		<title>Collatz</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Collatz"/>
				<updated>2026-08-10T11:55:49Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Recent version ==&lt;br /&gt;
Dnia 4 sierpnia 2026&amp;lt;br /&amp;gt;&lt;br /&gt;
Przedstawiamy kolejną wersję artykułu.&amp;lt;br /&amp;gt;&lt;br /&gt;
Mamy nadzieję, że łatwiej będzie śledzić nasze argumenty.&amp;lt;br /&amp;gt;&lt;br /&gt;
Dodaliśmy kilka nowych rysunków.&amp;lt;br /&amp;gt;&lt;br /&gt;
I nowe ujecie dowodu tezy T1.&amp;lt;br /&amp;gt;&lt;br /&gt;
Miłego czytania  [[https://lem12.uksw.edu.pl/images/4/41/CollatzConjectureBecomesTheorem.pdf]&amp;lt;br /&amp;gt;&lt;br /&gt;
------------------------------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;A  guide&amp;lt;/big&amp;gt; to accept the thesis '''T1''' in six easy steps.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:Collatz_tree.png| 550px| Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
Plik:graphHC.png| Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
Plik:graphGoddnumbers.png |  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right? &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Attention, please.&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Plik:TreesD-C.png | trees &amp;lt;math&amp;gt;D_C&amp;lt;/math&amp;gt; i.e. left-down corners of the graph G&lt;br /&gt;
Plik:Computationforn27.png | example Computation for n=27&lt;br /&gt;
Plik:DrzewoHCpoModyfikacjach.png | the graph HC after inverting edges -it is a tree!&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
* Fig. 2 page 6. Collatz tree -- how to assure that every natural number is a node of this tree?&lt;br /&gt;
* Fig.  6 page 13. Hotel Collatz &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt;  -- every natural number is a node in this graph. But, is it a tree?&lt;br /&gt;
* Fig.7 page 15. The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; of odd natural numbers with successors operation . If&amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; is a tree then the graph &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is a treetoo, right?&lt;br /&gt;
* Fig.  8 page 17. The sequence of trees &amp;lt;math&amp;gt;\mathcal{D}_C&amp;lt;/math&amp;gt;. Do you recognize some similarity to te pairing function of G. Cantor?&lt;br /&gt;
* Fig. 9 page 18. The path from 1 to 27 in the graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt;. Hence, the guest from the room no 27 learns how to reach his bed.&lt;br /&gt;
* Fig. 10 page 20.  The graph &amp;lt;math&amp;gt;\mathcal{G}&amp;lt;/math&amp;gt; withall edges going to the left is a tree! &lt;br /&gt;
Hence, all computations &amp;lt;math&amp;gt;3n+1 &amp;lt;/math&amp;gt; are finite! Hence the graph  &amp;lt;math&amp;gt;\mathcal{HC}&amp;lt;/math&amp;gt; is atree&lt;br /&gt;
--------------------------------------------------------------------  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
ABSTRACT &amp;lt;br /&amp;gt;&lt;br /&gt;
as of Aug 4,2026 &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
We are presenting the paradox, i.e. two theses T1 and T2 that contradict each other. Third thesis T3 solves the problem.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
 '''T1'''. 		We  show that the  Collatz conjecture  For every natural number ''n''  ,  the  ''3n+1'' &amp;lt;br /&amp;gt;    computation is finite  is a ''semantically valid statement&amp;quot;.   &lt;br /&gt;
The sufficient  and necessary criterion &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;  for termination of  &amp;lt;math&amp;gt;3n+1&amp;lt;/math&amp;gt; computation  is given.	&amp;lt;br /&amp;gt;&lt;br /&gt;
We prove that, every instance &amp;lt;math&amp;gt;\varphi (n/r)&amp;lt;/math&amp;gt; of the criterion where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r\neq0&amp;lt;/math&amp;gt;, is ''a  theorem of Peano's arithmetic'', Hence, the set &amp;lt;math&amp;gt;\left\lbrace  \varphi(n/r)\right\rbrace _{r=0}^{\infty} \subset Th(\mathcal{PA})&amp;lt;/math&amp;gt; is a recursive subset of the set of  theorems.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T2'''.     Paradoxically, the Collatz conjecture itself,  '''is not a theorem''' of number theory (Peano's arithmetic or a similar elementary theory).   &lt;br /&gt;
It is so because, 1. the formula &amp;lt;math&amp;gt;\forall_{n}\varphi(n)&amp;lt;/math&amp;gt; obtained by putting the general quantifier &amp;lt;math&amp;gt;\forall_{n}&amp;lt;/math&amp;gt; in front of formula &amp;lt;math&amp;gt;\varphi(n)&amp;lt;/math&amp;gt;,  may obtain  the value &amp;lt;math&amp;gt;\mathbf{\mathbb{F}}&amp;lt;/math&amp;gt; = false, in a  non-standard   model of Peano's arithmetic  \  and \ &lt;br /&gt;
2. there  is no way to bound the classical quantifier to the set of standard, reachable natural numbers.   &amp;lt;br /&amp;gt;&lt;br /&gt;
To avoid the paradox, we will conduct our considerations in the formalized \textit{algorithmic} theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt; of natural numbers.  The logical consequence operation of the theory is determined by  the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;, which is an extension of the predicate calculus.   &lt;br /&gt;
The halting condition of the Collatz  computations is written as an algorithmic formula.  &amp;lt;br /&amp;gt;&lt;br /&gt;
'''T3'''. We are  '''proving'''  that, four infinite sets &amp;lt;math&amp;gt;St_{0},St_{1},St_{2},St_{3}&amp;lt;/math&amp;gt; of formulas,  are the  ''recursive sets''  of theorems of the theory &amp;lt;math&amp;gt;\mathcal{ATN}&amp;lt;/math&amp;gt;.  Hence, every formula  of the set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt;  has a proof. Making use of the infinitary  inference rule &amp;lt;math&amp;gt;R_{3}&amp;lt;/math&amp;gt;  to the infinite set &amp;lt;math&amp;gt;St_{3}&amp;lt;/math&amp;gt; of premises we conclude the proof of the Main theorem &amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\begin{equation}&lt;br /&gt;
\mathcal{ATN} \vdash	\forall_{n&amp;gt; 0}	\left( \underbrace{\left\{&lt;br /&gt;
			\begin{array}{l}&lt;br /&gt;
				q\leftarrow 1 ;  \\&lt;br /&gt;
				\mathbf{while}\ n \neq q \    \mathbf{do}\\ &lt;br /&gt;
				\quad q\leftarrow q+1\\      \mathbf{od}&lt;br /&gt;
			\end{array}	&lt;br /&gt;
			\right\}(n=q)}_{{\mathbb{IF}\ n \ is\ a\ natural\ number}}	  \implies    &lt;br /&gt;
		\underbrace{\left\{ \begin{array}{l}&lt;br /&gt;
				m\leftarrow\rho(n);  \\&lt;br /&gt;
				\mathbf{while}\ m\neq 1 \    \mathbf{do}\\ &lt;br /&gt;
				\quad m \leftarrow \rho(3m+1)\\      \mathbf{od}&lt;br /&gt;
			\end{array}&lt;br /&gt;
			\right\} (m=1)}_{\mathbb{THEN}\ the\ computation\   for\ n\ is\ finite\ \mathbb{FI}  } \right)  \qquad&lt;br /&gt;
&lt;br /&gt;
\end{equation}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;br /&amp;gt;&lt;br /&gt;
	'''Definition.'''  The function &amp;lt;math&amp;gt;\rho&amp;lt;/math&amp;gt; is defined as &lt;br /&gt;
&amp;lt;math&amp;gt; \[ \rho(n)=(2j+1) \Longleftrightarrow \exists_{i}\exists_{j}\,n=2^{i}\cdot (2j+1) \] &amp;lt;/math&amp;gt;.&lt;br /&gt;
------------------------------------------------------------    &amp;lt;br /&amp;gt;&lt;br /&gt;
Możemy ogłosić, że [http://arxiv.org/abs/2310.13035 dowód] hipotezy Collatza został ukończony. &amp;lt;br /&amp;gt;&lt;br /&gt;
Oto wersja złożona do druku [https://lem12.uksw.edu.pl/images/6/69/CollatzConjecturebecomesTheorem2026-03-15.pdf]&amp;lt;br /&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
I odrzucona. &amp;lt;br /&amp;gt;&lt;br /&gt;
Artykuł złożono '''15 marca 2026'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor naczeelny wyznaczył redaktora odpowiedzialnego za zasiegniecie opinii i podjęcie decyzji 16 marca o godzinie 20:52.&amp;lt;br /&amp;gt;&lt;br /&gt;
Redaktor odpowiedzialny podjął decyzję '''17 marca 2026 o godzinie 12:17'''.&amp;lt;br /&amp;gt;&lt;br /&gt;
Oto cała recenzja i decyzja&amp;lt;br /&amp;gt;&lt;br /&gt;
''Unfortunately, we cannot accept it for publication.  The paper belongs to computer science and not mathematics. So the proper venue for its publication should be a computer science journal. It seems to me that the bare argument for the Collatz conjecture presented in your paper is not very complicated (this does not mean that I verified it). Why not extract it, omitting the programming jargon? Then it would be more accessible to mathematicians.''&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;big&amp;gt;&amp;lt;big&amp;gt;Absract&amp;lt;/big&amp;gt;&amp;lt;/big&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
		We are showing that the  following conjecture&lt;br /&gt;
''For every &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, if &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is a natural number then Collatz computation is finite.'' &lt;br /&gt;
is a semantically valid statement.   	&amp;lt;br /&amp;gt;&lt;br /&gt;
	&lt;br /&gt;
&lt;br /&gt;
		This is asserted by  the Main lemma.  &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		 A corollary of the lemma says:  every instance of the cnjecture where the variable &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is replaced by any natural number &amp;lt;math&amp;gt;r \neq 0&amp;lt;/math&amp;gt;, is a theorem of arithmetic, in which the addition is the only operation. &amp;lt;br /&amp;gt;&lt;br /&gt;
Note, the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;of is a recursive set of theorems of Presburger arithmetic, hence the theorems of algorithmic theory of natural numbers. &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	&lt;br /&gt;
		 Paradoxically, the Collatz conjecture itself is not a theorem of number theory (Peano's arithmetic), nor any mathematical theory that uses the first-order  language and the classical predicate logic.   &amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
		It is so because, '''1''') there is no first-order theory such that all its models are isomorphic to the standard model of natural numbers                                                                      &lt;br /&gt;
		and hence '''2''') the  infinite computations   can be n observed  in a ''non-standard computable'' model of   the elementary theory of natural numbers with addition. &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
		 To avoid the paradox, we will use the   calculus of programs &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt; instead of the predicate calculus. The halting condition &amp;lt;math&amp;gt;H&amp;lt;/math&amp;gt;  of the Collatz  computations is written as an algorithmic formula. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt; \qquad  	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {the\ computation\   for\ n\ is\ finite} }  \qquad (H)  &lt;br /&gt;
&amp;lt;/math&amp;gt;   &amp;lt;br /&amp;gt;&lt;br /&gt;
  or by another, equivalent formula with iteration quantifier instead of  '''while''' &amp;lt;br /&amp;gt;&lt;br /&gt;
 &lt;br /&gt;
There is no finite, traditional proof the following  theorem . &amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt; \begin{array}{p{14cm}}&lt;br /&gt;
%	  We are  answering to the question (\textit{i}) formulating the thesis of the  \textsc{Theorem}\eqref{thM}.     &lt;br /&gt;
%	\label{main}&lt;br /&gt;
			 \mathcal{ATN}\vdash  &lt;br /&gt;
			\forall_{n \neq 0}	\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						q:=1; \\&lt;br /&gt;
						\mathbf{while}\ n \neq q \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad q:=q+1  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(n=q)   }  }_{\color{black}{IF\ n&amp;gt;0 \ is\ a\ natural\ number\ }}&lt;br /&gt;
			\implies &lt;br /&gt;
			\underbrace{\boxed{\left\lbrace \begin{array}{l}&lt;br /&gt;
						m:=n \div 2^{\kappa(n)}; \\&lt;br /&gt;
%						(*\ \   m= 2^{\kappa(n)} (2 \rho(m)+1) \ \ *) \\&lt;br /&gt;
						\mathbf{while}\ m \neq 1 \\&lt;br /&gt;
						 \mathbf{do}  \\&lt;br /&gt;
						\quad m:=3 \cdot m +1;  \\&lt;br /&gt;
						\quad m:= m \div 2^{\kappa(m)}  \\&lt;br /&gt;
						\mathbf{od} 	 		&lt;br /&gt;
					\end{array}\right\rbrace(m=1)} }_{ {THEN\ the\ computation\   for\ n\ is\ finite\ FI} } &lt;br /&gt;
\end{array}   &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
F&amp;lt;small&amp;gt;unction &amp;lt;math&amp;gt;\kappa&amp;lt;/math&amp;gt; for a given natural number &amp;lt;math&amp;gt; n &amp;lt;/math&amp;gt; returns the multiplicity of 2 in the factorization of the number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;.&amp;lt;/small&amp;gt; &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Instead,  we are presenting an  rgument  showing that the proof can be   carried out in the calculus of programs  &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;. To achieve his goal  one has to construct an infinite tree &amp;lt;math&amp;gt;\mathcal{D}&amp;lt;/math&amp;gt;. The root of the tree is the halting  formula . The formula is the consequence of the  infinitary inference rule &amp;lt;math&amp;gt;R_3&amp;lt;/math&amp;gt; of the algorithmic logic &amp;lt;math&amp;gt;\mathcal{AL}&amp;lt;/math&amp;gt;.  For each premise one can construct a a finite subtree, i.e. a finite proof  which is  using one formula of the  set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt;.   \\&lt;br /&gt;
		 Note, that  that  the set &amp;lt;math&amp;gt;St_0&amp;lt;/math&amp;gt; is a recursive set  of formulas without variables and that all its elements are theorems of Presburger's arithmetic.&amp;lt;br /&amp;gt; &lt;br /&gt;
 end of Abstract 01/10/2025&lt;br /&gt;
&lt;br /&gt;
==Introduction==&lt;br /&gt;
Let's consider the statement&amp;lt;br/&amp;gt;&lt;br /&gt;
for every natural number &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt;, the following program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation.&amp;lt;br/&amp;gt;&lt;br /&gt;
&amp;lt;math&amp;gt;\color{blue}\qquad Cl:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
We begin by noting that the truth of the above statement entails the truth of Collatz's thesis as it was formulated before World War II. &amp;lt;br /&amp;gt;&lt;br /&gt;
But in 1937, neither computers nor programming languages existed.&amp;lt;br /&amp;gt;&lt;br /&gt;
On the other hand, the theory of algorithms did exist and was already well developed. The theory of recursive functions was developed in Göttingen (David Hilbert and his students), Budapest (Rozsza Pterer, Laszlo Kalmar), ...&amp;lt;br /&amp;gt;&lt;br /&gt;
In London, Alan Turing created the abstract Turing machine.&amp;lt;br /&amp;gt;&lt;br /&gt;
In Moscow, Kolmogorov and in Kazan, Maltsev explored the concept of a computable function.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
In Warsaw, Alfred Tarski, together with his students Mojżesz Presburger and Stanisław Jaskowski, obtained important results concerning the theory of addition of natural numbers.&lt;br /&gt;
&lt;br /&gt;
==Our observations from 2004==&lt;br /&gt;
* The Collatz algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; does not require multiplication or division operations. Multiplying by 3 (because 3x=x+x+x) and dividing by 2 (a simple algorithm adding every other 1 is sufficient), is sufficient.&lt;br /&gt;
* In the algebraic structure &amp;lt;math&amp;gt;\mathfrak{M}&amp;lt;/math&amp;gt;, which is a non-standard model of the elementary theory of addition of natural numbers (there is one, see below), the algorithm &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has an infinite computation for many arguments.&lt;br /&gt;
* Therefore, the Collatz theorem cannot be proven based on the axioms of the elementary theory of addition of natural numbers.&lt;br /&gt;
* Moreover, in the language of elementary theory of addition, there is no stopping formula for the Collatz algorithm! It is a corollary from the Goedel incompleteness theorem. &amp;lt;br /&amp;gt;&lt;br /&gt;
So what do we have to prove?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Have a look==&lt;br /&gt;
 [ [File:https://lem12.uksw.edu.pl/wiki/Plik:Collatz_tree.png ]]&lt;br /&gt;
&lt;br /&gt;
==Correct formulation of the Collatz theorem==&lt;br /&gt;
In the standard structure of natural numbers with the addition operation,&lt;br /&gt;
our program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; has a finite computation for each argument ''n''.&lt;br /&gt;
&lt;br /&gt;
==Stop formula==&lt;br /&gt;
i.e.&lt;br /&gt;
=== A necessary and sufficient condition for the computation to be finite===&lt;br /&gt;
Therefore, we need to create a formula &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; (a logical expression) such that it evaluates to true if and only if the computation of the program &amp;lt;math&amp;gt;Cl&amp;lt;/math&amp;gt; is finite. There are many such formulas in the language of program calculation, i.e. algorithmic logic.&amp;lt;br/&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \theta:\,\left\{\begin{array}{l} \mathbf{while}\ n \neq 0 \ \mathbf{do} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{od} \end{array}\right\} (n=1) &amp;lt;/math&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
The value of the &amp;lt;math&amp;gt;\theta&amp;lt;/math&amp;gt; formula depends only on the initial value of the &amp;quot;n&amp;quot; variable. This formula is satisfied by the value of the variable &amp;quot;n&amp;quot; if and only if the evaluation of the while ... program is finished and the final value of the variable &amp;quot;n&amp;quot; is equal to 1. &amp;lt;br /&amp;gt;&lt;br /&gt;
Other formulas can also be considered, e.g., &amp;lt;br /&amp;gt;&lt;br /&gt;
,&amp;lt;math&amp;gt;\qquad \xi:\,\bigcup \left\{\overbrace{\begin{array}{l} \mathbf{if}\ n \neq 0 \ \mathbf{then} \\&lt;br /&gt;
\quad \mathbf{if}\ odd(n) \ \mathbf{then}\ n:=3n+1 \ \mathbf{else}\ n:=n/2\ \mathbf{fi} \\&lt;br /&gt;
\mathbf{fi} \end{array} }^{K}\right\} (n=1) &amp;lt;/math&amp;gt; &amp;lt;br /&amp;gt;&lt;br /&gt;
{co reads: &amp;quot;there exists an iteration &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; of the program &amp;lt;math&amp;gt;K&amp;lt;/math&amp;gt; such that after executing &amp;lt;math&amp;gt;K^i&amp;lt;/math&amp;gt; the equality &amp;lt;math&amp;gt;n=1&amp;lt;/math&amp;gt; is satisfied.&amp;quot;} &amp;lt;br/&amp;gt;&lt;br /&gt;
In other words, we are dealing with an upper bound on the values of the formulas &amp;lt;math&amp;gt;K^i(n=1)&amp;lt;/math&amp;gt;, where &amp;lt;math&amp;gt;i= 0,1,2 \dots&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The second part of the problem is much more difficult: we must prove the stopping formula using the axioms of program calculus and the axioms of the algorithmic theory of natural numbers.&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
==Elementary Theory of Addition of Natural Numbers==&lt;br /&gt;
The previous observation that Collatz's theorem cannot be proved in this theory remains valid. However, the properties of the non-standard model of this theory and a few of its theorems will be helpful in further considerations.&amp;lt;br /&amp;gt;&lt;br /&gt;
&amp;lt;br /&amp;gt;&lt;br /&gt;
This theory is defined by specifying three components:&lt;br /&gt;
*  the language,&lt;br /&gt;
* the logic, i.e., the consequence operation, and &lt;br /&gt;
* the axioms specific to this theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Language.''' The expressions of the language are composed of the following symbols: variable symbols, e.g., x, y, n, the + symbol for a binary operation, the = symbol for a binary relation, constant symbols, logical functor symbols, and auxiliary symbols, e.g., parentheses.&amp;lt;br /&amp;gt;&lt;br /&gt;
. Examples of expressions are...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Logic.''' The consequence (inference) operation is determined by specifying the axioms of first-order logic and the rules of inference.&amp;lt;br /&amp;gt;&lt;br /&gt;
'''Axioms.'''&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{align} &lt;br /&gt;
		\tag{a}   \forall_x\ x+1 &amp;amp;\neq 0  \\&lt;br /&gt;
		\tag{b}   \forall_x\, \forall_y\ x+1=y+1 &amp;amp;\implies  x=y  \\&lt;br /&gt;
		\tag{c}   \forall_{x}\ x+0&amp;amp;=x  \\&lt;br /&gt;
		\tag{d}   \forall_{x,y}\ (y+1)+x&amp;amp;=(y+x)+1  \\&lt;br /&gt;
		\tag{I}    \Phi(0)\land \forall_x\,[\Phi(x) \implies \Phi(x+1)]&amp;amp;\implies \forall_x\Phi(x)   &lt;br /&gt;
	\end{align}    &lt;br /&gt;
  &amp;lt;/math&amp;gt;&lt;br /&gt;
	The expression &amp;lt;math&amp;gt;\Phi(x)&amp;lt;/math&amp;gt; may be replaced by any formula.   The result is an axiom of theory &lt;br /&gt;
	This is the induction scheme.   &amp;lt;br /&amp;gt;&lt;br /&gt;
  	We augment the set of axioms adding four axioms that define a coiple of useful notions. &amp;lt;br /&amp;gt;&lt;br /&gt;
   &amp;lt;math&amp;gt;&lt;br /&gt;
	\begin{align}&lt;br /&gt;
	  	\tag{e}  even(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y  \\&lt;br /&gt;
	%	\tag{o}  odd(x) &amp;amp;\stackrel{df}{\equiv} \exists_y\, x=y+y+1  \\&lt;br /&gt;
	%	\tag{D2}  x\, div\, 2 = y &amp;amp;\equiv (x=y+y\, \lor\, x=y+y+1)  \\&lt;br /&gt;
	%	\tag{3x}  3x&amp;amp;\stackrel{df}{=} x+x+x&lt;br /&gt;
	\end{align} &lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
'''Models of Presburger Arithmetic'''&amp;lt;br /&amp;gt;&lt;br /&gt;
As expected, the sequence of standard values 0, 1, 2, 3, ... is a model of this theory.&lt;br /&gt;
&lt;br /&gt;
Stanisław Jaśkowski discovered another, nonstandard model of Presburger arithmetic in 1929.&lt;br /&gt;
&lt;br /&gt;
[[File:MonStandardModel.png|center|thumb|600px|Nonstandard model of Presburger arithmetic]]&lt;br /&gt;
The universe of the model is a subset of the set of complex numbers &amp;lt;math&amp;gt;a+\math b&amp;lt;/math&amp;gt;&lt;br /&gt;
where &amp;lt;math&amp;gt;a \in \mathbb{Z} &amp;lt;/math&amp;gt; i.e. a is an integer number and &amp;lt;math&amp;gt;b \in \mathbb{Q}^+ &amp;lt;/math&amp;gt; is a positive rational number. Additionally, whenever &amp;lt;math&amp;gt;b=0 &amp;lt;/math&amp;gt; we have &amp;lt;math&amp;gt;a&amp;gt;0&amp;lt;/math&amp;gt;.&lt;br /&gt;
Addition is defined as usual addition of complex numbers.&lt;br /&gt;
&lt;br /&gt;
Both models are computable. There are also unpredictable models with arbitrarily high power.&lt;br /&gt;
&lt;br /&gt;
==Algorithmic Theory of Natural Numbers==&lt;br /&gt;
* Language. The alphabet of a language contains a set of variables, e.g., x,y. a functor + a two-argument addition operation, two constants 0 and 1, a relation sign = equality.&amp;lt;br /&amp;gt;&lt;br /&gt;
Terms (i.e., nomenclature expressions): this is the smallest set of expressions containing variables, constants, and closed under the combination of two terms in this way (t1 + t2).&amp;lt;br /&amp;gt;&lt;br /&gt;
Formulae.&lt;br /&gt;
* Logic. Program calculus. Program calculus includes first-order logic. In addition to first-order formulas, the language of program calculus also contains algorithmic formulas. The simplest such formula is a string consisting of a program and a formula (usually a first-order formula) following it.&lt;br /&gt;
To the axioms of first-order logic, axioms describing the properties of program-generating connectives should be added; see [[Algorithmic Logic]].&lt;br /&gt;
To the inference rules of first-order logic, rules specific to program calculus should be added.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
* Axioms of the theory.&amp;lt;br /&amp;gt;&lt;br /&gt;
Only three formulas.&amp;lt;br /&amp;gt; &lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
\begin{eqnarray}&lt;br /&gt;
\tag{ATN1} \forall_x\, x+1 \neq 0 &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN2} \forall_{x,y}\,x+1=y+1 \implies x=y &amp;amp;&amp;amp;\\&lt;br /&gt;
\tag{ATN3}\forall_x\, \{y :=0; \mathbf{while}\ y\neq x\ \mathbf{do}\ y:=y+1\ \mathbf{od} \}\,(y=x) &amp;amp;&amp;amp;&lt;br /&gt;
\end{eqnarray} &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
These are essentially the axioms of the successor theory.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN1 formula states that 0 is not the successor of any natural number.&amp;lt;br/&amp;gt;&lt;br /&gt;
The ATN2 formula states that the successor is a one-to-one function.&amp;lt;br/&amp;gt;&lt;br /&gt;
The formula ATN3 states that every natural number is ''reachable'' from zero by adding a finite number of ones.&amp;lt;br/&amp;gt;&lt;br /&gt;
In this theory, one can write definitions for addition, multiplication, and any computable function.&lt;br /&gt;
&lt;br /&gt;
==Analiza formuły stopu==&lt;br /&gt;
xxx&lt;br /&gt;
&lt;br /&gt;
==Trójki ==&lt;br /&gt;
Spostrzeżenie (wynikłe z przygladania się formule stopu).&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\forall_{n \neq 0} \exists_{x,y,z}\ n \cdot 3^x+y=2^z  &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Drzewo Collatza==&lt;br /&gt;
[[Plik:StratDrzewoCollatza.png|thumb|center |750px| Rys. 1  Fragmenty warstw &amp;lt;math&amp;gt;W_0, \dots W_4  &amp;lt;/math&amp;gt; drzewa Collatza ]]&lt;br /&gt;
&lt;br /&gt;
==Własności obliczeń na trójkach==&lt;br /&gt;
Tutaj napiszemy więcej&amp;lt;br /&amp;gt;&lt;br /&gt;
==Kalejdoskop==&lt;br /&gt;
&lt;br /&gt;
Oglądaj rysunki, wykonuj obliczenia, rozwiązuj zadania, formułuj swoje zdanie, próbuj je uzasadnić, ...&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Tu znajdziesz ....&amp;lt;br /&amp;gt;&lt;br /&gt;
===Obliczenia utemperowane===&lt;br /&gt;
[[Plik:ObliczN19.pdf.png|thumb|center|750px|Utemperowane obliczenie dla n=76]]&lt;br /&gt;
Trzy zadania. Odpowiedz czy są one jakos powiązane?&amp;lt;br /&amp;gt;&lt;br /&gt;
* Masz do dyspozycji bardzo wiele trójkątnych płytek, w dwu kolorach. &lt;br /&gt;
Czy potrafisz ułożyć chodnik łączący posesje o numerze n z numerem 1?&lt;br /&gt;
*[[Ułamek piętrowy]]&lt;br /&gt;
* Czy obliczenie 3x+1 jest skończone dla każdej liczby naturalnej?&lt;br /&gt;
&lt;br /&gt;
===Struktury algebraiczne===&lt;br /&gt;
Struktura liczb naturalnych. &amp;lt;br /&amp;gt;&lt;br /&gt;
Algebra Jaśkowskiego.&amp;lt;br /&amp;gt;&lt;br /&gt;
===Teorie===&lt;br /&gt;
elementarna teoria liczb naturalnych z dodawaniem.&amp;lt;br /&amp;gt;&lt;br /&gt;
algorytmiczna teoria  liczb naturalnych&amp;lt;br /&amp;gt;&lt;br /&gt;
===Zadania===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\alpha&amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Archiwum kolejnych wersji pracy ==&lt;br /&gt;
[CollatzConjecturebecomesTheorem11Aug23    http://lem12.uksw.edu.pl/images/3/3b/CollatzConjecturebecomesTheorem11Aug23.pdf]&lt;br /&gt;
&lt;br /&gt;
[https://dx.doi.org/10.2139/ssrn.4158238 \On Collatz theorem II.pdf wersja z 5 czerwca 2022 ]&lt;br /&gt;
&lt;br /&gt;
][http://lem12.uksw.edu.pl/images/a/ab/On-Collatz-thm17-09-21.pdf wersja z 20 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/7/7d/Algorytmy-bliskie-Collatzowi.pdf  algorytmy wokół Collatzowe]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/c/c0/On-Collatz-thm-27-09-21.pdf  wersja z 27 wrzesnia 2021]&lt;br /&gt;
&lt;br /&gt;
[http://lem12.uksw.edu.pl/images/8/8f/On-Collatz-thm-7-10-21.pdf   wersja z 7 pażdziernika 2021]&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Plik:GraphHC.png</id>
		<title>Plik:GraphHC.png</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Plik:GraphHC.png"/>
				<updated>2026-08-10T11:52:34Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Lemma ===&lt;br /&gt;
The graph &amp;lt;math&amp;gt;HC&amp;lt;/math&amp;gt; is a tree '''iff''' the tree Cl contains all natural numbers.&lt;br /&gt;
-----&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Plik:GraphHC.png</id>
		<title>Plik:GraphHC.png</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Plik:GraphHC.png"/>
				<updated>2026-08-10T11:51:56Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Lemma ===&lt;br /&gt;
The graph &amp;lt;math&amp;gt;HC&amp;lt;/math&amp;gt; is a tree '''iff''' the tree Cl contains all natural numbers.&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	<entry>
		<id>https://lem12.uksw.edu.pl/wiki/Plik:GraphGoddnumbers.png</id>
		<title>Plik:GraphGoddnumbers.png</title>
		<link rel="alternate" type="text/html" href="https://lem12.uksw.edu.pl/wiki/Plik:GraphGoddnumbers.png"/>
				<updated>2026-08-10T11:47:01Z</updated>
		
		<summary type="html">&lt;p&gt;AndrzejSalwicki: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=== Definition of the graph  G  ===&lt;br /&gt;
&amp;lt;math&amp;gt; \color{blue}G=\langle V,E \rangle &amp;lt;/math&amp;gt;&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The set of all odd natural numbers constitutes the set &amp;lt;math&amp;gt;V&amp;lt;/math&amp;gt;.&amp;lt;br /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
A pair &amp;lt;math&amp;gt;\langle  n,m\rangle &amp;lt;/math&amp;gt; of odd numbers is an edge iff &amp;lt;math&amp;gt;n&amp;lt;/math&amp;gt; is indivisible by 3 and  there exists the natural number &amp;lt;math&amp;gt;i&amp;gt;0&amp;lt;/math&amp;gt; such that &amp;lt;math&amp;gt;\color{blue} m=\frac{n\cdot 2^{2i-(n \mod 3)-1}-1}{3}&amp;lt;/math&amp;gt;&lt;br /&gt;
=== Lemma ===&lt;br /&gt;
The graph &amp;lt;math&amp;gt;G&amp;lt;/math&amp;gt; is a tree iff the graph &amp;lt;math&amp;gt;HC&amp;lt;/math&amp;gt; is a tree.&lt;br /&gt;
-----&lt;/div&gt;</summary>
		<author><name>AndrzejSalwicki</name></author>	</entry>

	</feed>