Main derivation
S01 · implies
Before
p=7
After
7>2,\quad2\nmid7,\quad\sqrt7<3\Rightarrow7\text{ odd prime}Conditions: none
Rule: calc · Uses: G1
Leaf basis: calc
The only prime candidate below the square-root bound is 2, which does not divide 7, qualifying the domain.
S02 · implies
Before
a=-5
After
a\equiv2\pmod7,\quad0<2<7
Conditions: none
Rule: calc · Uses: G1, S01
Leaf basis: calc
Normalize the negative integer first to nonzero class 2.
S03 · implies
Before
x=1,2,3
After
1^2\equiv1,\quad2^2\equiv4,\quad3^2\equiv2\pmod7
Conditions: none
Rule: calc · Uses: G1, S01
Leaf basis: calc
The first half of the table computes to 1,4,2.
S04 · implies
Before
x=4,5,6
After
\begin{array}{c|rrrrrr}x&1&2&3&4&5&6\\\hline x^2\bmod7&1&4&2&2&4&1\end{array}Conditions: none
Rule: calc · Uses: G1, S03
Leaf basis: calc
The remaining squares 16,25,36 have residues 2,4,1, completing all six entries.
S05 · implies
Before
\begin{array}{c|rrrrrr}x&1&2&3&4&5&6\\\hline x^2\bmod7&1&4&2&2&4&1\end{array}After
Q_7=\{1,2,4\},\quad N_7=\{3,5,6\}Conditions: none
Rule: calc · Uses: G1, S04
Leaf basis: calc
Deduplicating square values gives all residues, and the remaining nonzero classes are nonresidues.
S06 · implies
Before
a\equiv2\pmod7
After
\operatorname{roots}(2)=\{3,4\},\quad\operatorname{roots}(1)=\{1,6\},\quad\operatorname{roots}(4)=\{2,5\}Conditions: none
Rule: calc · Uses: G1, S02, S05
Leaf basis: calc
The full table gives both roots of each square class, paired as x and -x.
S07 · implies
Before
a=3,\quad3\notin\{1,2,4\}After
x^2\not\equiv3\pmod7\text{ for every }x\in\mathbb ZConditions: none
Rule: mko_definition · Uses: G1, S04, S05
Leaf basis: mko_definition
Every nonzero root class is listed, and zero squares to 0, so no integer root exists.
S08 · implies
Before
p=2\text{ or }m=8After
\operatorname{roots}_{2}(1)=\{1\};\quad\operatorname{roots}_{8}(1)=\{1,3,5,7\}Conditions: none
Rule: calc · Uses: G1, S01, S06
Leaf basis: calc
The even prime has one root, while composite 8 has four, making the odd-prime boundary explicit.