Users' Mathboxes Mathbox for Alexander van der Vekens < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  modp2nep1 Structured version   Visualization version   GIF version

Theorem modp2nep1 47928
Description: A nonnegative integer less than a modulus greater than 4 plus one/plus two are not equal modulo the modulus. (Contributed by AV, 22-Nov-2025.)
Hypothesis
Ref Expression
modm1nep1.i 𝐼 = (0..^𝑁)
Assertion
Ref Expression
modp2nep1 ((𝑁 ∈ (ℤ‘5) ∧ 𝑌𝐼) → ((𝑌 + 2) mod 𝑁) ≠ ((𝑌 + 1) mod 𝑁))

Proof of Theorem modp2nep1
StepHypRef Expression
1 eluz5nn 12886 . . 3 (𝑁 ∈ (ℤ‘5) → 𝑁 ∈ ℕ)
21adantr 484 . 2 ((𝑁 ∈ (ℤ‘5) ∧ 𝑌𝐼) → 𝑁 ∈ ℕ)
3 simpr 488 . 2 ((𝑁 ∈ (ℤ‘5) ∧ 𝑌𝐼) → 𝑌𝐼)
4 2z 12597 . . 3 2 ∈ ℤ
54a1i 11 . 2 ((𝑁 ∈ (ℤ‘5) ∧ 𝑌𝐼) → 2 ∈ ℤ)
6 1zzd 12596 . 2 ((𝑁 ∈ (ℤ‘5) ∧ 𝑌𝐼) → 1 ∈ ℤ)
7 2m1e1 12336 . . . . 5 (2 − 1) = 1
87fveq2i 6865 . . . 4 (abs‘(2 − 1)) = (abs‘1)
9 abs1 15315 . . . 4 (abs‘1) = 1
108, 9eqtri 2784 . . 3 (abs‘(2 − 1)) = 1
11 eluz2 12839 . . . . . 6 (𝑁 ∈ (ℤ‘5) ↔ (5 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 5 ≤ 𝑁))
12 1red 11176 . . . . . . 7 ((5 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 5 ≤ 𝑁) → 1 ∈ ℝ)
13 5re 12299 . . . . . . . 8 5 ∈ ℝ
1413a1i 11 . . . . . . 7 ((5 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 5 ≤ 𝑁) → 5 ∈ ℝ)
15 zre 12566 . . . . . . . 8 (𝑁 ∈ ℤ → 𝑁 ∈ ℝ)
16153ad2ant2 1146 . . . . . . 7 ((5 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 5 ≤ 𝑁) → 𝑁 ∈ ℝ)
17 1lt5 12394 . . . . . . . 8 1 < 5
1817a1i 11 . . . . . . 7 ((5 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 5 ≤ 𝑁) → 1 < 5)
19 simp3 1150 . . . . . . 7 ((5 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 5 ≤ 𝑁) → 5 ≤ 𝑁)
2012, 14, 16, 18, 19ltletrd 11337 . . . . . 6 ((5 ∈ ℤ ∧ 𝑁 ∈ ℤ ∧ 5 ≤ 𝑁) → 1 < 𝑁)
2111, 20sylbi 219 . . . . 5 (𝑁 ∈ (ℤ‘5) → 1 < 𝑁)
22 1elfzo1 13714 . . . . 5 (1 ∈ (1..^𝑁) ↔ (𝑁 ∈ ℕ ∧ 1 < 𝑁))
231, 21, 22sylanbrc 592 . . . 4 (𝑁 ∈ (ℤ‘5) → 1 ∈ (1..^𝑁))
2423adantr 484 . . 3 ((𝑁 ∈ (ℤ‘5) ∧ 𝑌𝐼) → 1 ∈ (1..^𝑁))
2510, 24eqeltrid 2865 . 2 ((𝑁 ∈ (ℤ‘5) ∧ 𝑌𝐼) → (abs‘(2 − 1)) ∈ (1..^𝑁))
26 modm1nep1.i . . 3 𝐼 = (0..^𝑁)
2726mod2addne 47925 . 2 ((𝑁 ∈ ℕ ∧ (𝑌𝐼 ∧ 2 ∈ ℤ ∧ 1 ∈ ℤ) ∧ (abs‘(2 − 1)) ∈ (1..^𝑁)) → ((𝑌 + 2) mod 𝑁) ≠ ((𝑌 + 1) mod 𝑁))
282, 3, 5, 6, 25, 27syl131anc 1401 1 ((𝑁 ∈ (ℤ‘5) ∧ 𝑌𝐼) → ((𝑌 + 2) mod 𝑁) ≠ ((𝑌 + 1) mod 𝑁))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  w3a 1097   = wceq 1559  wcel 2141  wne 2956   class class class wbr 5097  cfv 6516  (class class class)co 7391  cr 11066  0cc0 11067  1c1 11068   + caddc 11070   < clt 11210  cle 11211  cmin 11408  cn 12204  2c2 12266  5c5 12269  cz 12562  cuz 12833  ..^cfzo 13653   mod cmo 13873  abscabs 15252
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1814  ax-4 1828  ax-5 1929  ax-6 1986  ax-7 2027  ax-8 2143  ax-9 2151  ax-10 2174  ax-11 2190  ax-12 2211  ax-ext 2733  ax-sep 5243  ax-nul 5253  ax-pow 5319  ax-pr 5387  ax-un 7713  ax-cnex 11123  ax-resscn 11124  ax-1cn 11125  ax-icn 11126  ax-addcl 11127  ax-addrcl 11128  ax-mulcl 11129  ax-mulrcl 11130  ax-mulcom 11131  ax-addass 11132  ax-mulass 11133  ax-distr 11134  ax-i2m1 11135  ax-1ne0 11136  ax-1rid 11137  ax-rnegex 11138  ax-rrecex 11139  ax-cnre 11140  ax-pre-lttri 11141  ax-pre-lttrn 11142  ax-pre-ltadd 11143  ax-pre-mulgt0 11144  ax-pre-sup 11145
This theorem depends on definitions:  df-bi 209  df-an 400  df-or 859  df-3or 1098  df-3an 1099  df-tru 1562  df-fal 1572  df-ex 1799  df-nf 1803  df-sb 2090  df-mo 2565  df-eu 2595  df-clab 2740  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ne 2957  df-nel 3061  df-ral 3076  df-rex 3086  df-rmo 3366  df-reu 3367  df-rab 3414  df-v 3455  df-sbc 3743  df-csb 3851  df-dif 3905  df-un 3907  df-in 3909  df-ss 3919  df-pss 3922  df-nul 4284  df-if 4478  df-pw 4554  df-sn 4580  df-pr 4582  df-op 4586  df-uni 4863  df-iun 4948  df-br 5098  df-opab 5160  df-mpt 5179  df-tr 5205  df-id 5538  df-eprel 5543  df-po 5551  df-so 5552  df-fr 5596  df-we 5598  df-xp 5649  df-rel 5650  df-cnv 5651  df-co 5652  df-dm 5653  df-rn 5654  df-res 5655  df-ima 5656  df-pred 6283  df-ord 6344  df-on 6345  df-lim 6346  df-suc 6347  df-iota 6472  df-fun 6518  df-fn 6519  df-f 6520  df-f1 6521  df-fo 6522  df-f1o 6523  df-fv 6524  df-riota 7348  df-ov 7394  df-oprab 7395  df-mpo 7396  df-om 7842  df-1st 7965  df-2nd 7966  df-frecs 8256  df-wrecs 8287  df-recs 8336  df-rdg 8375  df-er 8672  df-en 8922  df-dom 8923  df-sdom 8924  df-sup 9382  df-inf 9383  df-pnf 11212  df-mnf 11213  df-xr 11214  df-ltxr 11215  df-le 11216  df-sub 11410  df-neg 11411  df-div 11839  df-nn 12205  df-2 12274  df-3 12275  df-4 12276  df-5 12277  df-n0 12476  df-z 12563  df-uz 12834  df-rp 12988  df-fz 13507  df-fzo 13654  df-fl 13796  df-mod 13874  df-seq 14009  df-exp 14069  df-cj 15117  df-re 15118  df-im 15119  df-sqrt 15253  df-abs 15254  df-dvds 16278
This theorem is referenced by:  pgnioedg2  48692
  Copyright terms: Public domain W3C validator