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

Theorem frecseq123 8098
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 1136 . . . . . . . 8 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → 𝐴 = 𝐵)
21sseq2d 3953 . . . . . . 7 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑥𝐴𝑥𝐵))
3 equid 2015 . . . . . . . . . . 11 𝑦 = 𝑦
4 predeq123 6203 . . . . . . . . . . 11 ((𝑅 = 𝑆𝐴 = 𝐵𝑦 = 𝑦) → Pred(𝑅, 𝐴, 𝑦) = Pred(𝑆, 𝐵, 𝑦))
53, 4mp3an3 1449 . . . . . . . . . 10 ((𝑅 = 𝑆𝐴 = 𝐵) → Pred(𝑅, 𝐴, 𝑦) = Pred(𝑆, 𝐵, 𝑦))
653adant3 1131 . . . . . . . . 9 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → Pred(𝑅, 𝐴, 𝑦) = Pred(𝑆, 𝐵, 𝑦))
76sseq1d 3952 . . . . . . . 8 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥 ↔ Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥))
87ralbidv 3112 . . . . . . 7 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥 ↔ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥))
92, 8anbi12d 631 . . . . . 6 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → ((𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ↔ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥)))
10 simp3 1137 . . . . . . . . . 10 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → 𝐹 = 𝐺)
1110oveqd 7292 . . . . . . . . 9 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))
126reseq2d 5891 . . . . . . . . . 10 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑓 ↾ Pred(𝑅, 𝐴, 𝑦)) = (𝑓 ↾ Pred(𝑆, 𝐵, 𝑦)))
1312oveq2d 7291 . . . . . . . . 9 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))
1411, 13eqtrd 2778 . . . . . . . 8 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))
1514eqeq2d 2749 . . . . . . 7 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → ((𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) ↔ (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦)))))
1615ralbidv 3112 . . . . . 6 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) ↔ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦)))))
179, 163anbi23d 1438 . . . . 5 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → ((𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦)))) ↔ (𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))))
1817exbidv 1924 . . . 4 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦)))) ↔ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))))
1918abbidv 2807 . . 3 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))})
2019unieqd 4853 . 2 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))})
21 df-frecs 8097 . 2 frecs(𝑅, 𝐴, 𝐹) = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))}
22 df-frecs 8097 . 2 frecs(𝑆, 𝐵, 𝐺) = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))}
2320, 21, 223eqtr4g 2803 1 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → frecs(𝑅, 𝐴, 𝐹) = frecs(𝑆, 𝐵, 𝐺))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 396  w3a 1086   = wceq 1539  wex 1782  {cab 2715  wral 3064  wss 3887   cuni 4839  cres 5591  Predcpred 6201   Fn wfn 6428  cfv 6433  (class class class)co 7275  frecscfrecs 8096
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1913  ax-6 1971  ax-7 2011  ax-8 2108  ax-9 2116  ax-ext 2709
This theorem depends on definitions:  df-bi 206  df-an 397  df-or 845  df-3an 1088  df-tru 1542  df-fal 1552  df-ex 1783  df-sb 2068  df-clab 2716  df-cleq 2730  df-clel 2816  df-ral 3069  df-rab 3073  df-v 3434  df-dif 3890  df-un 3892  df-in 3894  df-ss 3904  df-nul 4257  df-if 4460  df-sn 4562  df-pr 4564  df-op 4568  df-uni 4840  df-br 5075  df-opab 5137  df-xp 5595  df-cnv 5597  df-dm 5599  df-rn 5600  df-res 5601  df-ima 5602  df-pred 6202  df-iota 6391  df-fv 6441  df-ov 7278  df-frecs 8097
This theorem is referenced by:  wrecseq123  8130  csbwrecsg  8137
  Copyright terms: Public domain W3C validator