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

Theorem pitonnlem2 7699
 Description: Lemma for pitonn 7700. Two ways to add one to a number. (Contributed by Jim Kingdon, 24-Apr-2020.)
Assertion
Ref Expression
pitonnlem2 (𝐾N → (⟨[⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩ + 1) = ⟨[⟨(⟨{𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q }, {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩)
Distinct variable group:   𝐾,𝑙,𝑢

Proof of Theorem pitonnlem2
StepHypRef Expression
1 df-1 7672 . . . 4 1 = ⟨1R, 0R
21oveq2i 5794 . . 3 (⟨[⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩ + 1) = (⟨[⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩ + ⟨1R, 0R⟩)
3 nnprlu 7405 . . . . . . . 8 (𝐾N → ⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ ∈ P)
4 1pr 7406 . . . . . . . 8 1PP
5 addclpr 7389 . . . . . . . 8 ((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ ∈ P ∧ 1PP) → (⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) ∈ P)
63, 4, 5sylancl 410 . . . . . . 7 (𝐾N → (⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) ∈ P)
7 opelxpi 4580 . . . . . . 7 (((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) ∈ P ∧ 1PP) → ⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩ ∈ (P × P))
86, 4, 7sylancl 410 . . . . . 6 (𝐾N → ⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩ ∈ (P × P))
9 enrex 7589 . . . . . . 7 ~R ∈ V
109ecelqsi 6492 . . . . . 6 (⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩ ∈ (P × P) → [⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R ∈ ((P × P) / ~R ))
118, 10syl 14 . . . . 5 (𝐾N → [⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R ∈ ((P × P) / ~R ))
12 df-nr 7579 . . . . 5 R = ((P × P) / ~R )
1311, 12eleqtrrdi 2234 . . . 4 (𝐾N → [⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~RR)
14 1sr 7603 . . . 4 1RR
15 addresr 7689 . . . 4 (([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~RR ∧ 1RR) → (⟨[⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩ + ⟨1R, 0R⟩) = ⟨([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R 1R), 0R⟩)
1613, 14, 15sylancl 410 . . 3 (𝐾N → (⟨[⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩ + ⟨1R, 0R⟩) = ⟨([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R 1R), 0R⟩)
172, 16syl5eq 2185 . 2 (𝐾N → (⟨[⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩ + 1) = ⟨([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R 1R), 0R⟩)
18 pitonnlem1p1 7698 . . . . 5 ((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) ∈ P → [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P (1P +P 1P)), (1P +P 1P)⟩] ~R = [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P 1P), 1P⟩] ~R )
196, 18syl 14 . . . 4 (𝐾N → [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P (1P +P 1P)), (1P +P 1P)⟩] ~R = [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P 1P), 1P⟩] ~R )
20 df-1r 7584 . . . . . 6 1R = [⟨(1P +P 1P), 1P⟩] ~R
2120oveq2i 5794 . . . . 5 ([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R 1R) = ([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R [⟨(1P +P 1P), 1P⟩] ~R )
22 addclpr 7389 . . . . . . . 8 ((1PP ∧ 1PP) → (1P +P 1P) ∈ P)
234, 4, 22mp2an 423 . . . . . . 7 (1P +P 1P) ∈ P
24 addsrpr 7597 . . . . . . . 8 ((((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) ∈ P ∧ 1PP) ∧ ((1P +P 1P) ∈ P ∧ 1PP)) → ([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R [⟨(1P +P 1P), 1P⟩] ~R ) = [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P (1P +P 1P)), (1P +P 1P)⟩] ~R )
254, 24mpanl2 432 . . . . . . 7 (((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) ∈ P ∧ ((1P +P 1P) ∈ P ∧ 1PP)) → ([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R [⟨(1P +P 1P), 1P⟩] ~R ) = [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P (1P +P 1P)), (1P +P 1P)⟩] ~R )
2623, 4, 25mpanr12 436 . . . . . 6 ((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) ∈ P → ([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R [⟨(1P +P 1P), 1P⟩] ~R ) = [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P (1P +P 1P)), (1P +P 1P)⟩] ~R )
276, 26syl 14 . . . . 5 (𝐾N → ([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R [⟨(1P +P 1P), 1P⟩] ~R ) = [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P (1P +P 1P)), (1P +P 1P)⟩] ~R )
2821, 27syl5eq 2185 . . . 4 (𝐾N → ([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R 1R) = [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P (1P +P 1P)), (1P +P 1P)⟩] ~R )
29 addpinq1 7316 . . . . . . . . . . 11 (𝐾N → [⟨(𝐾 +N 1o), 1o⟩] ~Q = ([⟨𝐾, 1o⟩] ~Q +Q 1Q))
3029breq2d 3950 . . . . . . . . . 10 (𝐾N → (𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q𝑙 <Q ([⟨𝐾, 1o⟩] ~Q +Q 1Q)))
3130abbidv 2258 . . . . . . . . 9 (𝐾N → {𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q } = {𝑙𝑙 <Q ([⟨𝐾, 1o⟩] ~Q +Q 1Q)})
3229breq1d 3948 . . . . . . . . . 10 (𝐾N → ([⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢 ↔ ([⟨𝐾, 1o⟩] ~Q +Q 1Q) <Q 𝑢))
3332abbidv 2258 . . . . . . . . 9 (𝐾N → {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢} = {𝑢 ∣ ([⟨𝐾, 1o⟩] ~Q +Q 1Q) <Q 𝑢})
3431, 33opeq12d 3722 . . . . . . . 8 (𝐾N → ⟨{𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q }, {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢}⟩ = ⟨{𝑙𝑙 <Q ([⟨𝐾, 1o⟩] ~Q +Q 1Q)}, {𝑢 ∣ ([⟨𝐾, 1o⟩] ~Q +Q 1Q) <Q 𝑢}⟩)
35 nnnq 7274 . . . . . . . . 9 (𝐾N → [⟨𝐾, 1o⟩] ~QQ)
36 addnqpr1 7414 . . . . . . . . 9 ([⟨𝐾, 1o⟩] ~QQ → ⟨{𝑙𝑙 <Q ([⟨𝐾, 1o⟩] ~Q +Q 1Q)}, {𝑢 ∣ ([⟨𝐾, 1o⟩] ~Q +Q 1Q) <Q 𝑢}⟩ = (⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P))
3735, 36syl 14 . . . . . . . 8 (𝐾N → ⟨{𝑙𝑙 <Q ([⟨𝐾, 1o⟩] ~Q +Q 1Q)}, {𝑢 ∣ ([⟨𝐾, 1o⟩] ~Q +Q 1Q) <Q 𝑢}⟩ = (⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P))
3834, 37eqtrd 2173 . . . . . . 7 (𝐾N → ⟨{𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q }, {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢}⟩ = (⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P))
3938oveq1d 5798 . . . . . 6 (𝐾N → (⟨{𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q }, {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) = ((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P 1P))
4039opeq1d 3720 . . . . 5 (𝐾N → ⟨(⟨{𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q }, {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩ = ⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P 1P), 1P⟩)
4140eceq1d 6474 . . . 4 (𝐾N → [⟨(⟨{𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q }, {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R = [⟨((⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P) +P 1P), 1P⟩] ~R )
4219, 28, 413eqtr4d 2183 . . 3 (𝐾N → ([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R 1R) = [⟨(⟨{𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q }, {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R )
4342opeq1d 3720 . 2 (𝐾N → ⟨([⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R +R 1R), 0R⟩ = ⟨[⟨(⟨{𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q }, {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩)
4417, 43eqtrd 2173 1 (𝐾N → (⟨[⟨(⟨{𝑙𝑙 <Q [⟨𝐾, 1o⟩] ~Q }, {𝑢 ∣ [⟨𝐾, 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩ + 1) = ⟨[⟨(⟨{𝑙𝑙 <Q [⟨(𝐾 +N 1o), 1o⟩] ~Q }, {𝑢 ∣ [⟨(𝐾 +N 1o), 1o⟩] ~Q <Q 𝑢}⟩ +P 1P), 1P⟩] ~R , 0R⟩)
 Colors of variables: wff set class Syntax hints:   → wi 4   ∧ wa 103   = wceq 1332   ∈ wcel 1481  {cab 2126  ⟨cop 3536   class class class wbr 3938   × cxp 4546  (class class class)co 5783  1oc1o 6315  [cec 6436   / cqs 6437  Ncnpi 7124   +N cpli 7125   ~Q ceq 7131  Qcnq 7132  1Qc1q 7133   +Q cplq 7134
 Copyright terms: Public domain W3C validator