ILE Home Intuitionistic Logic Explorer < Previous   Next >
Nearby theorems
Mirrors  >  Home  >  ILE Home  >  Th. List  >  bezoutlemstep GIF version

Theorem bezoutlemstep 11688
Description: Lemma for Bézout's identity. This is the induction step for the proof by induction. (Contributed by Jim Kingdon, 3-Jan-2022.)
Hypotheses
Ref Expression
bezoutlemstep.is-bezout (𝜑 ↔ ∃𝑠 ∈ ℤ ∃𝑡 ∈ ℤ 𝑟 = ((𝐴 · 𝑠) + (𝐵 · 𝑡)))
bezoutlemstep.a (𝜃𝐴 ∈ ℕ0)
bezoutlemstep.b (𝜃𝐵 ∈ ℕ0)
bezoutlemstep.w (𝜃𝑊 ∈ ℕ)
bezoutlemstep.y-is-bezout (𝜃 → [𝑦 / 𝑟]𝜑)
bezoutlemstep.y-nn0 (𝜃𝑦 ∈ ℕ0)
bezoutlemstep.w-is-bezout (𝜃[𝑊 / 𝑟]𝜑)
bezoutlemstep.sub-gcd (𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)))
bezoutlemstep.hyp ((𝜃[(𝑦 mod 𝑊) / 𝑟]𝜑) → ∃𝑟 ∈ ℕ0 ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑))
bezoutlemstep.thx 𝑥𝜃
bezoutlemstep.thr 𝑟𝜃
Assertion
Ref Expression
bezoutlemstep (𝜃 → ∃𝑟 ∈ ℕ0 ([𝑊 / 𝑥]𝜓𝜑))
Distinct variable groups:   𝐴,𝑟,𝑠,𝑡   𝐵,𝑟,𝑠,𝑡   𝑊,𝑟,𝑥,𝑦,𝑧   𝑊,𝑠,𝑡,𝑦   𝜑,𝑧   𝜑,𝑠,𝑡   𝜓,𝑧   𝜃,𝑧   𝜃,𝑠,𝑡
Allowed substitution hints:   𝜑(𝑥,𝑦,𝑟)   𝜓(𝑥,𝑦,𝑡,𝑠,𝑟)   𝜃(𝑥,𝑦,𝑟)   𝐴(𝑥,𝑦,𝑧)   𝐵(𝑥,𝑦,𝑧)

