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

Theorem frecseq123 8024
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 1139 . . . . . . . 8 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → 𝐴 = 𝐵)
21sseq2d 3933 . . . . . . 7 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑥𝐴𝑥𝐵))
3 equid 2020 . . . . . . . . . . 11 𝑦 = 𝑦
4 predeq123 6161 . . . . . . . . . . 11 ((𝑅 = 𝑆𝐴 = 𝐵𝑦 = 𝑦) → Pred(𝑅, 𝐴, 𝑦) = Pred(𝑆, 𝐵, 𝑦))
53, 4mp3an3 1452 . . . . . . . . . 10 ((𝑅 = 𝑆𝐴 = 𝐵) → Pred(𝑅, 𝐴, 𝑦) = Pred(𝑆, 𝐵, 𝑦))
653adant3 1134 . . . . . . . . 9 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → Pred(𝑅, 𝐴, 𝑦) = Pred(𝑆, 𝐵, 𝑦))
76sseq1d 3932 . . . . . . . 8 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥 ↔ Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥))
87ralbidv 3118 . . . . . . 7 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥 ↔ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥))
92, 8anbi12d 634 . . . . . 6 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → ((𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ↔ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥)))
10 simp3 1140 . . . . . . . . . 10 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → 𝐹 = 𝐺)
1110oveqd 7230 . . . . . . . . 9 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) = (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))
126reseq2d 5851 . . . . . . . . . 10 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑓 ↾ Pred(𝑅, 𝐴, 𝑦)) = (𝑓 ↾ Pred(𝑆, 𝐵, 𝑦)))
1312oveq2d 7229 . . . . . . . . 9 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑦𝐺(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))
1411, 13eqtrd 2777 . . . . . . . 8 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))
1514eqeq2d 2748 . . . . . . 7 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → ((𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) ↔ (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦)))))
1615ralbidv 3118 . . . . . 6 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))) ↔ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦)))))
179, 163anbi23d 1441 . . . . 5 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → ((𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦)))) ↔ (𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))))
1817exbidv 1929 . . . 4 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → (∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦)))) ↔ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))))
1918abbidv 2807 . . 3 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))})
2019unieqd 4833 . 2 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))} = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))})
21 df-frecs 8023 . 2 frecs(𝑅, 𝐴, 𝐹) = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐴 ∧ ∀𝑦𝑥 Pred(𝑅, 𝐴, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐹(𝑓 ↾ Pred(𝑅, 𝐴, 𝑦))))}
22 df-frecs 8023 . 2 frecs(𝑆, 𝐵, 𝐺) = {𝑓 ∣ ∃𝑥(𝑓 Fn 𝑥 ∧ (𝑥𝐵 ∧ ∀𝑦𝑥 Pred(𝑆, 𝐵, 𝑦) ⊆ 𝑥) ∧ ∀𝑦𝑥 (𝑓𝑦) = (𝑦𝐺(𝑓 ↾ Pred(𝑆, 𝐵, 𝑦))))}
2320, 21, 223eqtr4g 2803 1 ((𝑅 = 𝑆𝐴 = 𝐵𝐹 = 𝐺) → frecs(𝑅, 𝐴, 𝐹) = frecs(𝑆, 𝐵, 𝐺))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399  w3a 1089   = wceq 1543  wex 1787  {cab 2714  wral 3061  wss 3866   cuni 4819  cres 5553  Predcpred 6159   Fn wfn 6375  cfv 6380  (class class class)co 7213  frecscfrecs 8022
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-ext 2708
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-sb 2071  df-clab 2715  df-cleq 2729  df-clel 2816  df-ral 3066  df-rab 3070  df-v 3410  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-nul 4238  df-if 4440  df-sn 4542  df-pr 4544  df-op 4548  df-uni 4820  df-br 5054  df-opab 5116  df-xp 5557  df-cnv 5559  df-dm 5561  df-rn 5562  df-res 5563  df-ima 5564  df-pred 6160  df-iota 6338  df-fv 6388  df-ov 7216  df-frecs 8023
This theorem is referenced by: (None)
  Copyright terms: Public domain W3C validator