ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  lgsdir2lem3 GIF version

Theorem lgsdir2lem3 16132
Description: Lemma for lgsdir2 16135. (Contributed by Mario Carneiro, 4-Feb-2015.)
Assertion
Ref Expression
lgsdir2lem3 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))

Proof of Theorem lgsdir2lem3
StepHypRef Expression
1 simpl 109 . . . 4 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → 𝐴 ∈ ℤ)
2 8nn 9455 . . . 4 8 ∈ ℕ
3 zmodfz 10766 . . . 4 ((𝐴 ∈ ℤ ∧ 8 ∈ ℕ) → (𝐴 mod 8) ∈ (0...(8 − 1)))
41, 2, 3sylancl 417 . . 3 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...(8 − 1)))
5 8m1e7 9412 . . . 4 (8 − 1) = 7
65oveq2i 6090 . . 3 (0...(8 − 1)) = (0...7)
74, 6eleqtrdi 2331 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...7))
8 neg1z 9659 . . . . . . . 8 -1 ∈ ℤ
9 z0even 12661 . . . . . . . . 9 2 ∥ 0
10 1pneg1e0 9398 . . . . . . . . . 10 (1 + -1) = 0
11 ax-1cn 8266 . . . . . . . . . . 11 1 ∈ ℂ
12 neg1cn 9392 . . . . . . . . . . 11 -1 ∈ ℂ
1311, 12addcomi 8464 . . . . . . . . . 10 (1 + -1) = (-1 + 1)
1410, 13eqtr3i 2261 . . . . . . . . 9 0 = (-1 + 1)
159, 14breqtri 4153 . . . . . . . 8 2 ∥ (-1 + 1)
16 noel 3525 . . . . . . . . . . 11 ¬ (𝐴 mod 8) ∈ ∅
1716pm2.21i 655 . . . . . . . . . 10 ((𝐴 mod 8) ∈ ∅ → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
18 neg1lt0 9395 . . . . . . . . . . 11 -1 < 0
19 0z 9638 . . . . . . . . . . . 12 0 ∈ ℤ
20 fzn 10429 . . . . . . . . . . . 12 ((0 ∈ ℤ ∧ -1 ∈ ℤ) → (-1 < 0 ↔ (0...-1) = ∅))
2119, 8, 20mp2an 430 . . . . . . . . . . 11 (-1 < 0 ↔ (0...-1) = ∅)
2218, 21mpbi 145 . . . . . . . . . 10 (0...-1) = ∅
2317, 22eleq2s 2333 . . . . . . . . 9 ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
2423a1i 9 . . . . . . . 8 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5})))
258, 15, 243pm3.2i 1206 . . . . . . 7 (-1 ∈ ℤ ∧ 2 ∥ (-1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...-1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
26 1e0p1 9801 . . . . . . 7 1 = (0 + 1)
27 ssun1 3392 . . . . . . . 8 {1, 7} ⊆ ({1, 7} ∪ {3, 5})
28 1ex 8315 . . . . . . . . 9 1 ∈ V
2928prid1 3816 . . . . . . . 8 1 ∈ {1, 7}
3027, 29sselii 3245 . . . . . . 7 1 ∈ ({1, 7} ∪ {3, 5})
3125, 14, 26, 30lgsdir2lem2 16131 . . . . . 6 (1 ∈ ℤ ∧ 2 ∥ (1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
32 df-2 9346 . . . . . 6 2 = (1 + 1)
33 df-3 9347 . . . . . 6 3 = (2 + 1)
34 ssun2 3393 . . . . . . 7 {3, 5} ⊆ ({1, 7} ∪ {3, 5})
35 3ex 9363 . . . . . . . 8 3 ∈ V
3635prid1 3816 . . . . . . 7 3 ∈ {3, 5}
3734, 36sselii 3245 . . . . . 6 3 ∈ ({1, 7} ∪ {3, 5})
3831, 32, 33, 37lgsdir2lem2 16131 . . . . 5 (3 ∈ ℤ ∧ 2 ∥ (3 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...3) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
39 df-4 9348 . . . . 5 4 = (3 + 1)
40 df-5 9349 . . . . 5 5 = (4 + 1)
41 5nn 9452 . . . . . . . 8 5 ∈ ℕ
4241elexi 2834 . . . . . . 7 5 ∈ V
4342prid2 3817 . . . . . 6 5 ∈ {3, 5}
4434, 43sselii 3245 . . . . 5 5 ∈ ({1, 7} ∪ {3, 5})
4538, 39, 40, 44lgsdir2lem2 16131 . . . 4 (5 ∈ ℤ ∧ 2 ∥ (5 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...5) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
46 df-6 9350 . . . 4 6 = (5 + 1)
47 df-7 9351 . . . 4 7 = (6 + 1)
48 7nn 9454 . . . . . . 7 7 ∈ ℕ
4948elexi 2834 . . . . . 6 7 ∈ V
5049prid2 3817 . . . . 5 7 ∈ {1, 7}
5127, 50sselii 3245 . . . 4 7 ∈ ({1, 7} ∪ {3, 5})
5245, 46, 47, 51lgsdir2lem2 16131 . . 3 (7 ∈ ℤ ∧ 2 ∥ (7 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...7) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
5352simp3i 1039 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...7) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5})))
547, 53mpd 13 1 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 104  wb 105   = wceq 1402  wcel 2209  cun 3218  c0 3520  {cpr 3709   class class class wbr 4128  (class class class)co 6079  0cc0 8173  1c1 8174   + caddc 8176   < clt 8354  cmin 8491  -cneg 8492  cn 9287  2c2 9338  3c3 9339  4c4 9340  5c5 9341  6c6 9342  7c7 9343  8c8 9344  cz 9627  ...cfz 10394   mod cmo 10742  cdvds 12537
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-sep 4247  ax-pow 4309  ax-pr 4344  ax-un 4576  ax-setind 4682  ax-cnex 8264  ax-resscn 8265  ax-1cn 8266  ax-1re 8267  ax-icn 8268  ax-addcl 8269  ax-addrcl 8270  ax-mulcl 8271  ax-mulrcl 8272  ax-addcom 8273  ax-mulcom 8274  ax-addass 8275  ax-mulass 8276  ax-distr 8277  ax-i2m1 8278  ax-0lt1 8279  ax-1rid 8280  ax-0id 8281  ax-rnegex 8282  ax-precex 8283  ax-cnre 8284  ax-pre-ltirr 8285  ax-pre-ltwlin 8286  ax-pre-lttrn 8287  ax-pre-apti 8288  ax-pre-ltadd 8289  ax-pre-mulgt0 8290  ax-pre-mulext 8291  ax-arch 8292
This theorem depends on definitions:  df-bi 117  df-3or 1010  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-nel 2516  df-ral 2533  df-rex 2534  df-reu 2535  df-rmo 2536  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-nul 3521  df-pw 3690  df-sn 3714  df-pr 3715  df-op 3717  df-uni 3934  df-int 3969  df-iun 4012  df-br 4129  df-opab 4191  df-mpt 4192  df-id 4436  df-po 4439  df-iso 4440  df-xp 4778  df-rel 4779  df-cnv 4780  df-co 4781  df-dm 4782  df-rn 4783  df-res 4784  df-ima 4785  df-iota 5335  df-fun 5377  df-fn 5378  df-f 5379  df-fv 5383  df-riota 6032  df-ov 6082  df-oprab 6083  df-mpo 6084  df-1st 6368  df-2nd 6369  df-pnf 8356  df-mnf 8357  df-xr 8358  df-ltxr 8359  df-le 8360  df-sub 8493  df-neg 8494  df-reap 8897  df-ap 8904  df-div 8997  df-inn 9288  df-2 9346  df-3 9347  df-4 9348  df-5 9349  df-6 9350  df-7 9351  df-8 9352  df-n0 9547  df-z 9628  df-uz 9905  df-q 10003  df-rp 10038  df-fz 10395  df-fl 10688  df-mod 10743  df-dvds 12538
This theorem is referenced by:  lgsdir2  16135  2lgslem3  16203  2lgsoddprmlem3  16213
  Copyright terms: Public domain W3C validator