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

Theorem ncoprmgcdne1b 12109
Description: Two positive integers are not coprime, i.e. there is an integer greater than 1 which divides both integers, iff their greatest common divisor is not 1. (Contributed by AV, 9-Aug-2020.)
Assertion
Ref Expression
ncoprmgcdne1b ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (∃𝑖 ∈ (ℤ‘2)(𝑖𝐴𝑖𝐵) ↔ (𝐴 gcd 𝐵) ≠ 1))
Distinct variable groups:   𝐴,𝑖   𝐵,𝑖

Proof of Theorem ncoprmgcdne1b
StepHypRef Expression
1 df-2 8998 . . . . . . 7 2 = (1 + 1)
2 2re 9009 . . . . . . . . 9 2 ∈ ℝ
32a1i 9 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 2 ∈ ℝ)
4 eluzelz 9557 . . . . . . . . . 10 (𝑖 ∈ (ℤ‘2) → 𝑖 ∈ ℤ)
54ad2antlr 489 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 𝑖 ∈ ℤ)
65zred 9395 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 𝑖 ∈ ℝ)
7 simplll 533 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 𝐴 ∈ ℕ)
8 simpllr 534 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 𝐵 ∈ ℕ)
9 gcdnncl 11988 . . . . . . . . . 10 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (𝐴 gcd 𝐵) ∈ ℕ)
107, 8, 9syl2anc 411 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → (𝐴 gcd 𝐵) ∈ ℕ)
1110nnred 8952 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → (𝐴 gcd 𝐵) ∈ ℝ)
12 eluzle 9560 . . . . . . . . 9 (𝑖 ∈ (ℤ‘2) → 2 ≤ 𝑖)
1312ad2antlr 489 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 2 ≤ 𝑖)
14 simpr 110 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → (𝑖𝐴𝑖𝐵))
157nnzd 9394 . . . . . . . . . . 11 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 𝐴 ∈ ℤ)
168nnzd 9394 . . . . . . . . . . 11 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 𝐵 ∈ ℤ)
17 dvdsgcd 12033 . . . . . . . . . . 11 ((𝑖 ∈ ℤ ∧ 𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ((𝑖𝐴𝑖𝐵) → 𝑖 ∥ (𝐴 gcd 𝐵)))
185, 15, 16, 17syl3anc 1249 . . . . . . . . . 10 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → ((𝑖𝐴𝑖𝐵) → 𝑖 ∥ (𝐴 gcd 𝐵)))
1914, 18mpd 13 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 𝑖 ∥ (𝐴 gcd 𝐵))
20 dvdsle 11870 . . . . . . . . . 10 ((𝑖 ∈ ℤ ∧ (𝐴 gcd 𝐵) ∈ ℕ) → (𝑖 ∥ (𝐴 gcd 𝐵) → 𝑖 ≤ (𝐴 gcd 𝐵)))
215, 10, 20syl2anc 411 . . . . . . . . 9 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → (𝑖 ∥ (𝐴 gcd 𝐵) → 𝑖 ≤ (𝐴 gcd 𝐵)))
2219, 21mpd 13 . . . . . . . 8 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 𝑖 ≤ (𝐴 gcd 𝐵))
233, 6, 11, 13, 22letrd 8101 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 2 ≤ (𝐴 gcd 𝐵))
241, 23eqbrtrrid 4054 . . . . . 6 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → (1 + 1) ≤ (𝐴 gcd 𝐵))
25 1nn 8950 . . . . . . . 8 1 ∈ ℕ
2625a1i 9 . . . . . . 7 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 1 ∈ ℕ)
27 nnltp1le 9333 . . . . . . 7 ((1 ∈ ℕ ∧ (𝐴 gcd 𝐵) ∈ ℕ) → (1 < (𝐴 gcd 𝐵) ↔ (1 + 1) ≤ (𝐴 gcd 𝐵)))
2826, 10, 27syl2anc 411 . . . . . 6 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → (1 < (𝐴 gcd 𝐵) ↔ (1 + 1) ≤ (𝐴 gcd 𝐵)))
2924, 28mpbird 167 . . . . 5 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → 1 < (𝐴 gcd 𝐵))
30 nngt1ne1 8974 . . . . . 6 ((𝐴 gcd 𝐵) ∈ ℕ → (1 < (𝐴 gcd 𝐵) ↔ (𝐴 gcd 𝐵) ≠ 1))
3110, 30syl 14 . . . . 5 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → (1 < (𝐴 gcd 𝐵) ↔ (𝐴 gcd 𝐵) ≠ 1))
3229, 31mpbid 147 . . . 4 ((((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) ∧ (𝑖𝐴𝑖𝐵)) → (𝐴 gcd 𝐵) ≠ 1)
3332ex 115 . . 3 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ 𝑖 ∈ (ℤ‘2)) → ((𝑖𝐴𝑖𝐵) → (𝐴 gcd 𝐵) ≠ 1))
3433rexlimdva 2607 . 2 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (∃𝑖 ∈ (ℤ‘2)(𝑖𝐴𝑖𝐵) → (𝐴 gcd 𝐵) ≠ 1))
359adantr 276 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) ≠ 1) → (𝐴 gcd 𝐵) ∈ ℕ)
36 simpr 110 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) ≠ 1) → (𝐴 gcd 𝐵) ≠ 1)
37 eluz2b3 9624 . . . . 5 ((𝐴 gcd 𝐵) ∈ (ℤ‘2) ↔ ((𝐴 gcd 𝐵) ∈ ℕ ∧ (𝐴 gcd 𝐵) ≠ 1))
3835, 36, 37sylanbrc 417 . . . 4 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) ≠ 1) → (𝐴 gcd 𝐵) ∈ (ℤ‘2))
39 simpll 527 . . . . . 6 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) ≠ 1) → 𝐴 ∈ ℕ)
4039nnzd 9394 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) ≠ 1) → 𝐴 ∈ ℤ)
41 simplr 528 . . . . . 6 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) ≠ 1) → 𝐵 ∈ ℕ)
4241nnzd 9394 . . . . 5 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) ≠ 1) → 𝐵 ∈ ℤ)
43 gcddvds 11984 . . . . 5 ((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ) → ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵))
4440, 42, 43syl2anc 411 . . . 4 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) ≠ 1) → ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵))
45 breq1 4021 . . . . . 6 (𝑖 = (𝐴 gcd 𝐵) → (𝑖𝐴 ↔ (𝐴 gcd 𝐵) ∥ 𝐴))
46 breq1 4021 . . . . . 6 (𝑖 = (𝐴 gcd 𝐵) → (𝑖𝐵 ↔ (𝐴 gcd 𝐵) ∥ 𝐵))
4745, 46anbi12d 473 . . . . 5 (𝑖 = (𝐴 gcd 𝐵) → ((𝑖𝐴𝑖𝐵) ↔ ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵)))
4847rspcev 2856 . . . 4 (((𝐴 gcd 𝐵) ∈ (ℤ‘2) ∧ ((𝐴 gcd 𝐵) ∥ 𝐴 ∧ (𝐴 gcd 𝐵) ∥ 𝐵)) → ∃𝑖 ∈ (ℤ‘2)(𝑖𝐴𝑖𝐵))
4938, 44, 48syl2anc 411 . . 3 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) ∧ (𝐴 gcd 𝐵) ≠ 1) → ∃𝑖 ∈ (ℤ‘2)(𝑖𝐴𝑖𝐵))
5049ex 115 . 2 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → ((𝐴 gcd 𝐵) ≠ 1 → ∃𝑖 ∈ (ℤ‘2)(𝑖𝐴𝑖𝐵)))
5134, 50impbid 129 1 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ) → (∃𝑖 ∈ (ℤ‘2)(𝑖𝐴𝑖𝐵) ↔ (𝐴 gcd 𝐵) ≠ 1))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 104  wb 105   = wceq 1364  wcel 2160  wne 2360  wrex 2469   class class class wbr 4018  cfv 5232  (class class class)co 5892  cr 7830  1c1 7832   + caddc 7834   < clt 8012  cle 8013  cn 8939  2c2 8990  cz 9273  cuz 9548  cdvds 11814   gcd cgcd 11963
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 615  ax-in2 616  ax-io 710  ax-5 1458  ax-7 1459  ax-gen 1460  ax-ie1 1504  ax-ie2 1505  ax-8 1515  ax-10 1516  ax-11 1517  ax-i12 1518  ax-bndl 1520  ax-4 1521  ax-17 1537  ax-i9 1541  ax-ial 1545  ax-i5r 1546  ax-13 2162  ax-14 2163  ax-ext 2171  ax-coll 4133  ax-sep 4136  ax-nul 4144  ax-pow 4189  ax-pr 4224  ax-un 4448  ax-setind 4551  ax-iinf 4602  ax-cnex 7922  ax-resscn 7923  ax-1cn 7924  ax-1re 7925  ax-icn 7926  ax-addcl 7927  ax-addrcl 7928  ax-mulcl 7929  ax-mulrcl 7930  ax-addcom 7931  ax-mulcom 7932  ax-addass 7933  ax-mulass 7934  ax-distr 7935  ax-i2m1 7936  ax-0lt1 7937  ax-1rid 7938  ax-0id 7939  ax-rnegex 7940  ax-precex 7941  ax-cnre 7942  ax-pre-ltirr 7943  ax-pre-ltwlin 7944  ax-pre-lttrn 7945  ax-pre-apti 7946  ax-pre-ltadd 7947  ax-pre-mulgt0 7948  ax-pre-mulext 7949  ax-arch 7950  ax-caucvg 7951
This theorem depends on definitions:  df-bi 117  df-dc 836  df-3or 981  df-3an 982  df-tru 1367  df-fal 1370  df-nf 1472  df-sb 1774  df-eu 2041  df-mo 2042  df-clab 2176  df-cleq 2182  df-clel 2185  df-nfc 2321  df-ne 2361  df-nel 2456  df-ral 2473  df-rex 2474  df-reu 2475  df-rmo 2476  df-rab 2477  df-v 2754  df-sbc 2978  df-csb 3073  df-dif 3146  df-un 3148  df-in 3150  df-ss 3157  df-nul 3438  df-if 3550  df-pw 3592  df-sn 3613  df-pr 3614  df-op 3616  df-uni 3825  df-int 3860  df-iun 3903  df-br 4019  df-opab 4080  df-mpt 4081  df-tr 4117  df-id 4308  df-po 4311  df-iso 4312  df-iord 4381  df-on 4383  df-ilim 4384  df-suc 4386  df-iom 4605  df-xp 4647  df-rel 4648  df-cnv 4649  df-co 4650  df-dm 4651  df-rn 4652  df-res 4653  df-ima 4654  df-iota 5193  df-fun 5234  df-fn 5235  df-f 5236  df-f1 5237  df-fo 5238  df-f1o 5239  df-fv 5240  df-riota 5848  df-ov 5895  df-oprab 5896  df-mpo 5897  df-1st 6160  df-2nd 6161  df-recs 6325  df-frec 6411  df-sup 7003  df-pnf 8014  df-mnf 8015  df-xr 8016  df-ltxr 8017  df-le 8018  df-sub 8150  df-neg 8151  df-reap 8552  df-ap 8559  df-div 8650  df-inn 8940  df-2 8998  df-3 8999  df-4 9000  df-n0 9197  df-z 9274  df-uz 9549  df-q 9640  df-rp 9674  df-fz 10029  df-fzo 10163  df-fl 10290  df-mod 10343  df-seqfrec 10466  df-exp 10540  df-cj 10871  df-re 10872  df-im 10873  df-rsqrt 11027  df-abs 11028  df-dvds 11815  df-gcd 11964
This theorem is referenced by:  ncoprmgcdgt1b  12110
  Copyright terms: Public domain W3C validator