Metamath Proof Explorer |
< Previous
Next >
Nearby theorems |
||
Mirrors > Home > MPE Home > Th. List > cncongrcoprm | Structured version Visualization version GIF version |
Description: Corollary 1 of Cancellability of Congruences: Two products with a common factor are congruent modulo an integer being coprime to the common factor iff the other factors are congruent modulo the integer. (Contributed by AV, 13-Jul-2021.) |
Ref | Expression |
---|---|
cncongrcoprm | ⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℤ) ∧ (𝑁 ∈ ℕ ∧ (𝐶 gcd 𝑁) = 1)) → (((𝐴 · 𝐶) mod 𝑁) = ((𝐵 · 𝐶) mod 𝑁) ↔ (𝐴 mod 𝑁) = (𝐵 mod 𝑁))) |
Step | Hyp | Ref | Expression |
---|---|---|---|
1 | simpl 486 | . . 3 ⊢ ((𝑁 ∈ ℕ ∧ (𝐶 gcd 𝑁) = 1) → 𝑁 ∈ ℕ) | |
2 | nncn 11886 | . . . . 5 ⊢ (𝑁 ∈ ℕ → 𝑁 ∈ ℂ) | |
3 | 2 | div1d 11648 | . . . 4 ⊢ (𝑁 ∈ ℕ → (𝑁 / 1) = 𝑁) |
4 | oveq2 7260 | . . . . 5 ⊢ ((𝐶 gcd 𝑁) = 1 → (𝑁 / (𝐶 gcd 𝑁)) = (𝑁 / 1)) | |
5 | 4 | eqcomd 2745 | . . . 4 ⊢ ((𝐶 gcd 𝑁) = 1 → (𝑁 / 1) = (𝑁 / (𝐶 gcd 𝑁))) |
6 | 3, 5 | sylan9req 2801 | . . 3 ⊢ ((𝑁 ∈ ℕ ∧ (𝐶 gcd 𝑁) = 1) → 𝑁 = (𝑁 / (𝐶 gcd 𝑁))) |
7 | 1, 6 | jca 515 | . 2 ⊢ ((𝑁 ∈ ℕ ∧ (𝐶 gcd 𝑁) = 1) → (𝑁 ∈ ℕ ∧ 𝑁 = (𝑁 / (𝐶 gcd 𝑁)))) |
8 | cncongr 16277 | . 2 ⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℤ) ∧ (𝑁 ∈ ℕ ∧ 𝑁 = (𝑁 / (𝐶 gcd 𝑁)))) → (((𝐴 · 𝐶) mod 𝑁) = ((𝐵 · 𝐶) mod 𝑁) ↔ (𝐴 mod 𝑁) = (𝐵 mod 𝑁))) | |
9 | 7, 8 | sylan2 596 | 1 ⊢ (((𝐴 ∈ ℤ ∧ 𝐵 ∈ ℤ ∧ 𝐶 ∈ ℤ) ∧ (𝑁 ∈ ℕ ∧ (𝐶 gcd 𝑁) = 1)) → (((𝐴 · 𝐶) mod 𝑁) = ((𝐵 · 𝐶) mod 𝑁) ↔ (𝐴 mod 𝑁) = (𝐵 mod 𝑁))) |
Colors of variables: wff setvar class |
Syntax hints: → wi 4 ↔ wb 209 ∧ wa 399 ∧ w3a 1089 = wceq 1543 ∈ wcel 2112 (class class class)co 7252 1c1 10778 · cmul 10782 / cdiv 11537 ℕcn 11878 ℤcz 12224 mod cmo 13492 gcd cgcd 16104 |
This theorem was proved from axioms: ax-mp 5 ax-1 6 ax-2 7 ax-3 8 ax-gen 1803 ax-4 1817 ax-5 1918 ax-6 1976 ax-7 2016 ax-8 2114 ax-9 2122 ax-10 2143 ax-11 2160 ax-12 2177 ax-ext 2710 ax-sep 5216 ax-nul 5223 ax-pow 5282 ax-pr 5346 ax-un 7563 ax-cnex 10833 ax-resscn 10834 ax-1cn 10835 ax-icn 10836 ax-addcl 10837 ax-addrcl 10838 ax-mulcl 10839 ax-mulrcl 10840 ax-mulcom 10841 ax-addass 10842 ax-mulass 10843 ax-distr 10844 ax-i2m1 10845 ax-1ne0 10846 ax-1rid 10847 ax-rnegex 10848 ax-rrecex 10849 ax-cnre 10850 ax-pre-lttri 10851 ax-pre-lttrn 10852 ax-pre-ltadd 10853 ax-pre-mulgt0 10854 ax-pre-sup 10855 |
This theorem depends on definitions: df-bi 210 df-an 400 df-or 848 df-3or 1090 df-3an 1091 df-tru 1546 df-fal 1556 df-ex 1788 df-nf 1792 df-sb 2073 df-mo 2541 df-eu 2570 df-clab 2717 df-cleq 2731 df-clel 2818 df-nfc 2889 df-ne 2944 df-nel 3050 df-ral 3069 df-rex 3070 df-reu 3071 df-rmo 3072 df-rab 3073 df-v 3425 df-sbc 3713 df-csb 3830 df-dif 3887 df-un 3889 df-in 3891 df-ss 3901 df-pss 3903 df-nul 4255 df-if 4457 df-pw 4532 df-sn 4559 df-pr 4561 df-tp 4563 df-op 4565 df-uni 4837 df-iun 4923 df-br 5071 df-opab 5133 df-mpt 5153 df-tr 5186 df-id 5479 df-eprel 5485 df-po 5493 df-so 5494 df-fr 5534 df-we 5536 df-xp 5585 df-rel 5586 df-cnv 5587 df-co 5588 df-dm 5589 df-rn 5590 df-res 5591 df-ima 5592 df-pred 6189 df-ord 6251 df-on 6252 df-lim 6253 df-suc 6254 df-iota 6373 df-fun 6417 df-fn 6418 df-f 6419 df-f1 6420 df-fo 6421 df-f1o 6422 df-fv 6423 df-riota 7209 df-ov 7255 df-oprab 7256 df-mpo 7257 df-om 7685 df-2nd 7802 df-wrecs 8089 df-recs 8150 df-rdg 8188 df-er 8433 df-en 8669 df-dom 8670 df-sdom 8671 df-sup 9106 df-inf 9107 df-pnf 10917 df-mnf 10918 df-xr 10919 df-ltxr 10920 df-le 10921 df-sub 11112 df-neg 11113 df-div 11538 df-nn 11879 df-2 11941 df-3 11942 df-n0 12139 df-z 12225 df-uz 12487 df-rp 12635 df-fl 13415 df-mod 13493 df-seq 13625 df-exp 13686 df-cj 14713 df-re 14714 df-im 14715 df-sqrt 14849 df-abs 14850 df-dvds 15867 df-gcd 16105 |
This theorem is referenced by: cncongrprm 16336 gausslemma2dlem7 26401 |
Copyright terms: Public domain | W3C validator |