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

Theorem lgsdir2lem3 16320
Description: Lemma for lgsdir2 16323. (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 9477 . . . 4 8 ∈ ℕ
3 zmodfz 10798 . . . 4 ((𝐴 ∈ ℤ ∧ 8 ∈ ℕ) → (𝐴 mod 8) ∈ (0...(8 − 1)))
41, 2, 3sylancl 417 . . 3 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...(8 − 1)))
5 8m1e7 9432 . . . 4 (8 − 1) = 7
65oveq2i 6096 . . 3 (0...(8 − 1)) = (0...7)
74, 6eleqtrdi 2331 . 2 ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → (𝐴 mod 8) ∈ (0...7))
8 neg1z 9681 . . . . . . . 8 -1 ∈ ℤ
9 z0even 12697 . . . . . . . . 9 2 ∥ 0
10 1pneg1e0 9418 . . . . . . . . . 10 (1 + -1) = 0
11 ax-1cn 8273 . . . . . . . . . . 11 1 ∈ ℂ
12 neg1cn 9412 . . . . . . . . . . 11 -1 ∈ ℂ
1311, 12addcomi 8472 . . . . . . . . . 10 (1 + -1) = (-1 + 1)
1410, 13eqtr3i 2261 . . . . . . . . 9 0 = (-1 + 1)
159, 14breqtri 4155 . . . . . . . 8 2 ∥ (-1 + 1)
16 noel 3525 . . . . . . . . . . 11 ¬ (𝐴 mod 8) ∈ ∅
1716pm2.21i 655 . . . . . . . . . 10 ((𝐴 mod 8) ∈ ∅ → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))
18 neg1lt0 9415 . . . . . . . . . . 11 -1 < 0
19 0z 9660 . . . . . . . . . . . 12 0 ∈ ℤ
20 fzn 10457 . . . . . . . . . . . 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 9828 . . . . . . 7 1 = (0 + 1)
27 ssun1 3392 . . . . . . . 8 {1, 7} ⊆ ({1, 7} ∪ {3, 5})
28 1ex 8322 . . . . . . . . 9 1 ∈ V
2928prid1 3817 . . . . . . . 8 1 ∈ {1, 7}
3027, 29sselii 3245 . . . . . . 7 1 ∈ ({1, 7} ∪ {3, 5})
3125, 14, 26, 30lgsdir2lem2 16319 . . . . . 6 (1 ∈ ℤ ∧ 2 ∥ (1 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...1) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
32 df-2 9366 . . . . . 6 2 = (1 + 1)
33 df-3 9367 . . . . . 6 3 = (2 + 1)
34 ssun2 3393 . . . . . . 7 {3, 5} ⊆ ({1, 7} ∪ {3, 5})
35 3ex 9383 . . . . . . . 8 3 ∈ V
3635prid1 3817 . . . . . . 7 3 ∈ {3, 5}
3734, 36sselii 3245 . . . . . 6 3 ∈ ({1, 7} ∪ {3, 5})
3831, 32, 33, 37lgsdir2lem2 16319 . . . . 5 (3 ∈ ℤ ∧ 2 ∥ (3 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...3) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
39 df-4 9368 . . . . 5 4 = (3 + 1)
40 df-5 9369 . . . . 5 5 = (4 + 1)
41 5nn 9474 . . . . . . . 8 5 ∈ ℕ
4241elexi 2834 . . . . . . 7 5 ∈ V
4342prid2 3818 . . . . . 6 5 ∈ {3, 5}
4434, 43sselii 3245 . . . . 5 5 ∈ ({1, 7} ∪ {3, 5})
4538, 39, 40, 44lgsdir2lem2 16319 . . . 4 (5 ∈ ℤ ∧ 2 ∥ (5 + 1) ∧ ((𝐴 ∈ ℤ ∧ ¬ 2 ∥ 𝐴) → ((𝐴 mod 8) ∈ (0...5) → (𝐴 mod 8) ∈ ({1, 7} ∪ {3, 5}))))
46 df-6 9370 . . . 4 6 = (5 + 1)
47 df-7 9371 . . . 4 7 = (6 + 1)
48 7nn 9476 . . . . . . 7 7 ∈ ℕ
4948elexi 2834 . . . . . 6 7 ∈ V
5049prid2 3818 . . . . 5 7 ∈ {1, 7}
5127, 50sselii 3245 . . . 4 7 ∈ ({1, 7} ∪ {3, 5})
5245, 46, 47, 51lgsdir2lem2 16319 . . 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
This proof depends on syntax axioms:  ¬ wn 3   → wi 4   ∧ wa 104   ↔ wb 105   = wceq 1402   ∈ wcel 2209   ∪ cun 3218  ∅c0 3520  {cpr 3710   class class class wbr 4130  (class class class)co 6085  0cc0 8180  1c1 8181   + caddc 8183   < clt 8361   − cmin 8499  -cneg 8500  ℕcn 9307  2c2 9358  3c3 9359  4c4 9360  5c5 9361  6c6 9362  7c7 9363  8c8 9364  ℤcz 9649  ...cfz 10422   mod cmo 10774   ∥ cdvds 12573
This proof depends on 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 4249  ax-pow 4311  ax-pr 4346  ax-un 4578  ax-setind 4684  ax-cnex 8271  ax-resscn 8272  ax-1cn 8273  ax-1re 8274  ax-icn 8275  ax-addcl 8276  ax-addrcl 8277  ax-mulcl 8278  ax-mulrcl 8279  ax-addcom 8280  ax-mulcom 8281  ax-addass 8282  ax-mulass 8283  ax-distr 8284  ax-i2m1 8285  ax-0lt1 8286  ax-1rid 8287  ax-0id 8288  ax-rnegex 8289  ax-precex 8290  ax-cnre 8291  ax-pre-ltirr 8292  ax-pre-ltwlin 8293  ax-pre-lttrn 8294  ax-pre-apti 8295  ax-pre-ltadd 8296  ax-pre-mulgt0 8297  ax-pre-mulext 8298  ax-arch 8299
This proof 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 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-iun 4014  df-br 4131  df-opab 4193  df-mpt 4194  df-id 4438  df-po 4441  df-iso 4442  df-xp 4780  df-rel 4781  df-cnv 4782  df-co 4783  df-dm 4784  df-rn 4785  df-res 4786  df-ima 4787  df-iota 5337  df-fun 5379  df-fn 5380  df-f 5381  df-fv 5385  df-riota 6038  df-ov 6088  df-oprab 6089  df-mpo 6090  df-1st 6374  df-2nd 6375  df-pnf 8363  df-mnf 8364  df-xr 8365  df-ltxr 8366  df-le 8367  df-sub 8501  df-neg 8502  df-reap 8906  df-ap 8913  df-div 9006  df-inn 9308  df-2 9366  df-3 9367  df-4 9368  df-5 9369  df-6 9370  df-7 9371  df-8 9372  df-n0 9569  df-z 9650  df-uz 9932  df-q 10030  df-rp 10066  df-fz 10423  df-fl 10716  df-mod 10775  df-dvds 12574
This theorem is used by:  lgsdir2  16323  2lgslem3  16391  2lgsoddprmlem3  16401
  Copyright terms: Public domain W3C validator