MPE Home Metamath Proof Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >  gcdcllem2 Unicode version

Theorem gcdcllem2 12967
Description: Lemma for gcdn0cl 12969, gcddvds 12970 and dvdslegcd 12971. (Contributed by Paul Chapman, 21-Mar-2011.)
Hypotheses
Ref Expression
gcdcllem2.1  |-  S  =  { z  e.  ZZ  |  A. n  e.  { M ,  N }
z  ||  n }
gcdcllem2.2  |-  R  =  { z  e.  ZZ  |  ( z  ||  M  /\  z  ||  N
) }
Assertion
Ref Expression
gcdcllem2  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  R  =  S )
Distinct variable groups:    z, n, M    n, N, z
Allowed substitution hints:    R( z, n)    S( z, n)

Proof of Theorem gcdcllem2
Dummy variable  x is distinct from all other variables.
StepHypRef Expression
1 breq1 4175 . . . . . 6  |-  ( z  =  x  ->  (
z  ||  n  <->  x  ||  n
) )
21ralbidv 2686 . . . . 5  |-  ( z  =  x  ->  ( A. n  e.  { M ,  N } z  ||  n 
<-> 
A. n  e.  { M ,  N }
x  ||  n )
)
3 gcdcllem2.1 . . . . 5  |-  S  =  { z  e.  ZZ  |  A. n  e.  { M ,  N }
z  ||  n }
42, 3elrab2 3054 . . . 4  |-  ( x  e.  S  <->  ( x  e.  ZZ  /\  A. n  e.  { M ,  N } x  ||  n ) )
5 breq2 4176 . . . . . 6  |-  ( n  =  M  ->  (
x  ||  n  <->  x  ||  M
) )
6 breq2 4176 . . . . . 6  |-  ( n  =  N  ->  (
x  ||  n  <->  x  ||  N
) )
75, 6ralprg 3817 . . . . 5  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( A. n  e. 
{ M ,  N } x  ||  n  <->  ( x  ||  M  /\  x  ||  N ) ) )
87anbi2d 685 . . . 4  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( ( x  e.  ZZ  /\  A. n  e.  { M ,  N } x  ||  n )  <-> 
( x  e.  ZZ  /\  ( x  ||  M  /\  x  ||  N ) ) ) )
94, 8syl5bb 249 . . 3  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( x  e.  S  <->  ( x  e.  ZZ  /\  ( x  ||  M  /\  x  ||  N ) ) ) )
10 breq1 4175 . . . . 5  |-  ( z  =  x  ->  (
z  ||  M  <->  x  ||  M
) )
11 breq1 4175 . . . . 5  |-  ( z  =  x  ->  (
z  ||  N  <->  x  ||  N
) )
1210, 11anbi12d 692 . . . 4  |-  ( z  =  x  ->  (
( z  ||  M  /\  z  ||  N )  <-> 
( x  ||  M  /\  x  ||  N ) ) )
13 gcdcllem2.2 . . . 4  |-  R  =  { z  e.  ZZ  |  ( z  ||  M  /\  z  ||  N
) }
1412, 13elrab2 3054 . . 3  |-  ( x  e.  R  <->  ( x  e.  ZZ  /\  ( x 
||  M  /\  x  ||  N ) ) )
159, 14syl6rbbr 256 . 2  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  ( x  e.  R  <->  x  e.  S ) )
1615eqrdv 2402 1  |-  ( ( M  e.  ZZ  /\  N  e.  ZZ )  ->  R  =  S )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 359    = wceq 1649    e. wcel 1721   A.wral 2666   {crab 2670   {cpr 3775   class class class wbr 4172   ZZcz 10238    || cdivides 12807
This theorem is referenced by:  gcdcllem3  12968
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1552  ax-5 1563  ax-17 1623  ax-9 1662  ax-8 1683  ax-6 1740  ax-7 1745  ax-11 1757  ax-12 1946  ax-ext 2385
This theorem depends on definitions:  df-bi 178  df-or 360  df-an 361  df-3an 938  df-tru 1325  df-ex 1548  df-nf 1551  df-sb 1656  df-clab 2391  df-cleq 2397  df-clel 2400  df-nfc 2529  df-ral 2671  df-rab 2675  df-v 2918  df-sbc 3122  df-dif 3283  df-un 3285  df-in 3287  df-ss 3294  df-nul 3589  df-if 3700  df-sn 3780  df-pr 3781  df-op 3783  df-br 4173
  Copyright terms: Public domain W3C validator