算術だけから(土台)
import /Freeks/basis.book
この本は、集合を使わずに、自然数の公理(Peano)だけから算術を作る。Freek1 の論理記号の節(第1節)だけを引く。集合の語もクラスも出てこない。
帰納法は、性質に「命題変数」を代入して使う schema \(\mathrm{IND}\) で書く(\(n \mathrel{P} c\) の \(c\) は、使わなくてよいパラメータ)。\(n\) 個の数のような補助の変数は、代入式の中で \(\forall\) を付けて閉じる。
1 自然数の公理
word(,s) …
\(0\)word(s,s) …
\(\textit{+1}\)word(ss,s) …
\(+\)word(ss,s) …
\(\cdot\)Ax0 …
\(\forall x \, x \textit{+1} \neq 0\) AxS …
\(\forall x , y \, ( x \textit{+1} = y \textit{+1} \Longrightarrow x = y )\) Ax+0 …
\(\forall x \, x + 0 = x\) Ax+S …
\(\forall x , y \, x + y \textit{+1} = ( x + y ) \textit{+1}\) Ax⋅0 …
\(\forall x \, x \cdot 0 = 0\) Ax⋅S …
\(\forall x , y \, x \cdot y \textit{+1} = ( x \cdot y ) + x\) schema IND(??p^;n,c) :=
\(\forall c \, 0 \mathbin{p} c , \forall n , c \, ( n \mathbin{p} c \Longrightarrow n \textit{+1} \mathbin{p} c ) \Longrightarrow \forall n , c \, n \mathbin{p} c\) 2 加法の法則
L0+ …
\(\forall x \, 0 + x = x\) \(\blacktriangleleft\) Ax+0 ,Ax+S ,INDLS+ …
\(\forall x , y \, x \textit{+1} + y = ( x + y ) \textit{+1}\) \(\blacktriangleleft\) Ax+0 ,Ax+S ,INDL+C …
\(\forall x , y \, x + y = y + x\) \(\blacktriangleleft\) Ax+0 ,Ax+S ,L0+ ,LS+ ,INDL+A …
\(\forall x , y , z \, ( x + y ) + z = x + ( y + z )\) \(\blacktriangleleft\) Ax+S ,Ax+0 ,IND3 乗法の法則
L0⋅ …
\(\forall x \, 0 \cdot x = 0\) \(\blacktriangleleft\) Ax⋅0 ,Ax⋅S ,Ax+0 ,INDLS⋅ …
\(\forall x , y \, x \textit{+1} \cdot y = ( x \cdot y ) + y\) \(\blacktriangleleft\) Ax⋅0 ,Ax⋅S ,Ax+0 ,Ax+S ,L+A ,L+C ,INDL⋅C …
\(\forall x , y \, x \cdot y = y \cdot x\) \(\blacktriangleleft\) Ax⋅0 ,Ax⋅S ,L0⋅ ,LS⋅ ,INDL⋅D …
\(\forall x , y , z \, x \cdot ( y + z ) = ( x \cdot y ) + ( x \cdot z )\) \(\blacktriangleleft\) Ax⋅S ,Ax+0 ,Ax+S ,Ax⋅0 ,L+A ,L+C ,INDL⋅A …
\(\forall x , y , z \, ( x \cdot y ) \cdot z = x \cdot ( y \cdot z )\) \(\blacktriangleleft\) Ax⋅S ,Ax⋅0 ,L⋅D ,INDL⋅1 …
\(\forall x \, x \cdot 0 \textit{+1} = x\) \(\blacktriangleleft\) Ax⋅0 ,Ax⋅S ,L0+L1⋅ …
\(\forall x \, 0 \textit{+1} \cdot x = x\) \(\blacktriangleleft\) L⋅C ,L⋅14 場合分けと偶奇
CASE …
\(\forall x \, ( x = 0 \mathbin{\rm o\!r} \exists y \, x = y \textit{+1} )\) \(\blacktriangleleft\) INDLSS …
\(\forall x \, x \textit{+1} + x \textit{+1} = ( x + x ) \textit{+1} \textit{+1}\) \(\blacktriangleleft\) Ax+S ,LS+C+ …
\(\forall x , y , z \, ( x + y = x + z \Longrightarrow y = z )\) \(\blacktriangleleft\) AxS ,LS+ ,L0+ ,INDC+0 …
\(\forall x , y \, ( x + y = 0 \Longrightarrow x = 0 )\) \(\blacktriangleleft\) Ax0 ,Ax+0 ,Ax+S ,CASEEV …
\(\forall x \, \exists c \, ( x = c + c \mathbin{\rm o\!r} x = ( c + c ) \textit{+1} )\) \(\blacktriangleleft\) Ax+0 ,LSS ,INDEO …
\(\forall x , y \, x + x \neq ( y + y ) \textit{+1}\) \(\blacktriangleleft\) Ax0 ,AxS ,Ax+0 ,LSS ,CASE ,INDDC …
\(\forall x , y \, ( x + x = y + y \Longrightarrow x = y )\) \(\blacktriangleleft\) Ax0 ,AxS ,Ax+0 ,LSS ,CASE ,C+0 ,IND