Euler's criterion (preparation for the law of quadratic reciprocity #7)
import /Freeks/18.book
1 #7 Law of quadratic reciprocity (preparation: Fermat's little theorem and the first half of Euler's criterion) forget
The goal is the law of quadratic reciprocity. As preparation, this book shows Fermat's little theorem (from Euler's theorem in 18.book) and, for a prime \(p = 2h + 1\), \(a^h \equiv \pm 1\), and, if \(a\) is a quadratic residue, \(a^h \equiv 1\). As in 18.book, congruence is written as a natural-number equation \(x + p i = y + p j\).
1.1 Fermat's little theorem
A1 …
\(p \in \mathbb{P} , d \in \mathbb{M} , d \mid p \Longrightarrow d \neq 0\) \(\blacktriangleleft\) Lℙ ,⋅0𝕄 ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤA2 …
\(p \in \mathbb{P} , d \in \mathbb{M} , d \neq 0 , d \mid p \Longrightarrow d = 1 \mathbin{\rm o\!r} d = p\) \(\blacktriangleleft\) ℙ.' ,^×. ,\(\mathbb{W}.\) ,AxℤA3 …
\(p \in \mathbb{P} , x , d \in \mathbb{M} , x \neq 0 , x < p , p \mid x \Longrightarrow {\perp}\) \(\blacktriangleleft\) ∣≤ ,L<≤ ,L<+1 ,Lℙ ,^×. ,\(\mathbb{W}.\) ,AxℤFRa …
\(p \in \mathbb{P} , x , d \in \mathbb{M} , x \neq 0 , x < p , d \mid x , d \mid p \Longrightarrow d = 1\) \(\blacktriangleleft\) A1 ,A2 ,A3FRb …
\(p \in \mathbb{P} , x \in \mathbb{M} , x < p , \forall d \in \mathbb{M} . ( d \mid x , d \mid p \Longrightarrow d = 1 ) \Longrightarrow x \neq 0\) \(\blacktriangleleft\) Lℙ ,⋅0X ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤFa …
\(x \in \mathbb{M} , x \neq 0 \Longrightarrow 1 \le x\) \(\blacktriangleleft\) 𝕄0-' ,≤.' ,ℤ+ ,\(\mathbb{W}.\) ,AxℤFb …
\(x , k \in \mathbb{M} , x < k + 1 \Longrightarrow x \le k\) \(\blacktriangleleft\) Lpred ,<. ,L≤r ,\(\mathbb{W}.\) ,AxℤFRc1 …
\(p , k , x \in \mathbb{M} , p = k + 1 , x \neq 0 , x < p \Longrightarrow x \in 1 \mathinner{\ldotp\ldotp} k\) \(\blacktriangleleft\) Fa ,Fb ,...' ,\(\mathbb{W}.\) ,AxℤFc …
\(x \in 1 \mathinner{\ldotp\ldotp} k \Longrightarrow x \neq 0\) \(\blacktriangleleft\) L≤0 ,𝕄0' ,...' ,\(\mathbb{W}.\) ,AxℤFd …
\(p , k , x \in \mathbb{M} , p = k + 1 , x \in 1 \mathinner{\ldotp\ldotp} k \Longrightarrow x < p\) \(\blacktriangleleft\) L≤< ,L<+1 ,...' ,\(\mathbb{W}.\) ,AxℤFe …
\(x \in 1 \mathinner{\ldotp\ldotp} k \Longrightarrow x \in \mathbb{M}\) \(\blacktriangleleft\) ...' ,≤.' ,+𝕄:2 ,\(\mathbb{W}.\) ,AxℤFR1 …
\(p , k \in \mathbb{M} , p \in \mathbb{P} , p = k + 1 , R = \{ r \in \mathbb{M} \mid r < p , \forall d \in \mathbb{M} . ( d \mid r , d \mid p \Longrightarrow d = 1 ) \} , x \in R \Longrightarrow x \in 1 \mathinner{\ldotp\ldotp} k\) \(\blacktriangleleft\) FRb ,FRc1 ,\(\mathbb{W}.\) ,AxℤFR2 …
\(p , k \in \mathbb{M} , p \in \mathbb{P} , p = k + 1 , R = \{ r \in \mathbb{M} \mid r < p , \forall d \in \mathbb{M} . ( d \mid r , d \mid p \Longrightarrow d = 1 ) \} , x \in 1 \mathinner{\ldotp\ldotp} k \Longrightarrow x \in R\) \(\blacktriangleleft\) FRa ,Fc ,Fd ,Fe ,\(\mathbb{W}.\) ,AxℤFR3 …
\(p , k \in \mathbb{M} , p \in \mathbb{P} , p = k + 1 , R = \{ r \in \mathbb{M} \mid r < p , \forall d \in \mathbb{M} . ( d \mid r , d \mid p \Longrightarrow d = 1 ) \} \Longrightarrow R \stackrel{\#}= 1 \mathinner{\ldotp\ldotp} k\) \(\blacktriangleleft\) FR1 ,FR2 ,=#:R ,=. ,=_. ,\(\mathbb{W}.\) ,AxℤFermat's little theorem: for a prime \(p = k + 1\) such that \(p\) does not divide \(a\), \(a^{p-1} \equiv 1 \pmod p\). In Euler's theorem (18.book), take \(m = p\) and \(\varphi(p) = k\).
Fermat …
\(a , p , k \in \mathbb{M} , p \in \mathbb{P} , p = k + 1 , \neg ( p \mid a ) , R = \{ r \in \mathbb{M} \mid r < p , \forall d \in \mathbb{M} . ( d \mid r , d \mid p \Longrightarrow d = 1 ) \} \Longrightarrow \exists q , q' \in \mathbb{M} . a ^ k + p \cdot q = 1 + p \cdot q'\) \(\blacktriangleleft\) A1 ,A2 ,FR3 ,Lℙ ,\(a , m , k \in \mathbb{M} , m \neq 0 , \forall d \in \mathbb{M} . ( d \mid a , d \mid m \Longrightarrow d = 1 ) , R = \{ r \in \mathbb{M} \mid r < m , \forall d \in \mathbb{M} . ( d \mid r , d \mid m \Longrightarrow d = 1 ) \} , R \stackrel{\#}= 1 \mathinner{\ldotp\ldotp} k \Longrightarrow \exists q , q' \in \mathbb{M} . a ^ k + m \cdot q = 1 + m \cdot q'\) ,\(\mathbb{W}.\) ,Axℤ1.2 Euler's criterion (half)
Law of sum of powers \(x^{m+n} = x^m x^n\) (induction on \(n\)).
PW …
\(x , m \in \mathbb{M} \Longrightarrow \forall n \in \mathbb{M} . x ^ { m + n } = x ^ m \cdot x ^ n\) \(\blacktriangleleft\) ⋅𝕄:D ,↑0X ,↑s𝕄 ,↑∈𝕄 ,\(\mathbb{W}.\) ,AxℤFermat2 …
\(a , p , k \in \mathbb{M} , p \in \mathbb{P} , p = k + 1 , \neg ( p \mid a ) \Longrightarrow \exists q , q' \in \mathbb{M} . a ^ k + p \cdot q = 1 + p \cdot q'\) \(\blacktriangleleft\) Fermat ,ax_s ,\(\mathbb{W}.\) ,AxℤLcl …
\(A , B , C \in \mathbb{M} , A + B = A + C \Longrightarrow B = C\) \(\blacktriangleleft\) \(\mathbb{W}.\) ,AxℤT2 …
\(h \in \mathbb{M} \Longrightarrow 2 \cdot h = h + h\) \(\blacktriangleleft\) ⋅𝕄:D ,2. ,\(\mathbb{W}.\) ,AxℤE2a …
\(y , p , q , q' \in \mathbb{M} , ( y + 1 ) \cdot ( y + 1 ) + p \cdot q = 1 + p \cdot q' \Longrightarrow y \cdot ( ( y + 1 ) + 1 ) + p \cdot q = p \cdot q'\) \(\blacktriangleleft\) Lcl ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤE2b …
\(p , Y , q , q' \in \mathbb{M} , Y + p \cdot q = p \cdot q' \Longrightarrow p \mid Y\) \(\blacktriangleleft\) ∣sub ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤE2c …
\(p \in \mathbb{P} , y \in \mathbb{M} , p \mid y \cdot ( ( y + 1 ) + 1 ) \Longrightarrow p \mid y \mathbin{\rm o\!r} p \mid ( y + 1 ) + 1\) \(\blacktriangleleft\) Euclid ,+𝕄:2 ,\(\mathbb{W}.\) ,AxℤE2 …
\(p \in \mathbb{P} , y , q , q' \in \mathbb{M} , ( y + 1 ) \cdot ( y + 1 ) + p \cdot q = 1 + p \cdot q' \Longrightarrow \exists s , s' \in \mathbb{M} . ( y + 1 ) + p \cdot s = 1 + p \cdot s' \mathbin{\rm o\!r} \exists t \in \mathbb{M} . ( y + 1 ) + 1 = p \cdot t\) \(\blacktriangleleft\) E2a ,E2b ,E2c ,Lℙ ,∣. ,⋅0X ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤE3a …
\(p , q , q' \in \mathbb{M} , p \cdot q = 1 + p \cdot q' \Longrightarrow p \mid 1\) \(\blacktriangleleft\) ∣sub ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤE3 …
\(p \in \mathbb{P} , q , q' \in \mathbb{M} , 0 \cdot 0 + p \cdot q = 1 + p \cdot q' \Longrightarrow {\perp}\) \(\blacktriangleleft\) E3a ,ℙ∤1 ,⋅0𝕄 ,⋅𝕄:D ,Lℙ ,ℙ.' ,\(\mathbb{W}.\) ,AxℤEC0a …
\(p \in \mathbb{P} , x , q , q' \in \mathbb{M} , x \cdot x + p \cdot q = 1 + p \cdot q' \Longrightarrow x \neq 0\) \(\blacktriangleleft\) E3 ,\(\mathbb{W}.\) ,AxℤEC0 …
\(p \in \mathbb{P} , x , q , q' \in \mathbb{M} , x \cdot x + p \cdot q = 1 + p \cdot q' \Longrightarrow \exists s , s' \in \mathbb{M} . x + p \cdot s = 1 + p \cdot s' \mathbin{\rm o\!r} \exists t \in \mathbb{M} . x + 1 = p \cdot t\) \(\blacktriangleleft\) E2 ,EC0a ,𝕄0-' ,\(\mathbb{W}.\) ,AxℤHalf of Euler's criterion: if \(p = 2h + 1\) is prime and \(p \nmid a\), then \(a^h \equiv 1\) or \(a^h \equiv -1 \pmod p\) (\(a^{2h} \equiv 1\), Fermat).
EC …
\(a , p , h \in \mathbb{M} , p \in \mathbb{P} , p = 2 \cdot h + 1 , \neg ( p \mid a ) \Longrightarrow \exists s , s' \in \mathbb{M} . a ^ h + p \cdot s = 1 + p \cdot s' \mathbin{\rm o\!r} \exists t \in \mathbb{M} . a ^ h + 1 = p \cdot t\) \(\blacktriangleleft\) Fermat2 ,PW ,T2 ,EC0 ,↑∈𝕄 ,\(\mathbb{W}.\) ,Axℤ1.3 If a is a quadratic residue then a^h ≡ 1
Power of a product \((xy)^n = x^n y^n\) (induction on \(n\)).
PM …
\(x , y \in \mathbb{M} \Longrightarrow \forall n \in \mathbb{M} . ( x \cdot y ) ^ n = x ^ n \cdot y ^ n\) \(\blacktriangleleft\) ⋅𝕄:D ,↑0X ,↑s𝕄 ,↑∈𝕄 ,\(\mathbb{W}.\) ,AxℤThe first two terms of the binomial expansion: \((a + d)^n = a^n + d r\) (\(r\) is a natural number).
LPW …
\(a , d \in \mathbb{M} \Longrightarrow \forall n \in \mathbb{M} . \exists r \in \mathbb{M} . ( a + d ) ^ n = a ^ n + d \cdot r\) \(\blacktriangleleft\) ⋅𝕄:D ,⋅0X ,↑0X ,↑s𝕄 ,↑∈𝕄 ,+𝕄:2 ,\(\mathbb{W}.\) ,AxℤQA …
\(A , B , R , S , q , q' , p \in \mathbb{M} , A + p \cdot R = B + p \cdot S , B + p \cdot q = 1 + p \cdot q' \Longrightarrow \exists s , s' \in \mathbb{M} . A + p \cdot s = 1 + p \cdot s'\) \(\blacktriangleleft\) ⋅𝕄:D ,+𝕄:2 ,\(\mathbb{W}.\) ,AxℤQB1 …
\(x , a , i , j , p \in \mathbb{M} , p \mid x , x \cdot x + p \cdot i = a + p \cdot j \Longrightarrow p \mid a + p \cdot j\) \(\blacktriangleleft\) ∣M ,∣+ ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤMC …
\(m , x \in \mathbb{M} \Longrightarrow m \cdot x \in \mathbb{M}\) \(\blacktriangleleft\) ⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤQB2 …
\(a , j , p \in \mathbb{M} , p \mid a + p \cdot j \Longrightarrow p \mid a\) \(\blacktriangleleft\) ∣sub ,∣. ,⋅𝕄:D ,\(\mathbb{W}.\) ,AxℤQB …
\(p \in \mathbb{P} , x , a , i , j \in \mathbb{M} , \neg ( p \mid a ) , x \cdot x + p \cdot i = a + p \cdot j \Longrightarrow \neg ( p \mid x )\) \(\blacktriangleleft\) QB1 ,QB2 ,Lℙ ,\(\mathbb{W}.\) ,AxℤIf \(x^2 \equiv a\), then \(a^h \equiv x^{2h} \equiv 1\) (if \(a\) is a quadratic residue, the sign in Euler's criterion is \(+\)).
QRE …
\(a , p , h , x , i , j \in \mathbb{M} , p \in \mathbb{P} , p = 2 \cdot h + 1 , \neg ( p \mid a ) , x \cdot x + p \cdot i = a + p \cdot j \Longrightarrow \exists s , s' \in \mathbb{M} . a ^ h + p \cdot s = 1 + p \cdot s'\) \(\blacktriangleleft\) QA ,QB ,Fermat2 ,PW ,PM ,LPW ,T2 ,MC ,+𝕄:2 ,↑∈𝕄 ,⋅𝕄:D ,\(\mathbb{W}.\) ,Axℤ