Users' Mathboxes Mathbox for Stefan O'Rear < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  MPE Home  >  Th. List  >   Mathboxes  >  congtr Unicode version

Theorem congtr 26200
Description: A wff of the form  A  ||  ( B  -  C
) is interpreted as a congruential equation. This is similar to  ( B  mod  A
)  =  ( C  mod  A ), but is defined such that behavior is regular for zero and negative values of  A. To use this concept effectively, we need to show that congruential equations behave similarly to normal equations; first a transitivity law. Idea for the future: If there was a congruential equation symbol, it could incorporate type constraints, so that most of these would not need them. (Contributed by Stefan O'Rear, 1-Oct-2014.)
Assertion
Ref Expression
congtr  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  ->  A  ||  ( B  -  D ) )

Proof of Theorem congtr
StepHypRef Expression
1 simp1l 979 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  ->  A  e.  ZZ )
2 simp1r 980 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  ->  B  e.  ZZ )
3 simp2l 981 . . . 4  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  ->  C  e.  ZZ )
42, 3zsubcld 10169 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  -> 
( B  -  C
)  e.  ZZ )
5 zsubcl 10108 . . . 4  |-  ( ( C  e.  ZZ  /\  D  e.  ZZ )  ->  ( C  -  D
)  e.  ZZ )
653ad2ant2 977 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  -> 
( C  -  D
)  e.  ZZ )
7 simp3 957 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  -> 
( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D ) ) )
8 dvds2add 12607 . . . 4  |-  ( ( A  e.  ZZ  /\  ( B  -  C
)  e.  ZZ  /\  ( C  -  D
)  e.  ZZ )  ->  ( ( A 
||  ( B  -  C )  /\  A  ||  ( C  -  D
) )  ->  A  ||  ( ( B  -  C )  +  ( C  -  D ) ) ) )
98imp 418 . . 3  |-  ( ( ( A  e.  ZZ  /\  ( B  -  C
)  e.  ZZ  /\  ( C  -  D
)  e.  ZZ )  /\  ( A  ||  ( B  -  C
)  /\  A  ||  ( C  -  D )
) )  ->  A  ||  ( ( B  -  C )  +  ( C  -  D ) ) )
101, 4, 6, 7, 9syl31anc 1185 . 2  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  ->  A  ||  ( ( B  -  C )  +  ( C  -  D
) ) )
11 zcn 10076 . . . . 5  |-  ( B  e.  ZZ  ->  B  e.  CC )
1211adantl 452 . . . 4  |-  ( ( A  e.  ZZ  /\  B  e.  ZZ )  ->  B  e.  CC )
13123ad2ant1 976 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  ->  B  e.  CC )
14 zcn 10076 . . . . 5  |-  ( C  e.  ZZ  ->  C  e.  CC )
1514adantr 451 . . . 4  |-  ( ( C  e.  ZZ  /\  D  e.  ZZ )  ->  C  e.  CC )
16153ad2ant2 977 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  ->  C  e.  CC )
17 zcn 10076 . . . . 5  |-  ( D  e.  ZZ  ->  D  e.  CC )
1817adantl 452 . . . 4  |-  ( ( C  e.  ZZ  /\  D  e.  ZZ )  ->  D  e.  CC )
19183ad2ant2 977 . . 3  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  ->  D  e.  CC )
2013, 16, 19npncand 9226 . 2  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  -> 
( ( B  -  C )  +  ( C  -  D ) )  =  ( B  -  D ) )
2110, 20breqtrd 4084 1  |-  ( ( ( A  e.  ZZ  /\  B  e.  ZZ )  /\  ( C  e.  ZZ  /\  D  e.  ZZ )  /\  ( A  ||  ( B  -  C )  /\  A  ||  ( C  -  D
) ) )  ->  A  ||  ( B  -  D ) )
Colors of variables: wff set class
Syntax hints:    -> wi 4    /\ wa 358    /\ w3a 934    e. wcel 1701   class class class wbr 4060  (class class class)co 5900   CCcc 8780    + caddc 8785    - cmin 9082   ZZcz 10071    || cdivides 12578
This theorem is referenced by:  congmul  26202  acongtr  26213  jm2.18  26229  jm2.27a  26246
This theorem was proved from axioms:  ax-1 5  ax-2 6  ax-3 7  ax-mp 8  ax-gen 1537  ax-5 1548  ax-17 1607  ax-9 1645  ax-8 1666  ax-13 1703  ax-14 1705  ax-6 1720  ax-7 1725  ax-11 1732  ax-12 1897  ax-ext 2297  ax-sep 4178  ax-nul 4186  ax-pow 4225  ax-pr 4251  ax-un 4549  ax-resscn 8839  ax-1cn 8840  ax-icn 8841  ax-addcl 8842  ax-addrcl 8843  ax-mulcl 8844  ax-mulrcl 8845  ax-mulcom 8846  ax-addass 8847  ax-mulass 8848  ax-distr 8849  ax-i2m1 8850  ax-1ne0 8851  ax-1rid 8852  ax-rnegex 8853  ax-rrecex 8854  ax-cnre 8855  ax-pre-lttri 8856  ax-pre-lttrn 8857  ax-pre-ltadd 8858  ax-pre-mulgt0 8859
This theorem depends on definitions:  df-bi 177  df-or 359  df-an 360  df-3or 935  df-3an 936  df-tru 1310  df-ex 1533  df-nf 1536  df-sb 1640  df-eu 2180  df-mo 2181  df-clab 2303  df-cleq 2309  df-clel 2312  df-nfc 2441  df-ne 2481  df-nel 2482  df-ral 2582  df-rex 2583  df-reu 2584  df-rab 2586  df-v 2824  df-sbc 3026  df-csb 3116  df-dif 3189  df-un 3191  df-in 3193  df-ss 3200  df-pss 3202  df-nul 3490  df-if 3600  df-pw 3661  df-sn 3680  df-pr 3681  df-tp 3682  df-op 3683  df-uni 3865  df-iun 3944  df-br 4061  df-opab 4115  df-mpt 4116  df-tr 4151  df-eprel 4342  df-id 4346  df-po 4351  df-so 4352  df-fr 4389  df-we 4391  df-ord 4432  df-on 4433  df-lim 4434  df-suc 4435  df-om 4694  df-xp 4732  df-rel 4733  df-cnv 4734  df-co 4735  df-dm 4736  df-rn 4737  df-res 4738  df-ima 4739  df-iota 5256  df-fun 5294  df-fn 5295  df-f 5296  df-f1 5297  df-fo 5298  df-f1o 5299  df-fv 5300  df-ov 5903  df-oprab 5904  df-mpt2 5905  df-riota 6346  df-recs 6430  df-rdg 6465  df-er 6702  df-en 6907  df-dom 6908  df-sdom 6909  df-pnf 8914  df-mnf 8915  df-xr 8916  df-ltxr 8917  df-le 8918  df-sub 9084  df-neg 9085  df-nn 9792  df-n0 10013  df-z 10072  df-dvds 12579
  Copyright terms: Public domain W3C validator