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

Theorem frecseq123 8069
Description: Equality theorem for the well-founded recursion generator. (Contributed by Scott Fenton, 23-Dec-2021.)
Assertion
Ref Expression
frecseq123 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → frecs(𝑅, 𝐴, 𝐹) = frecs(𝑆, 𝐵, 𝐺))

Proof of Theorem frecseq123
Dummy variables 𝑓 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 simp2 1135 . . . . . . . 8 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → 𝐴 = 𝐵)
21sseq2d 3949 . . . . . . 7 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑥𝐴𝑥𝐵))
3 equid 2016 . . . . . . . . . . 11 𝑦 = 𝑦
4 predeq123 6192 . . . . . . . . . . 11 ((𝑅 = 𝑆𝐴 = 𝐵𝑦 = 𝑦) → Pred(𝑅, 𝐴, 𝑦) = Pred(𝑆, 𝐵, 𝑦))
53, 4mp3an3 1448 . . . . . . . . . 10 ((𝑅 = 𝑆𝐴 = 𝐵) → Pred(𝑅, 𝐴, 𝑦) = Pred(𝑆, 𝐵, 𝑦))
653adant3 1130 . . . . . . . . 9 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → Pred(𝑅, 𝐴, 𝑦) = Pred(𝑆, 𝐵, 𝑦))
76sseq1d 3948 . . . . . . . 8 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥 ↔ Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥))
87ralbidv 3120 . . . . . . 7 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥 ↔ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥))
92, 8anbi12d 630 . . . . . 6 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → ((𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ↔ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥)))
10 simp3 1136 . . . . . . . . . 10 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → 𝐹 = 𝐺)
1110oveqd 7272 . . . . . . . . 9 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))
126reseq2d 5880 . . . . . . . . . 10 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑓 ↾ Pred(𝑅, 𝐴, 𝑦)) = (𝑓 ↾ Pred(𝑆, 𝐵, 𝑦)))
1312oveq2d 7271 . . . . . . . . 9 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))
1411, 13eqtrd 2778 . . . . . . . 8 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))
1514eqeq2d 2749 . . . . . . 7 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → ((𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) ↔ (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦)))))
1615ralbidv 3120 . . . . . 6 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) ↔ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦)))))
179, 163anbi23d 1437 . . . . 5 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → ((𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦)))) ↔ (𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))))
1817exbidv 1925 . . . 4 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦)))) ↔ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))))
1918abbidv 2808 . . 3 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))})
2019unieqd 4850 . 2 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))})
21 df-frecs 8068 . 2 frecs(𝑅, 𝐴, 𝐹) = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))}
22 df-frecs 8068 . 2 frecs(𝑆, 𝐵, 𝐺) = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))}
2320, 21, 223eqtr4g 2804 1 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → frecs(𝑅, 𝐴, 𝐹) = frecs(𝑆, 𝐵, 𝐺))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395  w3a 1085   = wceq 1539  wex 1783  {cab 2715  wral 3063  wss 3883   cuni 4836  cres 5582  Predcpred 6190   Fn wfn 6413  cfv 6418  (class class class)co 7255  frecscfrecs 8067
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-sb 2069  df-clab 2716  df-cleq 2730  df-clel 2817  df-ral 3068  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-xp 5586  df-cnv 5588  df-dm 5590  df-rn 5591  df-res 5592  df-ima 5593  df-pred 6191  df-iota 6376  df-fv 6426  df-ov 7258  df-frecs 8068
This theorem is referenced by:  wrecseq123  8101  csbwrecsg  8108
  Copyright terms: Public domain W3C validator