<?xml version="1.0"?>
<div><span class="kw">theorem </span><a NAME="T43"><span class="comment"><font color="firebrick">:: INT_4:43</font></span><br/></a><div class="add"> for <font color="Olive" title="b1">m1</font>, <font color="Olive" title="b2">m2</font>, <font color="Olive" title="b3">a</font>, <font color="Olive" title="b4">b</font>, <font color="Olive" title="b5">c1</font>, <font color="Olive" title="b6">c2</font> being   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a>  st <font color="Olive" title="b1">m1</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp; <font color="Olive" title="b2">m2</font> <a href="hidden.html#NR2" title="HIDDEN:NR.2">&lt;&gt;</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp; <font color="Olive" title="b3">a</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b1">m1</font> <a href="int_1.html#R1" title="INT_1:pred.1">divides</a> <font color="Olive" title="b5">c1</font> &amp; <font color="Olive" title="b4">b</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b2">m2</font> <a href="int_1.html#R1" title="INT_1:pred.1">divides</a> <font color="Olive" title="b6">c2</font> &amp; <font color="Olive" title="b1">m1</font>,<font color="Olive" title="b2">m2</font> <a href="int_2.html#R1" title="INT_2:pred.1">are_coprime</a>  holds <br/> ex <font color="Olive" title="b7">w</font>, <font color="Olive" title="b8">r</font>, <font color="Olive" title="b9">s</font> being   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a> st <br/>( (  for <font color="Olive" title="b10">x</font> being   <a href="int_1.html#NM1" title="INT_1:NM.1">Integer</a>  st <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Olive" title="b3">a</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b10">x</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Olive" title="b5">c1</font></span>)</span> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Olive" title="b1">m1</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp; <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Olive" title="b4">b</font> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b10">x</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Olive" title="b6">c2</font></span>)</span> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <font color="Olive" title="b2">m2</font> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  holds <br/><font color="Olive" title="b10">x</font>,<font color="Olive" title="b8">r</font> <a href="xcmplx_0.html#K2" title="XCMPLX_0:func.2">+</a> <span class="p1">(<span class="default"><span class="p2">(<span class="default"><font color="Olive" title="b1">m1</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p3">(<span class="default"><font color="Olive" title="b3">a</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b1">m1</font></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b7">w</font></span>)</span> <a href="int_1.html#R2" title="INT_1:pred.2">are_congruent_mod</a> <span class="p1">(<span class="default"><font color="Olive" title="b1">m1</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p2">(<span class="default"><font color="Olive" title="b3">a</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b1">m1</font></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <span class="p1">(<span class="default"><font color="Olive" title="b2">m2</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p2">(<span class="default"><font color="Olive" title="b4">b</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b2">m2</font></span>)</span></span>)</span> ) &amp; <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Olive" title="b3">a</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p4">(<span class="default"><font color="Olive" title="b3">a</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b1">m1</font></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b8">r</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p2">(<span class="default"><font color="Olive" title="b5">c1</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p3">(<span class="default"><font color="Olive" title="b3">a</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b1">m1</font></span>)</span></span>)</span></span>)</span> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <span class="p1">(<span class="default"><font color="Olive" title="b1">m1</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p2">(<span class="default"><font color="Olive" title="b3">a</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b1">m1</font></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp; <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Olive" title="b4">b</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p4">(<span class="default"><font color="Olive" title="b4">b</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b2">m2</font></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b9">s</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p2">(<span class="default"><font color="Olive" title="b6">c2</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p3">(<span class="default"><font color="Olive" title="b4">b</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b2">m2</font></span>)</span></span>)</span></span>)</span> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <span class="p1">(<span class="default"><font color="Olive" title="b2">m2</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p2">(<span class="default"><font color="Olive" title="b4">b</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b2">m2</font></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  &amp; <span class="p1">(<span class="default"><span class="p2">(<span class="default"><span class="p3">(<span class="default"><font color="Olive" title="b1">m1</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p4">(<span class="default"><font color="Olive" title="b3">a</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b1">m1</font></span>)</span></span>)</span> <a href="xcmplx_0.html#K3" title="XCMPLX_0:func.3">*</a> <font color="Olive" title="b7">w</font></span>)</span> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <span class="p2">(<span class="default"><font color="Olive" title="b9">s</font> <a href="xcmplx_0.html#K6" title="XCMPLX_0:func.6">-</a> <font color="Olive" title="b8">r</font></span>)</span></span>)</span> <a href="int_1.html#K5" title="INT_1:func.5">mod</a> <span class="p1">(<span class="default"><font color="Olive" title="b2">m2</font> <a href="int_1.html#K4" title="INT_1:func.4">div</a> <span class="p2">(<span class="default"><font color="Olive" title="b4">b</font> <a href="int_2.html#K3" title="INT_2:func.3">gcd</a> <font color="Olive" title="b2">m2</font></span>)</span></span>)</span> <a href="hidden.html#R1" title="HIDDEN:pred.1">=</a>  <a href="numbers.html#K5" title="NUMBERS:func.5">0</a>  )</div></div>