Proof of Theorem bezoutlemstep
Dummy variable 𝑞 is distinct from all other variables.
StepHypRef Expression
1 bezoutlemstep.is-bezout . . . 4 (𝜑 ↔ ∃𝑠 ∈ ℤ ∃𝑡 ∈ ℤ 𝑟 = ((𝐴 · 𝑠) + (𝐵 · 𝑡)))
2 bezoutlemstep.a . . . 4 (𝜃𝐴 ∈ ℕ0)
3 bezoutlemstep.b . . . 4 (𝜃𝐵 ∈ ℕ0)
4 bezoutlemstep.w . . . 4 (𝜃𝑊 ∈ ℕ)
5 bezoutlemstep.y-is-bezout . . . 4 (𝜃 → [𝑦 / 𝑟]𝜑)
6 bezoutlemstep.y-nn0 . . . 4 (𝜃𝑦 ∈ ℕ0)
7 bezoutlemstep.w-is-bezout . . . 4 (𝜃[𝑊 / 𝑟]𝜑)
81, 2, 3, 4, 5, 6, 7bezoutlemnewy 11687 . . 3 (𝜃[(𝑦 mod 𝑊) / 𝑟]𝜑)
9 bezoutlemstep.hyp . . 3 ((𝜃[(𝑦 mod 𝑊) / 𝑟]𝜑) → ∃𝑟 ∈ ℕ0 ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑))
108, 9mpdan 417 . 2 (𝜃 → ∃𝑟 ∈ ℕ0 ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑))
11 bezoutlemstep.thr . . 3 𝑟𝜃
12 eqidd 2140 . . . . . 6 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → (𝑦 mod 𝑊) = (𝑦 mod 𝑊))
136nn0zd 9174 . . . . . . . 8 (𝜃𝑦 ∈ ℤ)
1413ad2antrr 479 . . . . . . 7 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → 𝑦 ∈ ℤ)
154ad2antrr 479 . . . . . . 7 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → 𝑊 ∈ ℕ)
1613, 4zmodcld 10121 . . . . . . . 8 (𝜃 → (𝑦 mod 𝑊) ∈ ℕ0)
1716ad2antrr 479 . . . . . . 7 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → (𝑦 mod 𝑊) ∈ ℕ0)
18 zq 9421 . . . . . . . . 9 (𝑦 ∈ ℤ → 𝑦 ∈ ℚ)
1914, 18syl 14 . . . . . . . 8 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → 𝑦 ∈ ℚ)
2015nnzd 9175 . . . . . . . . 9 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → 𝑊 ∈ ℤ)
21 zq 9421 . . . . . . . . 9 (𝑊 ∈ ℤ → 𝑊 ∈ ℚ)
2220, 21syl 14 . . . . . . . 8 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → 𝑊 ∈ ℚ)
2315nngt0d 8767 . . . . . . . 8 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → 0 < 𝑊)
24 modqlt 10109 . . . . . . . 8 ((𝑦 ∈ ℚ ∧ 𝑊 ∈ ℚ ∧ 0 < 𝑊) → (𝑦 mod 𝑊) < 𝑊)
2519, 22, 23, 24syl3anc 1216 . . . . . . 7 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → (𝑦 mod 𝑊) < 𝑊)
26 modremain 11629 . . . . . . 7 ((𝑦 ∈ ℤ ∧ 𝑊 ∈ ℕ ∧ ((𝑦 mod 𝑊) ∈ ℕ0 ∧ (𝑦 mod 𝑊) < 𝑊)) → ((𝑦 mod 𝑊) = (𝑦 mod 𝑊) ↔ ∃𝑞 ∈ ℤ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦))
2714, 15, 17, 25, 26syl112anc 1220 . . . . . 6 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → ((𝑦 mod 𝑊) = (𝑦 mod 𝑊) ↔ ∃𝑞 ∈ ℤ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦))
2812, 27mpbid 146 . . . . 5 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → ∃𝑞 ∈ ℤ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)
29 simplrl 524 . . . . . . . . . . . . . 14 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → [(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓)
30 bezoutlemstep.thx . . . . . . . . . . . . . . . . 17 𝑥𝜃
31 bezoutlemstep.sub-gcd . . . . . . . . . . . . . . . . . . 19 (𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)))
3231sbcbii 2968 . . . . . . . . . . . . . . . . . 18 ([𝑊 / 𝑦]𝜓[𝑊 / 𝑦]𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)))
33 breq2 3933 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 = 𝑊 → (𝑧𝑦𝑧𝑊))
3433anbi2d 459 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 = 𝑊 → ((𝑧𝑥𝑧𝑦) ↔ (𝑧𝑥𝑧𝑊)))
3534imbi2d 229 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 = 𝑊 → ((𝑧𝑟 → (𝑧𝑥𝑧𝑦)) ↔ (𝑧𝑟 → (𝑧𝑥𝑧𝑊))))
3635ralbidv 2437 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = 𝑊 → (∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑊))))
3736sbcieg 2941 . . . . . . . . . . . . . . . . . . 19 (𝑊 ∈ ℕ → ([𝑊 / 𝑦]𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑊))))
384, 37syl 14 . . . . . . . . . . . . . . . . . 18 (𝜃 → ([𝑊 / 𝑦]𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑊))))
3932, 38syl5bb 191 . . . . . . . . . . . . . . . . 17 (𝜃 → ([𝑊 / 𝑦]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑊))))
4030, 39sbcbid 2966 . . . . . . . . . . . . . . . 16 (𝜃 → ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓[(𝑦 mod 𝑊) / 𝑥]𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑊))))
41 breq2 3933 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 = (𝑦 mod 𝑊) → (𝑧𝑥𝑧 ∥ (𝑦 mod 𝑊)))
4241anbi1d 460 . . . . . . . . . . . . . . . . . . . 20 (𝑥 = (𝑦 mod 𝑊) → ((𝑧𝑥𝑧𝑊) ↔ (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊)))
4342imbi2d 229 . . . . . . . . . . . . . . . . . . 19 (𝑥 = (𝑦 mod 𝑊) → ((𝑧𝑟 → (𝑧𝑥𝑧𝑊)) ↔ (𝑧𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊))))
4443ralbidv 2437 . . . . . . . . . . . . . . . . . 18 (𝑥 = (𝑦 mod 𝑊) → (∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑊)) ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊))))
4544sbcieg 2941 . . . . . . . . . . . . . . . . 17 ((𝑦 mod 𝑊) ∈ ℕ0 → ([(𝑦 mod 𝑊) / 𝑥]𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑊)) ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊))))
4616, 45syl 14 . . . . . . . . . . . . . . . 16 (𝜃 → ([(𝑦 mod 𝑊) / 𝑥]𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑊)) ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊))))
4740, 46bitrd 187 . . . . . . . . . . . . . . 15 (𝜃 → ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊))))
4847ad3antrrr 483 . . . . . . . . . . . . . 14 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊))))
4929, 48mpbid 146 . . . . . . . . . . . . 13 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊)))
5049r19.21bi 2520 . . . . . . . . . . . 12 (((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) → (𝑧𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊)))
5150imp 123 . . . . . . . . . . 11 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧𝑊))
5251simprd 113 . . . . . . . . . 10 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → 𝑧𝑊)
53 simplr 519 . . . . . . . . . . . . . . 15 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → 𝑧 ∈ ℕ0)
5453nn0zd 9174 . . . . . . . . . . . . . 14 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → 𝑧 ∈ ℤ)
55 simprl 520 . . . . . . . . . . . . . . 15 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → 𝑞 ∈ ℤ)
5655ad2antrr 479 . . . . . . . . . . . . . 14 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → 𝑞 ∈ ℤ)
5720ad3antrrr 483 . . . . . . . . . . . . . 14 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → 𝑊 ∈ ℤ)
58 dvdsmultr2 11536 . . . . . . . . . . . . . 14 ((𝑧 ∈ ℤ ∧ 𝑞 ∈ ℤ ∧ 𝑊 ∈ ℤ) → (𝑧𝑊𝑧 ∥ (𝑞 · 𝑊)))
5954, 56, 57, 58syl3anc 1216 . . . . . . . . . . . . 13 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → (𝑧𝑊𝑧 ∥ (𝑞 · 𝑊)))
6052, 59mpd 13 . . . . . . . . . . . 12 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → 𝑧 ∥ (𝑞 · 𝑊))
6151simpld 111 . . . . . . . . . . . 12 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → 𝑧 ∥ (𝑦 mod 𝑊))
6256, 57zmulcld 9182 . . . . . . . . . . . . 13 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → (𝑞 · 𝑊) ∈ ℤ)
6317ad3antrrr 483 . . . . . . . . . . . . . 14 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → (𝑦 mod 𝑊) ∈ ℕ0)
6463nn0zd 9174 . . . . . . . . . . . . 13 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → (𝑦 mod 𝑊) ∈ ℤ)
65 dvds2add 11530 . . . . . . . . . . . . 13 ((𝑧 ∈ ℤ ∧ (𝑞 · 𝑊) ∈ ℤ ∧ (𝑦 mod 𝑊) ∈ ℤ) → ((𝑧 ∥ (𝑞 · 𝑊) ∧ 𝑧 ∥ (𝑦 mod 𝑊)) → 𝑧 ∥ ((𝑞 · 𝑊) + (𝑦 mod 𝑊))))
6654, 62, 64, 65syl3anc 1216 . . . . . . . . . . . 12 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → ((𝑧 ∥ (𝑞 · 𝑊) ∧ 𝑧 ∥ (𝑦 mod 𝑊)) → 𝑧 ∥ ((𝑞 · 𝑊) + (𝑦 mod 𝑊))))
6760, 61, 66mp2and 429 . . . . . . . . . . 11 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → 𝑧 ∥ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)))
68 simprr 521 . . . . . . . . . . . 12 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)
6968ad2antrr 479 . . . . . . . . . . 11 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)
7067, 69breqtrd 3954 . . . . . . . . . 10 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → 𝑧𝑦)
7152, 70jca 304 . . . . . . . . 9 ((((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧𝑟) → (𝑧𝑊𝑧𝑦))
7271ex 114 . . . . . . . 8 (((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) → (𝑧𝑟 → (𝑧𝑊𝑧𝑦)))
7372ralrimiva 2505 . . . . . . 7 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑊𝑧𝑦)))
7431sbcbii 2968 . . . . . . . . 9 ([𝑊 / 𝑥]𝜓[𝑊 / 𝑥]𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)))
75 breq2 3933 . . . . . . . . . . . . . 14 (𝑥 = 𝑊 → (𝑧𝑥𝑧𝑊))
7675anbi1d 460 . . . . . . . . . . . . 13 (𝑥 = 𝑊 → ((𝑧𝑥𝑧𝑦) ↔ (𝑧𝑊𝑧𝑦)))
7776imbi2d 229 . . . . . . . . . . . 12 (𝑥 = 𝑊 → ((𝑧𝑟 → (𝑧𝑥𝑧𝑦)) ↔ (𝑧𝑟 → (𝑧𝑊𝑧𝑦))))
7877ralbidv 2437 . . . . . . . . . . 11 (𝑥 = 𝑊 → (∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑊𝑧𝑦))))
7978sbcieg 2941 . . . . . . . . . 10 (𝑊 ∈ ℕ → ([𝑊 / 𝑥]𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑊𝑧𝑦))))
804, 79syl 14 . . . . . . . . 9 (𝜃 → ([𝑊 / 𝑥]𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑥𝑧𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑊𝑧𝑦))))
8174, 80syl5bb 191 . . . . . . . 8 (𝜃 → ([𝑊 / 𝑥]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑊𝑧𝑦))))
8281ad3antrrr 483 . . . . . . 7 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ([𝑊 / 𝑥]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧𝑟 → (𝑧𝑊𝑧𝑦))))
8373, 82mpbird 166 . . . . . 6 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → [𝑊 / 𝑥]𝜓)
84 simplrr 525 . . . . . 6 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → 𝜑)
8583, 84jca 304 . . . . 5 ((((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ([𝑊 / 𝑥]𝜓𝜑))
8628, 85rexlimddv 2554 . . . 4 (((𝜃𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑)) → ([𝑊 / 𝑥]𝜓𝜑))
8786exp31 361 . . 3 (𝜃 → (𝑟 ∈ ℕ0 → (([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑) → ([𝑊 / 𝑥]𝜓𝜑))))
8811, 87reximdai 2530 . 2 (𝜃 → (∃𝑟 ∈ ℕ0 ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓𝜑) → ∃𝑟 ∈ ℕ0 ([𝑊 / 𝑥]𝜓𝜑)))
8910, 88mpd 13 1 (𝜃 → ∃𝑟 ∈ ℕ0 ([𝑊 / 𝑥]𝜓𝜑))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104   = wceq 1331  wnf 1436  wcel 1480  [wsb 1735  wral 2416  wrex 2417  [wsbc 2909   class class class wbr 3929  (class class class)co 5774  0cc0 7623   + caddc 7626   · cmul 7628   < clt 7803  cn 8723  0cn0 8980  cz 9057  cq 9414   mod cmo 10098  cdvds 11496
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121  ax-coll 4043  ax-sep 4046  ax-nul 4054  ax-pow 4098  ax-pr 4131  ax-un 4355  ax-setind 4452  ax-iinf 4502  ax-cnex 7714  ax-resscn 7715  ax-1cn 7716  ax-1re 7717  ax-icn 7718  ax-addcl 7719  ax-addrcl 7720  ax-mulcl 7721  ax-mulrcl 7722  ax-addcom 7723  ax-mulcom 7724  ax-addass 7725  ax-mulass 7726  ax-distr 7727  ax-i2m1 7728  ax-0lt1 7729  ax-1rid 7730  ax-0id 7731  ax-rnegex 7732  ax-precex 7733  ax-cnre 7734  ax-pre-ltirr 7735  ax-pre-ltwlin 7736  ax-pre-lttrn 7737  ax-pre-apti 7738  ax-pre-ltadd 7739  ax-pre-mulgt0 7740  ax-pre-mulext 7741  ax-arch 7742
This theorem depends on definitions:  df-bi 116  df-dc 820  df-3or 963  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2002  df-mo 2003  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ne 2309  df-nel 2404  df-ral 2421  df-rex 2422  df-reu 2423  df-rmo 2424  df-rab 2425  df-v 2688  df-sbc 2910  df-csb 3004  df-dif 3073  df-un 3075  df-in 3077  df-ss 3084  df-nul 3364  df-if 3475  df-pw 3512  df-sn 3533  df-pr 3534  df-op 3536  df-uni 3737  df-int 3772  df-iun 3815  df-br 3930  df-opab 3990  df-mpt 3991  df-tr 4027  df-id 4215  df-po 4218  df-iso 4219  df-iord 4288  df-on 4290  df-ilim 4291  df-suc 4293  df-iom 4505  df-xp 4545  df-rel 4546  df-cnv 4547  df-co 4548  df-dm 4549  df-rn 4550  df-res 4551  df-ima 4552  df-iota 5088  df-fun 5125  df-fn 5126  df-f 5127  df-f1 5128  df-fo 5129  df-f1o 5130  df-fv 5131  df-riota 5730  df-ov 5777  df-oprab 5778  df-mpo 5779  df-1st 6038  df-2nd 6039  df-recs 6202  df-frec 6288  df-pnf 7805  df-mnf 7806  df-xr 7807  df-ltxr 7808  df-le 7809  df-sub 7938  df-neg 7939  df-reap 8340  df-ap 8347  df-div 8436  df-inn 8724  df-2 8782  df-n0 8981  df-z 9058  df-uz 9330  df-q 9415  df-rp 9445  df-fl 10046  df-mod 10099  df-seqfrec 10222  df-exp 10296  df-cj 10617  df-re 10618  df-im 10619  df-rsqrt 10773  df-abs 10774  df-dvds 11497
This theorem is referenced by:  bezoutlemmain  11689
  Copyright terms: Public domain W3C validator