Description: Double exponents in a power mod calculation. (Contributed by Mario Carneiro, 21-Feb-2014)
Ref | Expression | ||
---|---|---|---|
Hypotheses | modxai.1 | โข ๐ โ โ | |
modxai.2 | โข ๐ด โ โ | ||
modxai.3 | โข ๐ต โ โ0 | ||
modxai.4 | โข ๐ท โ โค | ||
modxai.5 | โข ๐พ โ โ0 | ||
modxai.6 | โข ๐ โ โ0 | ||
mod2xi.9 | โข ( ( ๐ด โ ๐ต ) mod ๐ ) = ( ๐พ mod ๐ ) | ||
mod2xi.7 | โข ( 2 ยท ๐ต ) = ๐ธ | ||
mod2xi.8 | โข ( ( ๐ท ยท ๐ ) + ๐ ) = ( ๐พ ยท ๐พ ) | ||
Assertion | mod2xi | โข ( ( ๐ด โ ๐ธ ) mod ๐ ) = ( ๐ mod ๐ ) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | modxai.1 | โข ๐ โ โ | |
2 | modxai.2 | โข ๐ด โ โ | |
3 | modxai.3 | โข ๐ต โ โ0 | |
4 | modxai.4 | โข ๐ท โ โค | |
5 | modxai.5 | โข ๐พ โ โ0 | |
6 | modxai.6 | โข ๐ โ โ0 | |
7 | mod2xi.9 | โข ( ( ๐ด โ ๐ต ) mod ๐ ) = ( ๐พ mod ๐ ) | |
8 | mod2xi.7 | โข ( 2 ยท ๐ต ) = ๐ธ | |
9 | mod2xi.8 | โข ( ( ๐ท ยท ๐ ) + ๐ ) = ( ๐พ ยท ๐พ ) | |
10 | 3 | nn0cni | โข ๐ต โ โ |
11 | 10 | 2timesi | โข ( 2 ยท ๐ต ) = ( ๐ต + ๐ต ) |
12 | 11 8 | eqtr3i | โข ( ๐ต + ๐ต ) = ๐ธ |
13 | 1 2 3 4 5 6 3 5 7 7 12 9 | modxai | โข ( ( ๐ด โ ๐ธ ) mod ๐ ) = ( ๐ mod ๐ ) |