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

Theorem bezoutlemstep 12799
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 12798 . . 3 (𝜃 → [(𝑦 mod 𝑊) / 𝑟]𝜑)
9 bezoutlemstep.hyp . . 3 ((𝜃 ∧ [(𝑦 mod 𝑊) / 𝑟]𝜑) → ∃𝑟 ∈ ℕ0 ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑))
108, 9mpdan 425 . 2 (𝜃 → ∃𝑟 ∈ ℕ0 ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑))
11 bezoutlemstep.thr . . 3 Ⅎ𝑟𝜃
12 eqidd 2239 . . . . . 6 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → (𝑦 mod 𝑊) = (𝑦 mod 𝑊))
136nn0zd 9777 . . . . . . . 8 (𝜃 → 𝑦 ∈ ℤ)
1413ad2antrr 492 . . . . . . 7 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → 𝑦 ∈ ℤ)
154ad2antrr 492 . . . . . . 7 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → 𝑊 ∈ ℕ)
1613, 4zmodcld 10803 . . . . . . . 8 (𝜃 → (𝑦 mod 𝑊) ∈ ℕ0)
1716ad2antrr 492 . . . . . . 7 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → (𝑦 mod 𝑊) ∈ ℕ0)
18 zq 10042 . . . . . . . . 9 (𝑦 ∈ ℤ → 𝑦 ∈ ℚ)
1914, 18syl 14 . . . . . . . 8 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → 𝑦 ∈ ℚ)
2015nnzd 9778 . . . . . . . . 9 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → 𝑊 ∈ ℤ)
21 zq 10042 . . . . . . . . 9 (𝑊 ∈ ℤ → 𝑊 ∈ ℚ)
2220, 21syl 14 . . . . . . . 8 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → 𝑊 ∈ ℚ)
2315nngt0d 9357 . . . . . . . 8 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → 0 < 𝑊)
24 modqlt 10791 . . . . . . . 8 ((𝑦 ∈ ℚ ∧ 𝑊 ∈ ℚ ∧ 0 < 𝑊) → (𝑦 mod 𝑊) < 𝑊)
2519, 22, 23, 24syl3anc 1278 . . . . . . 7 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → (𝑦 mod 𝑊) < 𝑊)
26 modremain 12721 . . . . . . 7 ((𝑦 ∈ ℤ ∧ 𝑊 ∈ ℕ ∧ ((𝑦 mod 𝑊) ∈ ℕ0 ∧ (𝑦 mod 𝑊) < 𝑊)) → ((𝑦 mod 𝑊) = (𝑦 mod 𝑊) ↔ ∃𝑞 ∈ ℤ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦))
2714, 15, 17, 25, 26syl112anc 1282 . . . . . 6 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → ((𝑦 mod 𝑊) = (𝑦 mod 𝑊) ↔ ∃𝑞 ∈ ℤ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦))
2812, 27mpbid 147 . . . . 5 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → ∃𝑞 ∈ ℤ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)
29 simplrl 541 . . . . . . . . . . . . . 14 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → [(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓)
30 bezoutlemstep.thx . . . . . . . . . . . . . . . . 17 Ⅎ𝑥𝜃
31 bezoutlemstep.sub-gcd . . . . . . . . . . . . . . . . . . 19 (𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)))
3231sbcbii 3111 . . . . . . . . . . . . . . . . . 18 ([𝑊 / 𝑦]𝜓 ↔ [𝑊 / 𝑦]∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)))
33 breq2 4135 . . . . . . . . . . . . . . . . . . . . . . 23 (𝑦 = 𝑊 → (𝑧 ∥ 𝑦 ↔ 𝑧 ∥ 𝑊))
3433anbi2d 468 . . . . . . . . . . . . . . . . . . . . . 22 (𝑦 = 𝑊 → ((𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦) ↔ (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊)))
3534imbi2d 230 . . . . . . . . . . . . . . . . . . . . 21 (𝑦 = 𝑊 → ((𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)) ↔ (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊))))
3635ralbidv 2550 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = 𝑊 → (∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊))))
3736sbcieg 3084 . . . . . . . . . . . . . . . . . . 19 (𝑊 ∈ ℕ → ([𝑊 / 𝑦]∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊))))
384, 37syl 14 . . . . . . . . . . . . . . . . . 18 (𝜃 → ([𝑊 / 𝑦]∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊))))
3932, 38bitrid 192 . . . . . . . . . . . . . . . . 17 (𝜃 → ([𝑊 / 𝑦]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊))))
4030, 39sbcbid 3109 . . . . . . . . . . . . . . . 16 (𝜃 → ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ↔ [(𝑦 mod 𝑊) / 𝑥]∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊))))
41 breq2 4135 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 = (𝑦 mod 𝑊) → (𝑧 ∥ 𝑥 ↔ 𝑧 ∥ (𝑦 mod 𝑊)))
4241anbi1d 469 . . . . . . . . . . . . . . . . . . . 20 (𝑥 = (𝑦 mod 𝑊) → ((𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊) ↔ (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊)))
4342imbi2d 230 . . . . . . . . . . . . . . . . . . 19 (𝑥 = (𝑦 mod 𝑊) → ((𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊)) ↔ (𝑧 ∥ 𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊))))
4443ralbidv 2550 . . . . . . . . . . . . . . . . . 18 (𝑥 = (𝑦 mod 𝑊) → (∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊)) ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊))))
4544sbcieg 3084 . . . . . . . . . . . . . . . . 17 ((𝑦 mod 𝑊) ∈ ℕ0 → ([(𝑦 mod 𝑊) / 𝑥]∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊)) ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊))))
4616, 45syl 14 . . . . . . . . . . . . . . . 16 (𝜃 → ([(𝑦 mod 𝑊) / 𝑥]∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑊)) ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊))))
4740, 46bitrd 188 . . . . . . . . . . . . . . 15 (𝜃 → ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊))))
4847ad3antrrr 496 . . . . . . . . . . . . . 14 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊))))
4929, 48mpbid 147 . . . . . . . . . . . . 13 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊)))
5049r19.21bi 2638 . . . . . . . . . . . 12 (((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) → (𝑧 ∥ 𝑟 → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊)))
5150imp 124 . . . . . . . . . . 11 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → (𝑧 ∥ (𝑦 mod 𝑊) ∧ 𝑧 ∥ 𝑊))
5251simprd 114 . . . . . . . . . 10 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → 𝑧 ∥ 𝑊)
53 simplr 533 . . . . . . . . . . . . . . 15 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → 𝑧 ∈ ℕ0)
5453nn0zd 9777 . . . . . . . . . . . . . 14 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → 𝑧 ∈ ℤ)
55 simprl 535 . . . . . . . . . . . . . . 15 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → 𝑞 ∈ ℤ)
5655ad2antrr 492 . . . . . . . . . . . . . 14 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → 𝑞 ∈ ℤ)
5720ad3antrrr 496 . . . . . . . . . . . . . 14 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → 𝑊 ∈ ℤ)
58 dvdsmultr2 12625 . . . . . . . . . . . . . 14 ((𝑧 ∈ ℤ ∧ 𝑞 ∈ ℤ ∧ 𝑊 ∈ ℤ) → (𝑧 ∥ 𝑊 → 𝑧 ∥ (𝑞 · 𝑊)))
5954, 56, 57, 58syl3anc 1278 . . . . . . . . . . . . 13 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → (𝑧 ∥ 𝑊 → 𝑧 ∥ (𝑞 · 𝑊)))
6052, 59mpd 13 . . . . . . . . . . . 12 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → 𝑧 ∥ (𝑞 · 𝑊))
6151simpld 112 . . . . . . . . . . . 12 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → 𝑧 ∥ (𝑦 mod 𝑊))
6256, 57zmulcld 9785 . . . . . . . . . . . . 13 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → (𝑞 · 𝑊) ∈ ℤ)
6317ad3antrrr 496 . . . . . . . . . . . . . 14 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → (𝑦 mod 𝑊) ∈ ℕ0)
6463nn0zd 9777 . . . . . . . . . . . . 13 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → (𝑦 mod 𝑊) ∈ ℤ)
65 dvds2add 12617 . . . . . . . . . . . . 13 ((𝑧 ∈ ℤ ∧ (𝑞 · 𝑊) ∈ ℤ ∧ (𝑦 mod 𝑊) ∈ ℤ) → ((𝑧 ∥ (𝑞 · 𝑊) ∧ 𝑧 ∥ (𝑦 mod 𝑊)) → 𝑧 ∥ ((𝑞 · 𝑊) + (𝑦 mod 𝑊))))
6654, 62, 64, 65syl3anc 1278 . . . . . . . . . . . 12 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → ((𝑧 ∥ (𝑞 · 𝑊) ∧ 𝑧 ∥ (𝑦 mod 𝑊)) → 𝑧 ∥ ((𝑞 · 𝑊) + (𝑦 mod 𝑊))))
6760, 61, 66mp2and 437 . . . . . . . . . . 11 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → 𝑧 ∥ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)))
68 simprr 537 . . . . . . . . . . . 12 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)
6968ad2antrr 492 . . . . . . . . . . 11 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)
7067, 69breqtrd 4157 . . . . . . . . . 10 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → 𝑧 ∥ 𝑦)
7152, 70jca 306 . . . . . . . . 9 ((((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) ∧ 𝑧 ∥ 𝑟) → (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦))
7271ex 115 . . . . . . . 8 (((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) ∧ 𝑧 ∈ ℕ0) → (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦)))
7372ralrimiva 2623 . . . . . . 7 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦)))
7431sbcbii 3111 . . . . . . . . 9 ([𝑊 / 𝑥]𝜓 ↔ [𝑊 / 𝑥]∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)))
75 breq2 4135 . . . . . . . . . . . . . 14 (𝑥 = 𝑊 → (𝑧 ∥ 𝑥 ↔ 𝑧 ∥ 𝑊))
7675anbi1d 469 . . . . . . . . . . . . 13 (𝑥 = 𝑊 → ((𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦) ↔ (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦)))
7776imbi2d 230 . . . . . . . . . . . 12 (𝑥 = 𝑊 → ((𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)) ↔ (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦))))
7877ralbidv 2550 . . . . . . . . . . 11 (𝑥 = 𝑊 → (∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦))))
7978sbcieg 3084 . . . . . . . . . 10 (𝑊 ∈ ℕ → ([𝑊 / 𝑥]∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦))))
804, 79syl 14 . . . . . . . . 9 (𝜃 → ([𝑊 / 𝑥]∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑥 ∧ 𝑧 ∥ 𝑦)) ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦))))
8174, 80bitrid 192 . . . . . . . 8 (𝜃 → ([𝑊 / 𝑥]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦))))
8281ad3antrrr 496 . . . . . . 7 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ([𝑊 / 𝑥]𝜓 ↔ ∀𝑧 ∈ ℕ0 (𝑧 ∥ 𝑟 → (𝑧 ∥ 𝑊 ∧ 𝑧 ∥ 𝑦))))
8373, 82mpbird 167 . . . . . 6 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → [𝑊 / 𝑥]𝜓)
84 simplrr 542 . . . . . 6 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → 𝜑)
8583, 84jca 306 . . . . 5 ((((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) ∧ (𝑞 ∈ ℤ ∧ ((𝑞 · 𝑊) + (𝑦 mod 𝑊)) = 𝑦)) → ([𝑊 / 𝑥]𝜓 ∧ 𝜑))
8628, 85rexlimddv 2673 . . . 4 (((𝜃 ∧ 𝑟 ∈ ℕ0) ∧ ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑)) → ([𝑊 / 𝑥]𝜓 ∧ 𝜑))
8786exp31 364 . . 3 (𝜃 → (𝑟 ∈ ℕ0 → (([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑) → ([𝑊 / 𝑥]𝜓 ∧ 𝜑))))
8811, 87reximdai 2648 . 2 (𝜃 → (∃𝑟 ∈ ℕ0 ([(𝑦 mod 𝑊) / 𝑥][𝑊 / 𝑦]𝜓 ∧ 𝜑) → ∃𝑟 ∈ ℕ0 ([𝑊 / 𝑥]𝜓 ∧ 𝜑)))
8910, 88mpd 13 1 (𝜃 → ∃𝑟 ∈ ℕ0 ([𝑊 / 𝑥]𝜓 ∧ 𝜑))
Colors of variables:    wff set class
This proof depends on syntax axioms:   → wi 4   ∧ wa 104   ↔ wb 105   = wceq 1402  Ⅎwnf 1513  [wsb 1815   ∈ wcel 2209  ∀wral 2528  ∃wrex 2529  [wsbc 3051   class class class wbr 4131  (class class class)co 6088  0cc0 8185   + caddc 8188   · cmul 8190   < clt 8366  ℕcn 9313  ℕ0cn0 9574  ℤcz 9655  ℚcq 10035   mod cmo 10780   ∥ cdvds 12579
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 106  ax-ia2 107  ax-ia3 108  ax-in1 623  ax-in2 624  ax-io 721  ax-5 1500  ax-7 1501  ax-gen 1502  ax-ie1 1546  ax-ie2 1547  ax-8 1557  ax-10 1558  ax-11 1559  ax-i12 1560  ax-bndl 1562  ax-4 1563  ax-17 1579  ax-i9 1583  ax-ial 1587  ax-i5r 1588  ax-14 2212  ax-ext 2220  ax-coll 4248  ax-sep 4251  ax-nul 4261  ax-pow 4313  ax-pr 4348  ax-un 4580  ax-setind 4686  ax-iinf 4737  ax-cnex 8276  ax-resscn 8277  ax-1cn 8278  ax-1re 8279  ax-icn 8280  ax-addcl 8281  ax-addrcl 8282  ax-mulcl 8283  ax-mulrcl 8284  ax-addcom 8285  ax-mulcom 8286  ax-addass 8287  ax-mulass 8288  ax-distr 8289  ax-i2m1 8290  ax-0lt1 8291  ax-1rid 8292  ax-0id 8293  ax-rnegex 8294  ax-precex 8295  ax-cnre 8296  ax-pre-ltirr 8297  ax-pre-ltwlin 8298  ax-pre-lttrn 8299  ax-pre-apti 8300  ax-pre-ltadd 8301  ax-pre-mulgt0 8302  ax-pre-mulext 8303  ax-arch 8304
This proof depends on definitions:  df-bi 117  df-dc 847  df-3or 1010  df-3an 1011  df-tru 1405  df-fal 1408  df-nf 1514  df-sb 1816  df-eu 2089  df-mo 2090  df-clab 2225  df-cleq 2231  df-clel 2234  df-nfc 2381  df-ne 2421  df-nel 2516  df-ral 2533  df-rex 2534  df-reu 2535  df-rmo 2536  df-rab 2537  df-v 2823  df-sbc 3052  df-csb 3148  df-dif 3222  df-un 3224  df-in 3226  df-ss 3233  df-nul 3521  df-if 3639  df-pw 3690  df-sn 3715  df-pr 3716  df-op 3718  df-uni 3936  df-int 3971  df-iun 4014  df-br 4132  df-opab 4194  df-mpt 4195  df-tr 4232  df-id 4440  df-po 4443  df-iso 4444  df-iord 4513  df-on 4515  df-ilim 4516  df-suc 4518  df-iom 4740  df-xp 4782  df-rel 4783  df-cnv 4784  df-co 4785  df-dm 4786  df-rn 4787  df-res 4788  df-ima 4789  df-iota 5340  df-fun 5382  df-fn 5383  df-f 5384  df-f1 5385  df-fo 5386  df-f1o 5387  df-fv 5388  df-riota 6041  df-ov 6091  df-oprab 6092  df-mpo 6093  df-1st 6378  df-2nd 6379  df-recs 6580  df-frec 6666  df-pnf 8368  df-mnf 8369  df-xr 8370  df-ltxr 8371  df-le 8372  df-sub 8506  df-neg 8507  df-reap 8911  df-ap 8918  df-div 9011  df-inn 9314  df-2 9372  df-n0 9575  df-z 9656  df-uz 9938  df-q 10036  df-rp 10072  df-fl 10722  df-mod 10781  df-seqfrec 10906  df-exp 10997  df-cj 11629  df-re 11630  df-im 11631  df-rsqrt 11786  df-abs 11787  df-dvds 12580
This theorem is used by:  bezoutlemmain  12800
  Copyright terms: Public domain W3C validator