Description: The Legendre symbol is nonzero (and hence equal to 1 or -u 1 ) precisely when the arguments are coprime. (Contributed by Mario Carneiro, 5-Feb-2015)
Ref | Expression | ||
---|---|---|---|
Assertion | lgsabs1 | |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | lgscl | |
|
2 | 1 | zcnd | |
3 | 2 | abscld | |
4 | 1re | |
|
5 | letri3 | |
|
6 | 3 4 5 | sylancl | |
7 | lgsle1 | |
|
8 | 7 | biantrurd | |
9 | nnne0 | |
|
10 | nn0abscl | |
|
11 | 1 10 | syl | |
12 | elnn0 | |
|
13 | 11 12 | sylib | |
14 | 13 | ord | |
15 | 14 | necon1ad | |
16 | 9 15 | impbid2 | |
17 | elnnnn0c | |
|
18 | 17 | baib | |
19 | 11 18 | syl | |
20 | abs00 | |
|
21 | 20 | necon3bid | |
22 | 2 21 | syl | |
23 | lgsne0 | |
|
24 | 22 23 | bitrd | |
25 | 16 19 24 | 3bitr3d | |
26 | 6 8 25 | 3bitr2d | |