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

Theorem gcdcllem2 15060
Description: Lemma for gcdn0cl 15062, gcddvds 15063 and dvdslegcd 15064. (Contributed by Paul Chapman, 21-Mar-2011.)
Hypotheses
Ref Expression
gcdcllem2.1 𝑆 = {𝑧 ∈ ℤ ∣ ∀𝑛 ∈ {𝑀, 𝑁}𝑧𝑛}
gcdcllem2.2 𝑅 = {𝑧 ∈ ℤ ∣ (𝑧𝑀𝑧𝑁)}
Assertion
Ref Expression
gcdcllem2 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 𝑅 = 𝑆)
Distinct variable groups:   𝑧,𝑛,𝑀   𝑛,𝑁,𝑧
Allowed substitution hints:   𝑅(𝑧,𝑛)   𝑆(𝑧,𝑛)

Proof of Theorem gcdcllem2
Dummy variable 𝑥 is distinct from all other variables.
StepHypRef Expression
1 breq1 4586 . . . . . 6 (𝑧 = 𝑥 → (𝑧𝑛𝑥𝑛))
21ralbidv 2969 . . . . 5 (𝑧 = 𝑥 → (∀𝑛 ∈ {𝑀, 𝑁}𝑧𝑛 ↔ ∀𝑛 ∈ {𝑀, 𝑁}𝑥𝑛))
3 gcdcllem2.1 . . . . 5 𝑆 = {𝑧 ∈ ℤ ∣ ∀𝑛 ∈ {𝑀, 𝑁}𝑧𝑛}
42, 3elrab2 3333 . . . 4 (𝑥𝑆 ↔ (𝑥 ∈ ℤ ∧ ∀𝑛 ∈ {𝑀, 𝑁}𝑥𝑛))
5 breq2 4587 . . . . . 6 (𝑛 = 𝑀 → (𝑥𝑛𝑥𝑀))
6 breq2 4587 . . . . . 6 (𝑛 = 𝑁 → (𝑥𝑛𝑥𝑁))
75, 6ralprg 4181 . . . . 5 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (∀𝑛 ∈ {𝑀, 𝑁}𝑥𝑛 ↔ (𝑥𝑀𝑥𝑁)))
87anbi2d 736 . . . 4 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → ((𝑥 ∈ ℤ ∧ ∀𝑛 ∈ {𝑀, 𝑁}𝑥𝑛) ↔ (𝑥 ∈ ℤ ∧ (𝑥𝑀𝑥𝑁))))
94, 8syl5bb 271 . . 3 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑥𝑆 ↔ (𝑥 ∈ ℤ ∧ (𝑥𝑀𝑥𝑁))))
10 breq1 4586 . . . . 5 (𝑧 = 𝑥 → (𝑧𝑀𝑥𝑀))
11 breq1 4586 . . . . 5 (𝑧 = 𝑥 → (𝑧𝑁𝑥𝑁))
1210, 11anbi12d 743 . . . 4 (𝑧 = 𝑥 → ((𝑧𝑀𝑧𝑁) ↔ (𝑥𝑀𝑥𝑁)))
13 gcdcllem2.2 . . . 4 𝑅 = {𝑧 ∈ ℤ ∣ (𝑧𝑀𝑧𝑁)}
1412, 13elrab2 3333 . . 3 (𝑥𝑅 ↔ (𝑥 ∈ ℤ ∧ (𝑥𝑀𝑥𝑁)))
159, 14syl6rbbr 278 . 2 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → (𝑥𝑅𝑥𝑆))
1615eqrdv 2608 1 ((𝑀 ∈ ℤ ∧ 𝑁 ∈ ℤ) → 𝑅 = 𝑆)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 383   = wceq 1475  wcel 1977  wral 2896  {crab 2900  {cpr 4127   class class class wbr 4583  cz 11254  cdvds 14821
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1713  ax-4 1728  ax-5 1827  ax-6 1875  ax-7 1922  ax-10 2006  ax-11 2021  ax-12 2034  ax-13 2234  ax-ext 2590
This theorem depends on definitions:  df-bi 196  df-or 384  df-an 385  df-3an 1033  df-tru 1478  df-ex 1696  df-nf 1701  df-sb 1868  df-clab 2597  df-cleq 2603  df-clel 2606  df-nfc 2740  df-ral 2901  df-rab 2905  df-v 3175  df-sbc 3403  df-dif 3543  df-un 3545  df-in 3547  df-ss 3554  df-nul 3875  df-if 4037  df-sn 4126  df-pr 4128  df-op 4132  df-br 4584
This theorem is referenced by:  gcdcllem3  15061
  Copyright terms: Public domain W3C validator