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

Theorem frecuzrdgg 10351
Description: Lemma for other theorems involving the the recursive definition generator on upper integers. Evaluating 𝑅 at a natural number gives an ordered pair whose first element is the mapping of that natural number via 𝐺. (Contributed by Jim Kingdon, 23-Apr-2022.)
Hypotheses
Ref Expression
frecuzrdgrclt.c (𝜑𝐶 ∈ ℤ)
frecuzrdgrclt.a (𝜑𝐴𝑆)
frecuzrdgrclt.t (𝜑𝑆𝑇)
frecuzrdgrclt.f ((𝜑 ∧ (𝑥 ∈ (ℤ𝐶) ∧ 𝑦𝑆)) → (𝑥𝐹𝑦) ∈ 𝑆)
frecuzrdgrclt.r 𝑅 = frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)
frecuzrdgg.n (𝜑𝑁 ∈ ω)
frecuzrdgg.g 𝐺 = frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 𝐶)
Assertion
Ref Expression
frecuzrdgg (𝜑 → (1st ‘(𝑅𝑁)) = (𝐺𝑁))
Distinct variable groups:   𝑥,𝐶,𝑦   𝑥,𝐹,𝑦   𝑥,𝑆,𝑦   𝑥,𝑇,𝑦   𝜑,𝑥,𝑦   𝑥,𝐺,𝑦   𝑥,𝑅,𝑦
Allowed substitution hints:   𝐴(𝑥,𝑦)   𝑁(𝑥,𝑦)

