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

Theorem pythagtriplem9 13002
Description: Lemma for pythagtrip 13012. Show that (√‘(𝐶 + 𝐵)) is a positive integer. (Contributed by Scott Fenton, 17-Apr-2014.) (Revised by Mario Carneiro, 19-Apr-2014.)
Assertion
Ref Expression
pythagtriplem9 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (√‘(𝐶 + 𝐵)) ∈ ℕ)

Proof of Theorem pythagtriplem9
StepHypRef Expression
1 pythagtriplem7 13000 . 2 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (√‘(𝐶 + 𝐵)) = ((𝐶 + 𝐵) gcd 𝐴))
2 nnz 9618 . . . . . 6 (𝐶 ∈ ℕ → 𝐶 ∈ ℤ)
3 nnz 9618 . . . . . 6 (𝐵 ∈ ℕ → 𝐵 ∈ ℤ)
4 zaddcl 9639 . . . . . 6 ((𝐶 ∈ ℤ ∧ 𝐵 ∈ ℤ) → (𝐶 + 𝐵) ∈ ℤ)
52, 3, 4syl2anr 290 . . . . 5 ((𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐶 + 𝐵) ∈ ℤ)
653adant1 1042 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → (𝐶 + 𝐵) ∈ ℤ)
763ad2ant1 1045 . . 3 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (𝐶 + 𝐵) ∈ ℤ)
8 nnz 9618 . . . . 5 (𝐴 ∈ ℕ → 𝐴 ∈ ℤ)
983ad2ant1 1045 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → 𝐴 ∈ ℤ)
1093ad2ant1 1045 . . 3 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → 𝐴 ∈ ℤ)
11 nnne0 9287 . . . . . . 7 (𝐴 ∈ ℕ → 𝐴 ≠ 0)
1211neneqd 2435 . . . . . 6 (𝐴 ∈ ℕ → ¬ 𝐴 = 0)
1312intnand 939 . . . . 5 (𝐴 ∈ ℕ → ¬ ((𝐶 + 𝐵) = 0 ∧ 𝐴 = 0))
14133ad2ant1 1045 . . . 4 ((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) → ¬ ((𝐶 + 𝐵) = 0 ∧ 𝐴 = 0))
15143ad2ant1 1045 . . 3 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → ¬ ((𝐶 + 𝐵) = 0 ∧ 𝐴 = 0))
16 gcdn0cl 12689 . . 3 ((((𝐶 + 𝐵) ∈ ℤ ∧ 𝐴 ∈ ℤ) ∧ ¬ ((𝐶 + 𝐵) = 0 ∧ 𝐴 = 0)) → ((𝐶 + 𝐵) gcd 𝐴) ∈ ℕ)
177, 10, 15, 16syl21anc 1273 . 2 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → ((𝐶 + 𝐵) gcd 𝐴) ∈ ℕ)
181, 17eqeltrd 2311 1 (((𝐴 ∈ ℕ ∧ 𝐵 ∈ ℕ ∧ 𝐶 ∈ ℕ) ∧ ((𝐴↑2) + (𝐵↑2)) = (𝐶↑2) ∧ ((𝐴 gcd 𝐵) = 1 ∧ ¬ 2 ∥ 𝐴)) → (√‘(𝐶 + 𝐵)) ∈ ℕ)
Colors of variables: wff set class
Syntax hints:  ¬ wn 3  wi 4  wa 104  w3a 1005   = wceq 1398  wcel 2205   class class class wbr 4115  cfv 5359  (class class class)co 6060  0cc0 8145  1c1 8146   + caddc 8148  cn 9259  2c2 9310  cz 9599  cexp 10929  csqrt 11712  cdvds 12504   gcd cgcd 12680
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 619  ax-in2 620  ax-io 717  ax-5 1496  ax-7 1497  ax-gen 1498  ax-ie1 1542  ax-ie2 1543  ax-8 1553  ax-10 1554  ax-11 1555  ax-i12 1556  ax-bndl 1558  ax-4 1559  ax-17 1575  ax-i9 1579  ax-ial 1583  ax-i5r 1584  ax-14 2208  ax-ext 2216  ax-coll 4231  ax-sep 4234  ax-nul 4242  ax-pow 4293  ax-pr 4328  ax-un 4560  ax-setind 4666  ax-iinf 4717  ax-cnex 8236  ax-resscn 8237  ax-1cn 8238  ax-1re 8239  ax-icn 8240  ax-addcl 8241  ax-addrcl 8242  ax-mulcl 8243  ax-mulrcl 8244  ax-addcom 8245  ax-mulcom 8246  ax-addass 8247  ax-mulass 8248  ax-distr 8249  ax-i2m1 8250  ax-0lt1 8251  ax-1rid 8252  ax-0id 8253  ax-rnegex 8254  ax-precex 8255  ax-cnre 8256  ax-pre-ltirr 8257  ax-pre-ltwlin 8258  ax-pre-lttrn 8259  ax-pre-apti 8260  ax-pre-ltadd 8261  ax-pre-mulgt0 8262  ax-pre-mulext 8263  ax-arch 8264  ax-caucvg 8265
This theorem depends on definitions:  df-bi 117  df-stab 839  df-dc 843  df-3or 1006  df-3an 1007  df-tru 1401  df-fal 1404  df-nf 1510  df-sb 1812  df-eu 2085  df-mo 2086  df-clab 2221  df-cleq 2227  df-clel 2230  df-nfc 2375  df-ne 2415  df-nel 2510  df-ral 2527  df-rex 2528  df-reu 2529  df-rmo 2530  df-rab 2531  df-v 2817  df-sbc 3046  df-csb 3142  df-dif 3216  df-un 3218  df-in 3220  df-ss 3227  df-nul 3513  df-if 3626  df-pw 3677  df-sn 3701  df-pr 3702  df-op 3704  df-uni 3921  df-int 3956  df-iun 3999  df-br 4116  df-opab 4178  df-mpt 4179  df-tr 4215  df-id 4420  df-po 4423  df-iso 4424  df-iord 4493  df-on 4495  df-ilim 4496  df-suc 4498  df-iom 4720  df-xp 4762  df-rel 4763  df-cnv 4764  df-co 4765  df-dm 4766  df-rn 4767  df-res 4768  df-ima 4769  df-iota 5319  df-fun 5361  df-fn 5362  df-f 5363  df-f1 5364  df-fo 5365  df-f1o 5366  df-fv 5367  df-riota 6013  df-ov 6063  df-oprab 6064  df-mpo 6065  df-1st 6349  df-2nd 6350  df-recs 6551  df-frec 6637  df-1o 6662  df-2o 6663  df-er 6782  df-en 6991  df-sup 7290  df-pnf 8328  df-mnf 8329  df-xr 8330  df-ltxr 8331  df-le 8332  df-sub 8465  df-neg 8466  df-reap 8869  df-ap 8876  df-div 8969  df-inn 9260  df-2 9318  df-3 9319  df-4 9320  df-n0 9519  df-z 9600  df-uz 9877  df-q 9975  df-rp 10010  df-fz 10367  df-fzo 10504  df-fl 10659  df-mod 10714  df-seqfrec 10839  df-exp 10930  df-cj 11557  df-re 11558  df-im 11559  df-rsqrt 11714  df-abs 11715  df-dvds 12505  df-gcd 12681  df-prm 12836
This theorem is referenced by:  pythagtriplem11  13003  pythagtriplem13  13005
  Copyright terms: Public domain W3C validator