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

Theorem riota5f 7254
Description: A method for computing restricted iota. (Contributed by NM, 16-Apr-2013.) (Revised by Mario Carneiro, 15-Oct-2016.)
Hypotheses
Ref Expression
riota5f.1 (𝜑𝑥𝐵)
riota5f.2 (𝜑𝐵𝐴)
riota5f.3 ((𝜑𝑥𝐴) → (𝜓𝑥 = 𝐵))
Assertion
Ref Expression
riota5f (𝜑 → (𝑥𝐴 𝜓) = 𝐵)
Distinct variable groups:   𝑥,𝐴   𝜑,𝑥
Allowed substitution hints:   𝜓(𝑥)   𝐵(𝑥)

Proof of Theorem riota5f
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 riota5f.3 . . 3 ((𝜑𝑥𝐴) → (𝜓𝑥 = 𝐵))
21ralrimiva 3109 . 2 (𝜑 → ∀𝑥𝐴 (𝜓𝑥 = 𝐵))
3 riota5f.2 . . . 4 (𝜑𝐵𝐴)
4 trud 1551 . . . . . . 7 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → ⊤)
5 reu6i 3666 . . . . . . . . 9 ((𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦)) → ∃!𝑥𝐴 𝜓)
65adantl 481 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → ∃!𝑥𝐴 𝜓)
7 nfv 1920 . . . . . . . . . 10 𝑥𝜑
8 nfv 1920 . . . . . . . . . . 11 𝑥 𝑦𝐴
9 nfra1 3144 . . . . . . . . . . 11 𝑥𝑥𝐴 (𝜓𝑥 = 𝑦)
108, 9nfan 1905 . . . . . . . . . 10 𝑥(𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))
117, 10nfan 1905 . . . . . . . . 9 𝑥(𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦)))
12 nfcvd 2909 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → 𝑥𝑦)
13 nfvd 1921 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → Ⅎ𝑥⊤)
14 simprl 767 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → 𝑦𝐴)
15 simpr 484 . . . . . . . . . . 11 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → 𝑥 = 𝑦)
16 simplrr 774 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → ∀𝑥𝐴 (𝜓𝑥 = 𝑦))
17 simplrl 773 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → 𝑦𝐴)
1815, 17eqeltrd 2840 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → 𝑥𝐴)
19 rsp 3131 . . . . . . . . . . . 12 (∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 → (𝜓𝑥 = 𝑦)))
2016, 18, 19sylc 65 . . . . . . . . . . 11 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → (𝜓𝑥 = 𝑦))
2115, 20mpbird 256 . . . . . . . . . 10 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → 𝜓)
22 trud 1551 . . . . . . . . . 10 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → ⊤)
2321, 222thd 264 . . . . . . . . 9 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → (𝜓 ↔ ⊤))
2411, 12, 13, 14, 23riota2df 7249 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ ∃!𝑥𝐴 𝜓) → (⊤ ↔ (𝑥𝐴 𝜓) = 𝑦))
256, 24mpdan 683 . . . . . . 7 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → (⊤ ↔ (𝑥𝐴 𝜓) = 𝑦))
264, 25mpbid 231 . . . . . 6 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → (𝑥𝐴 𝜓) = 𝑦)
2726expr 456 . . . . 5 ((𝜑𝑦𝐴) → (∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦))
2827ralrimiva 3109 . . . 4 (𝜑 → ∀𝑦𝐴 (∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦))
29 rspsbc 3816 . . . 4 (𝐵𝐴 → (∀𝑦𝐴 (∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦) → [𝐵 / 𝑦](∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦)))
303, 28, 29sylc 65 . . 3 (𝜑[𝐵 / 𝑦](∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦))
31 nfcvd 2909 . . . . . . . 8 (𝜑𝑥𝑦)
32 riota5f.1 . . . . . . . 8 (𝜑𝑥𝐵)
3331, 32nfeqd 2918 . . . . . . 7 (𝜑 → Ⅎ𝑥 𝑦 = 𝐵)
347, 33nfan1 2196 . . . . . 6 𝑥(𝜑𝑦 = 𝐵)
35 simpr 484 . . . . . . . 8 ((𝜑𝑦 = 𝐵) → 𝑦 = 𝐵)
3635eqeq2d 2750 . . . . . . 7 ((𝜑𝑦 = 𝐵) → (𝑥 = 𝑦𝑥 = 𝐵))
3736bibi2d 342 . . . . . 6 ((𝜑𝑦 = 𝐵) → ((𝜓𝑥 = 𝑦) ↔ (𝜓𝑥 = 𝐵)))
3834, 37ralbid 3160 . . . . 5 ((𝜑𝑦 = 𝐵) → (∀𝑥𝐴 (𝜓𝑥 = 𝑦) ↔ ∀𝑥𝐴 (𝜓𝑥 = 𝐵)))
3935eqeq2d 2750 . . . . 5 ((𝜑𝑦 = 𝐵) → ((𝑥𝐴 𝜓) = 𝑦 ↔ (𝑥𝐴 𝜓) = 𝐵))
4038, 39imbi12d 344 . . . 4 ((𝜑𝑦 = 𝐵) → ((∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦) ↔ (∀𝑥𝐴 (𝜓𝑥 = 𝐵) → (𝑥𝐴 𝜓) = 𝐵)))
413, 40sbcied 3764 . . 3 (𝜑 → ([𝐵 / 𝑦](∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦) ↔ (∀𝑥𝐴 (𝜓𝑥 = 𝐵) → (𝑥𝐴 𝜓) = 𝐵)))
4230, 41mpbid 231 . 2 (𝜑 → (∀𝑥𝐴 (𝜓𝑥 = 𝐵) → (𝑥𝐴 𝜓) = 𝐵))
432, 42mpd 15 1 (𝜑 → (𝑥𝐴 𝜓) = 𝐵)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 205  wa 395   = wceq 1541  wtru 1542  wcel 2109  wnfc 2888  wral 3065  ∃!wreu 3067  [wsbc 3719  crio 7224
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1801  ax-4 1815  ax-5 1916  ax-6 1974  ax-7 2014  ax-8 2111  ax-9 2119  ax-10 2140  ax-11 2157  ax-12 2174  ax-ext 2710
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1544  df-ex 1786  df-nf 1790  df-sb 2071  df-mo 2541  df-eu 2570  df-clab 2717  df-cleq 2731  df-clel 2817  df-nfc 2890  df-ral 3070  df-rex 3071  df-reu 3072  df-v 3432  df-sbc 3720  df-un 3896  df-in 3898  df-ss 3908  df-sn 4567  df-pr 4569  df-uni 4845  df-iota 6388  df-riota 7225
This theorem is referenced by:  riota5  7255
  Copyright terms: Public domain W3C validator