Proof of Theorem frecuzrdgg
Dummy variables 𝑧 𝑘 𝑤 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 frecuzrdgg.n . 2 (𝜑𝑁 ∈ ω)
2 fveq2 5486 . . . . . 6 (𝑤 = ∅ → (𝑅𝑤) = (𝑅‘∅))
32fveq2d 5490 . . . . 5 (𝑤 = ∅ → (1st ‘(𝑅𝑤)) = (1st ‘(𝑅‘∅)))
4 fveq2 5486 . . . . 5 (𝑤 = ∅ → (𝐺𝑤) = (𝐺‘∅))
53, 4eqeq12d 2180 . . . 4 (𝑤 = ∅ → ((1st ‘(𝑅𝑤)) = (𝐺𝑤) ↔ (1st ‘(𝑅‘∅)) = (𝐺‘∅)))
65imbi2d 229 . . 3 (𝑤 = ∅ → ((𝜑 → (1st ‘(𝑅𝑤)) = (𝐺𝑤)) ↔ (𝜑 → (1st ‘(𝑅‘∅)) = (𝐺‘∅))))
7 fveq2 5486 . . . . . 6 (𝑤 = 𝑘 → (𝑅𝑤) = (𝑅𝑘))
87fveq2d 5490 . . . . 5 (𝑤 = 𝑘 → (1st ‘(𝑅𝑤)) = (1st ‘(𝑅𝑘)))
9 fveq2 5486 . . . . 5 (𝑤 = 𝑘 → (𝐺𝑤) = (𝐺𝑘))
108, 9eqeq12d 2180 . . . 4 (𝑤 = 𝑘 → ((1st ‘(𝑅𝑤)) = (𝐺𝑤) ↔ (1st ‘(𝑅𝑘)) = (𝐺𝑘)))
1110imbi2d 229 . . 3 (𝑤 = 𝑘 → ((𝜑 → (1st ‘(𝑅𝑤)) = (𝐺𝑤)) ↔ (𝜑 → (1st ‘(𝑅𝑘)) = (𝐺𝑘))))
12 fveq2 5486 . . . . . 6 (𝑤 = suc 𝑘 → (𝑅𝑤) = (𝑅‘suc 𝑘))
1312fveq2d 5490 . . . . 5 (𝑤 = suc 𝑘 → (1st ‘(𝑅𝑤)) = (1st ‘(𝑅‘suc 𝑘)))
14 fveq2 5486 . . . . 5 (𝑤 = suc 𝑘 → (𝐺𝑤) = (𝐺‘suc 𝑘))
1513, 14eqeq12d 2180 . . . 4 (𝑤 = suc 𝑘 → ((1st ‘(𝑅𝑤)) = (𝐺𝑤) ↔ (1st ‘(𝑅‘suc 𝑘)) = (𝐺‘suc 𝑘)))
1615imbi2d 229 . . 3 (𝑤 = suc 𝑘 → ((𝜑 → (1st ‘(𝑅𝑤)) = (𝐺𝑤)) ↔ (𝜑 → (1st ‘(𝑅‘suc 𝑘)) = (𝐺‘suc 𝑘))))
17 fveq2 5486 . . . . . 6 (𝑤 = 𝑁 → (𝑅𝑤) = (𝑅𝑁))
1817fveq2d 5490 . . . . 5 (𝑤 = 𝑁 → (1st ‘(𝑅𝑤)) = (1st ‘(𝑅𝑁)))
19 fveq2 5486 . . . . 5 (𝑤 = 𝑁 → (𝐺𝑤) = (𝐺𝑁))
2018, 19eqeq12d 2180 . . . 4 (𝑤 = 𝑁 → ((1st ‘(𝑅𝑤)) = (𝐺𝑤) ↔ (1st ‘(𝑅𝑁)) = (𝐺𝑁)))
2120imbi2d 229 . . 3 (𝑤 = 𝑁 → ((𝜑 → (1st ‘(𝑅𝑤)) = (𝐺𝑤)) ↔ (𝜑 → (1st ‘(𝑅𝑁)) = (𝐺𝑁))))
22 frecuzrdgrclt.c . . . . 5 (𝜑𝐶 ∈ ℤ)
23 frecuzrdgrclt.a . . . . 5 (𝜑𝐴𝑆)
24 op1stg 6118 . . . . 5 ((𝐶 ∈ ℤ ∧ 𝐴𝑆) → (1st ‘⟨𝐶, 𝐴⟩) = 𝐶)
2522, 23, 24syl2anc 409 . . . 4 (𝜑 → (1st ‘⟨𝐶, 𝐴⟩) = 𝐶)
26 frecuzrdgrclt.r . . . . . . 7 𝑅 = frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)
2726fveq1i 5487 . . . . . 6 (𝑅‘∅) = (frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘∅)
28 opexg 4206 . . . . . . . 8 ((𝐶 ∈ ℤ ∧ 𝐴𝑆) → ⟨𝐶, 𝐴⟩ ∈ V)
29 frec0g 6365 . . . . . . . 8 (⟨𝐶, 𝐴⟩ ∈ V → (frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘∅) = ⟨𝐶, 𝐴⟩)
3028, 29syl 14 . . . . . . 7 ((𝐶 ∈ ℤ ∧ 𝐴𝑆) → (frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘∅) = ⟨𝐶, 𝐴⟩)
3122, 23, 30syl2anc 409 . . . . . 6 (𝜑 → (frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘∅) = ⟨𝐶, 𝐴⟩)
3227, 31syl5eq 2211 . . . . 5 (𝜑 → (𝑅‘∅) = ⟨𝐶, 𝐴⟩)
3332fveq2d 5490 . . . 4 (𝜑 → (1st ‘(𝑅‘∅)) = (1st ‘⟨𝐶, 𝐴⟩))
34 frecuzrdgg.g . . . . 5 𝐺 = frec((𝑥 ∈ ℤ ↦ (𝑥 + 1)), 𝐶)
3522, 34frec2uz0d 10334 . . . 4 (𝜑 → (𝐺‘∅) = 𝐶)
3625, 33, 353eqtr4d 2208 . . 3 (𝜑 → (1st ‘(𝑅‘∅)) = (𝐺‘∅))
3722, 34frec2uzf1od 10341 . . . . . . . . . . 11 (𝜑𝐺:ω–1-1-onto→(ℤ𝐶))
38 f1of 5432 . . . . . . . . . . 11 (𝐺:ω–1-1-onto→(ℤ𝐶) → 𝐺:ω⟶(ℤ𝐶))
3937, 38syl 14 . . . . . . . . . 10 (𝜑𝐺:ω⟶(ℤ𝐶))
4039ad2antlr 481 . . . . . . . . 9 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → 𝐺:ω⟶(ℤ𝐶))
41 simpll 519 . . . . . . . . 9 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → 𝑘 ∈ ω)
4240, 41ffvelrnd 5621 . . . . . . . 8 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (𝐺𝑘) ∈ (ℤ𝐶))
43 peano2uz 9521 . . . . . . . 8 ((𝐺𝑘) ∈ (ℤ𝐶) → ((𝐺𝑘) + 1) ∈ (ℤ𝐶))
4442, 43syl 14 . . . . . . 7 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ((𝐺𝑘) + 1) ∈ (ℤ𝐶))
45 oveq2 5850 . . . . . . . . 9 (𝑦 = (2nd ‘(𝑅𝑘)) → ((𝐺𝑘)𝐹𝑦) = ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘))))
4645eleq1d 2235 . . . . . . . 8 (𝑦 = (2nd ‘(𝑅𝑘)) → (((𝐺𝑘)𝐹𝑦) ∈ 𝑆 ↔ ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘))) ∈ 𝑆))
47 oveq1 5849 . . . . . . . . . . 11 (𝑥 = (𝐺𝑘) → (𝑥𝐹𝑦) = ((𝐺𝑘)𝐹𝑦))
4847eleq1d 2235 . . . . . . . . . 10 (𝑥 = (𝐺𝑘) → ((𝑥𝐹𝑦) ∈ 𝑆 ↔ ((𝐺𝑘)𝐹𝑦) ∈ 𝑆))
4948ralbidv 2466 . . . . . . . . 9 (𝑥 = (𝐺𝑘) → (∀𝑦𝑆 (𝑥𝐹𝑦) ∈ 𝑆 ↔ ∀𝑦𝑆 ((𝐺𝑘)𝐹𝑦) ∈ 𝑆))
50 frecuzrdgrclt.f . . . . . . . . . . 11 ((𝜑 ∧ (𝑥 ∈ (ℤ𝐶) ∧ 𝑦𝑆)) → (𝑥𝐹𝑦) ∈ 𝑆)
5150ralrimivva 2548 . . . . . . . . . 10 (𝜑 → ∀𝑥 ∈ (ℤ𝐶)∀𝑦𝑆 (𝑥𝐹𝑦) ∈ 𝑆)
5251ad2antlr 481 . . . . . . . . 9 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ∀𝑥 ∈ (ℤ𝐶)∀𝑦𝑆 (𝑥𝐹𝑦) ∈ 𝑆)
5349, 52, 42rspcdva 2835 . . . . . . . 8 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ∀𝑦𝑆 ((𝐺𝑘)𝐹𝑦) ∈ 𝑆)
54 frecuzrdgrclt.t . . . . . . . . . . . 12 (𝜑𝑆𝑇)
5522, 23, 54, 50, 26frecuzrdgrclt 10350 . . . . . . . . . . 11 (𝜑𝑅:ω⟶((ℤ𝐶) × 𝑆))
5655ad2antlr 481 . . . . . . . . . 10 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → 𝑅:ω⟶((ℤ𝐶) × 𝑆))
5756, 41ffvelrnd 5621 . . . . . . . . 9 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (𝑅𝑘) ∈ ((ℤ𝐶) × 𝑆))
58 xp2nd 6134 . . . . . . . . 9 ((𝑅𝑘) ∈ ((ℤ𝐶) × 𝑆) → (2nd ‘(𝑅𝑘)) ∈ 𝑆)
5957, 58syl 14 . . . . . . . 8 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (2nd ‘(𝑅𝑘)) ∈ 𝑆)
6046, 53, 59rspcdva 2835 . . . . . . 7 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘))) ∈ 𝑆)
61 op1stg 6118 . . . . . . 7 ((((𝐺𝑘) + 1) ∈ (ℤ𝐶) ∧ ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘))) ∈ 𝑆) → (1st ‘⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩) = ((𝐺𝑘) + 1))
6244, 60, 61syl2anc 409 . . . . . 6 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (1st ‘⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩) = ((𝐺𝑘) + 1))
63 1st2nd2 6143 . . . . . . . . . . . . . . . 16 (𝑧 ∈ ((ℤ𝐶) × 𝑆) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
6463adantl 275 . . . . . . . . . . . . . . 15 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → 𝑧 = ⟨(1st𝑧), (2nd𝑧)⟩)
6564fveq2d 5490 . . . . . . . . . . . . . 14 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘𝑧) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(1st𝑧), (2nd𝑧)⟩))
66 df-ov 5845 . . . . . . . . . . . . . . . 16 ((1st𝑧)(𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd𝑧)) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(1st𝑧), (2nd𝑧)⟩)
67 xp1st 6133 . . . . . . . . . . . . . . . . . 18 (𝑧 ∈ ((ℤ𝐶) × 𝑆) → (1st𝑧) ∈ (ℤ𝐶))
6867adantl 275 . . . . . . . . . . . . . . . . 17 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → (1st𝑧) ∈ (ℤ𝐶))
6954ad3antlr 485 . . . . . . . . . . . . . . . . . 18 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → 𝑆𝑇)
70 xp2nd 6134 . . . . . . . . . . . . . . . . . . 19 (𝑧 ∈ ((ℤ𝐶) × 𝑆) → (2nd𝑧) ∈ 𝑆)
7170adantl 275 . . . . . . . . . . . . . . . . . 18 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → (2nd𝑧) ∈ 𝑆)
7269, 71sseldd 3143 . . . . . . . . . . . . . . . . 17 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → (2nd𝑧) ∈ 𝑇)
73 peano2uz 9521 . . . . . . . . . . . . . . . . . . 19 ((1st𝑧) ∈ (ℤ𝐶) → ((1st𝑧) + 1) ∈ (ℤ𝐶))
7468, 73syl 14 . . . . . . . . . . . . . . . . . 18 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ((1st𝑧) + 1) ∈ (ℤ𝐶))
75 oveq2 5850 . . . . . . . . . . . . . . . . . . . 20 (𝑦 = (2nd𝑧) → ((1st𝑧)𝐹𝑦) = ((1st𝑧)𝐹(2nd𝑧)))
7675eleq1d 2235 . . . . . . . . . . . . . . . . . . 19 (𝑦 = (2nd𝑧) → (((1st𝑧)𝐹𝑦) ∈ 𝑆 ↔ ((1st𝑧)𝐹(2nd𝑧)) ∈ 𝑆))
77 oveq1 5849 . . . . . . . . . . . . . . . . . . . . . 22 (𝑥 = (1st𝑧) → (𝑥𝐹𝑦) = ((1st𝑧)𝐹𝑦))
7877eleq1d 2235 . . . . . . . . . . . . . . . . . . . . 21 (𝑥 = (1st𝑧) → ((𝑥𝐹𝑦) ∈ 𝑆 ↔ ((1st𝑧)𝐹𝑦) ∈ 𝑆))
7978ralbidv 2466 . . . . . . . . . . . . . . . . . . . 20 (𝑥 = (1st𝑧) → (∀𝑦𝑆 (𝑥𝐹𝑦) ∈ 𝑆 ↔ ∀𝑦𝑆 ((1st𝑧)𝐹𝑦) ∈ 𝑆))
8051ad3antlr 485 . . . . . . . . . . . . . . . . . . . 20 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ∀𝑥 ∈ (ℤ𝐶)∀𝑦𝑆 (𝑥𝐹𝑦) ∈ 𝑆)
8179, 80, 68rspcdva 2835 . . . . . . . . . . . . . . . . . . 19 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ∀𝑦𝑆 ((1st𝑧)𝐹𝑦) ∈ 𝑆)
8276, 81, 71rspcdva 2835 . . . . . . . . . . . . . . . . . 18 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ((1st𝑧)𝐹(2nd𝑧)) ∈ 𝑆)
83 opelxpi 4636 . . . . . . . . . . . . . . . . . 18 ((((1st𝑧) + 1) ∈ (ℤ𝐶) ∧ ((1st𝑧)𝐹(2nd𝑧)) ∈ 𝑆) → ⟨((1st𝑧) + 1), ((1st𝑧)𝐹(2nd𝑧))⟩ ∈ ((ℤ𝐶) × 𝑆))
8474, 82, 83syl2anc 409 . . . . . . . . . . . . . . . . 17 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ⟨((1st𝑧) + 1), ((1st𝑧)𝐹(2nd𝑧))⟩ ∈ ((ℤ𝐶) × 𝑆))
85 oveq1 5849 . . . . . . . . . . . . . . . . . . 19 (𝑥 = (1st𝑧) → (𝑥 + 1) = ((1st𝑧) + 1))
8685, 77opeq12d 3766 . . . . . . . . . . . . . . . . . 18 (𝑥 = (1st𝑧) → ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩ = ⟨((1st𝑧) + 1), ((1st𝑧)𝐹𝑦)⟩)
8775opeq2d 3765 . . . . . . . . . . . . . . . . . 18 (𝑦 = (2nd𝑧) → ⟨((1st𝑧) + 1), ((1st𝑧)𝐹𝑦)⟩ = ⟨((1st𝑧) + 1), ((1st𝑧)𝐹(2nd𝑧))⟩)
88 eqid 2165 . . . . . . . . . . . . . . . . . 18 (𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩) = (𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)
8986, 87, 88ovmpog 5976 . . . . . . . . . . . . . . . . 17 (((1st𝑧) ∈ (ℤ𝐶) ∧ (2nd𝑧) ∈ 𝑇 ∧ ⟨((1st𝑧) + 1), ((1st𝑧)𝐹(2nd𝑧))⟩ ∈ ((ℤ𝐶) × 𝑆)) → ((1st𝑧)(𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd𝑧)) = ⟨((1st𝑧) + 1), ((1st𝑧)𝐹(2nd𝑧))⟩)
9068, 72, 84, 89syl3anc 1228 . . . . . . . . . . . . . . . 16 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ((1st𝑧)(𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd𝑧)) = ⟨((1st𝑧) + 1), ((1st𝑧)𝐹(2nd𝑧))⟩)
9166, 90eqtr3id 2213 . . . . . . . . . . . . . . 15 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(1st𝑧), (2nd𝑧)⟩) = ⟨((1st𝑧) + 1), ((1st𝑧)𝐹(2nd𝑧))⟩)
9291, 84eqeltrd 2243 . . . . . . . . . . . . . 14 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(1st𝑧), (2nd𝑧)⟩) ∈ ((ℤ𝐶) × 𝑆))
9365, 92eqeltrd 2243 . . . . . . . . . . . . 13 ((((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) ∧ 𝑧 ∈ ((ℤ𝐶) × 𝑆)) → ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘𝑧) ∈ ((ℤ𝐶) × 𝑆))
9493ralrimiva 2539 . . . . . . . . . . . 12 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ∀𝑧 ∈ ((ℤ𝐶) × 𝑆)((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘𝑧) ∈ ((ℤ𝐶) × 𝑆))
95 uzid 9480 . . . . . . . . . . . . . . 15 (𝐶 ∈ ℤ → 𝐶 ∈ (ℤ𝐶))
9622, 95syl 14 . . . . . . . . . . . . . 14 (𝜑𝐶 ∈ (ℤ𝐶))
97 opelxpi 4636 . . . . . . . . . . . . . 14 ((𝐶 ∈ (ℤ𝐶) ∧ 𝐴𝑆) → ⟨𝐶, 𝐴⟩ ∈ ((ℤ𝐶) × 𝑆))
9896, 23, 97syl2anc 409 . . . . . . . . . . . . 13 (𝜑 → ⟨𝐶, 𝐴⟩ ∈ ((ℤ𝐶) × 𝑆))
9998ad2antlr 481 . . . . . . . . . . . 12 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ⟨𝐶, 𝐴⟩ ∈ ((ℤ𝐶) × 𝑆))
100 frecsuc 6375 . . . . . . . . . . . 12 ((∀𝑧 ∈ ((ℤ𝐶) × 𝑆)((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘𝑧) ∈ ((ℤ𝐶) × 𝑆) ∧ ⟨𝐶, 𝐴⟩ ∈ ((ℤ𝐶) × 𝑆) ∧ 𝑘 ∈ ω) → (frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘suc 𝑘) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘𝑘)))
10194, 99, 41, 100syl3anc 1228 . . . . . . . . . . 11 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘suc 𝑘) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘𝑘)))
10226fveq1i 5487 . . . . . . . . . . 11 (𝑅‘suc 𝑘) = (frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘suc 𝑘)
10326fveq1i 5487 . . . . . . . . . . . 12 (𝑅𝑘) = (frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘𝑘)
104103fveq2i 5489 . . . . . . . . . . 11 ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅𝑘)) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(frec((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩), ⟨𝐶, 𝐴⟩)‘𝑘))
105101, 102, 1043eqtr4g 2224 . . . . . . . . . 10 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (𝑅‘suc 𝑘) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅𝑘)))
106 1st2nd2 6143 . . . . . . . . . . . 12 ((𝑅𝑘) ∈ ((ℤ𝐶) × 𝑆) → (𝑅𝑘) = ⟨(1st ‘(𝑅𝑘)), (2nd ‘(𝑅𝑘))⟩)
10757, 106syl 14 . . . . . . . . . . 11 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (𝑅𝑘) = ⟨(1st ‘(𝑅𝑘)), (2nd ‘(𝑅𝑘))⟩)
108107fveq2d 5490 . . . . . . . . . 10 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘(𝑅𝑘)) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(1st ‘(𝑅𝑘)), (2nd ‘(𝑅𝑘))⟩))
109105, 108eqtrd 2198 . . . . . . . . 9 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (𝑅‘suc 𝑘) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(1st ‘(𝑅𝑘)), (2nd ‘(𝑅𝑘))⟩))
110 simpr 109 . . . . . . . . . . 11 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (1st ‘(𝑅𝑘)) = (𝐺𝑘))
111110opeq1d 3764 . . . . . . . . . 10 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ⟨(1st ‘(𝑅𝑘)), (2nd ‘(𝑅𝑘))⟩ = ⟨(𝐺𝑘), (2nd ‘(𝑅𝑘))⟩)
112111fveq2d 5490 . . . . . . . . 9 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(1st ‘(𝑅𝑘)), (2nd ‘(𝑅𝑘))⟩) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(𝐺𝑘), (2nd ‘(𝑅𝑘))⟩))
113109, 112eqtrd 2198 . . . . . . . 8 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (𝑅‘suc 𝑘) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(𝐺𝑘), (2nd ‘(𝑅𝑘))⟩))
114 df-ov 5845 . . . . . . . . 9 ((𝐺𝑘)(𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅𝑘))) = ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(𝐺𝑘), (2nd ‘(𝑅𝑘))⟩)
11554ad2antlr 481 . . . . . . . . . . 11 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → 𝑆𝑇)
116115, 59sseldd 3143 . . . . . . . . . 10 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (2nd ‘(𝑅𝑘)) ∈ 𝑇)
117 opelxpi 4636 . . . . . . . . . . 11 ((((𝐺𝑘) + 1) ∈ (ℤ𝐶) ∧ ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘))) ∈ 𝑆) → ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩ ∈ ((ℤ𝐶) × 𝑆))
11844, 60, 117syl2anc 409 . . . . . . . . . 10 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩ ∈ ((ℤ𝐶) × 𝑆))
119 oveq1 5849 . . . . . . . . . . . 12 (𝑥 = (𝐺𝑘) → (𝑥 + 1) = ((𝐺𝑘) + 1))
120119, 47opeq12d 3766 . . . . . . . . . . 11 (𝑥 = (𝐺𝑘) → ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩ = ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹𝑦)⟩)
12145opeq2d 3765 . . . . . . . . . . 11 (𝑦 = (2nd ‘(𝑅𝑘)) → ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹𝑦)⟩ = ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩)
122120, 121, 88ovmpog 5976 . . . . . . . . . 10 (((𝐺𝑘) ∈ (ℤ𝐶) ∧ (2nd ‘(𝑅𝑘)) ∈ 𝑇 ∧ ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩ ∈ ((ℤ𝐶) × 𝑆)) → ((𝐺𝑘)(𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅𝑘))) = ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩)
12342, 116, 118, 122syl3anc 1228 . . . . . . . . 9 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ((𝐺𝑘)(𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)(2nd ‘(𝑅𝑘))) = ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩)
124114, 123eqtr3id 2213 . . . . . . . 8 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → ((𝑥 ∈ (ℤ𝐶), 𝑦𝑇 ↦ ⟨(𝑥 + 1), (𝑥𝐹𝑦)⟩)‘⟨(𝐺𝑘), (2nd ‘(𝑅𝑘))⟩) = ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩)
125113, 124eqtrd 2198 . . . . . . 7 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (𝑅‘suc 𝑘) = ⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩)
126125fveq2d 5490 . . . . . 6 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (1st ‘(𝑅‘suc 𝑘)) = (1st ‘⟨((𝐺𝑘) + 1), ((𝐺𝑘)𝐹(2nd ‘(𝑅𝑘)))⟩))
12722ad2antlr 481 . . . . . . 7 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → 𝐶 ∈ ℤ)
128127, 34, 41frec2uzsucd 10336 . . . . . 6 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (𝐺‘suc 𝑘) = ((𝐺𝑘) + 1))
12962, 126, 1283eqtr4d 2208 . . . . 5 (((𝑘 ∈ ω ∧ 𝜑) ∧ (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (1st ‘(𝑅‘suc 𝑘)) = (𝐺‘suc 𝑘))
130129exp31 362 . . . 4 (𝑘 ∈ ω → (𝜑 → ((1st ‘(𝑅𝑘)) = (𝐺𝑘) → (1st ‘(𝑅‘suc 𝑘)) = (𝐺‘suc 𝑘))))
131130a2d 26 . . 3 (𝑘 ∈ ω → ((𝜑 → (1st ‘(𝑅𝑘)) = (𝐺𝑘)) → (𝜑 → (1st ‘(𝑅‘suc 𝑘)) = (𝐺‘suc 𝑘))))
1326, 11, 16, 21, 36, 131finds 4577 . 2 (𝑁 ∈ ω → (𝜑 → (1st ‘(𝑅𝑁)) = (𝐺𝑁)))
1331, 132mpcom 36 1 (𝜑 → (1st ‘(𝑅𝑁)) = (𝐺𝑁))
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103   = wceq 1343  wcel 2136  wral 2444  Vcvv 2726  wss 3116  c0 3409  cop 3579  cmpt 4043  suc csuc 4343  ωcom 4567   × cxp 4602  wf 5184  1-1-ontowf1o 5187  cfv 5188  (class class class)co 5842  cmpo 5844  1st c1st 6106  2nd c2nd 6107  freccfrec 6358  1c1 7754   + caddc 7756  cz 9191  cuz 9466
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 604  ax-in2 605  ax-io 699  ax-5 1435  ax-7 1436  ax-gen 1437  ax-ie1 1481  ax-ie2 1482  ax-8 1492  ax-10 1493  ax-11 1494  ax-i12 1495  ax-bndl 1497  ax-4 1498  ax-17 1514  ax-i9 1518  ax-ial 1522  ax-i5r 1523  ax-13 2138  ax-14 2139  ax-ext 2147  ax-coll 4097  ax-sep 4100  ax-nul 4108  ax-pow 4153  ax-pr 4187  ax-un 4411  ax-setind 4514  ax-iinf 4565  ax-cnex 7844  ax-resscn 7845  ax-1cn 7846  ax-1re 7847  ax-icn 7848  ax-addcl 7849  ax-addrcl 7850  ax-mulcl 7851  ax-addcom 7853  ax-addass 7855  ax-distr 7857  ax-i2m1 7858  ax-0lt1 7859  ax-0id 7861  ax-rnegex 7862  ax-cnre 7864  ax-pre-ltirr 7865  ax-pre-ltwlin 7866  ax-pre-lttrn 7867  ax-pre-ltadd 7869
This theorem depends on definitions:  df-bi 116  df-3or 969  df-3an 970  df-tru 1346  df-fal 1349  df-nf 1449  df-sb 1751  df-eu 2017  df-mo 2018  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ne 2337  df-nel 2432  df-ral 2449  df-rex 2450  df-reu 2451  df-rab 2453  df-v 2728  df-sbc 2952  df-csb 3046  df-dif 3118  df-un 3120  df-in 3122  df-ss 3129  df-nul 3410  df-pw 3561  df-sn 3582  df-pr 3583  df-op 3585  df-uni 3790  df-int 3825  df-iun 3868  df-br 3983  df-opab 4044  df-mpt 4045  df-tr 4081  df-id 4271  df-iord 4344  df-on 4346  df-ilim 4347  df-suc 4349  df-iom 4568  df-xp 4610  df-rel 4611  df-cnv 4612  df-co 4613  df-dm 4614  df-rn 4615  df-res 4616  df-ima 4617  df-iota 5153  df-fun 5190  df-fn 5191  df-f 5192  df-f1 5193  df-fo 5194  df-f1o 5195  df-fv 5196  df-riota 5798  df-ov 5845  df-oprab 5846  df-mpo 5847  df-1st 6108  df-2nd 6109  df-recs 6273  df-frec 6359  df-pnf 7935  df-mnf 7936  df-xr 7937  df-ltxr 7938  df-le 7939  df-sub 8071  df-neg 8072  df-inn 8858  df-n0 9115  df-z 9192  df-uz 9467
This theorem is referenced by:  frecuzrdgdomlem  10352  frecuzrdgfunlem  10354  frecuzrdgsuctlem  10358
  Copyright terms: Public domain W3C validator