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

Theorem riota5f 5822
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 2539 . 2 (𝜑 → ∀𝑥𝐴 (𝜓𝑥 = 𝐵))
3 riota5f.2 . . . 4 (𝜑𝐵𝐴)
4 a1tru 1359 . . . . . . 7 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → ⊤)
5 reu6i 2917 . . . . . . . . 9 ((𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦)) → ∃!𝑥𝐴 𝜓)
65adantl 275 . . . . . . . 8 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → ∃!𝑥𝐴 𝜓)
7 nfv 1516 . . . . . . . . . 10 𝑥𝜑
8 nfv 1516 . . . . . . . . . . 11 𝑥 𝑦𝐴
9 nfra1 2497 . . . . . . . . . . 11 𝑥𝑥𝐴 (𝜓𝑥 = 𝑦)
108, 9nfan 1553 . . . . . . . . . 10 𝑥(𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))
117, 10nfan 1553 . . . . . . . . 9 𝑥(𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦)))
12 nfcvd 2309 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → 𝑥𝑦)
13 nfvd 1517 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → Ⅎ𝑥⊤)
14 simprl 521 . . . . . . . . 9 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → 𝑦𝐴)
15 simpr 109 . . . . . . . . . . 11 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → 𝑥 = 𝑦)
16 simplrr 526 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → ∀𝑥𝐴 (𝜓𝑥 = 𝑦))
17 simplrl 525 . . . . . . . . . . . . 13 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → 𝑦𝐴)
1815, 17eqeltrd 2243 . . . . . . . . . . . 12 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → 𝑥𝐴)
19 rsp 2513 . . . . . . . . . . . 12 (∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 → (𝜓𝑥 = 𝑦)))
2016, 18, 19sylc 62 . . . . . . . . . . 11 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → (𝜓𝑥 = 𝑦))
2115, 20mpbird 166 . . . . . . . . . 10 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → 𝜓)
22 a1tru 1359 . . . . . . . . . 10 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → ⊤)
2321, 222thd 174 . . . . . . . . 9 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ 𝑥 = 𝑦) → (𝜓 ↔ ⊤))
2411, 12, 13, 14, 23riota2df 5818 . . . . . . . 8 (((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) ∧ ∃!𝑥𝐴 𝜓) → (⊤ ↔ (𝑥𝐴 𝜓) = 𝑦))
256, 24mpdan 418 . . . . . . 7 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → (⊤ ↔ (𝑥𝐴 𝜓) = 𝑦))
264, 25mpbid 146 . . . . . 6 ((𝜑 ∧ (𝑦𝐴 ∧ ∀𝑥𝐴 (𝜓𝑥 = 𝑦))) → (𝑥𝐴 𝜓) = 𝑦)
2726expr 373 . . . . 5 ((𝜑𝑦𝐴) → (∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦))
2827ralrimiva 2539 . . . 4 (𝜑 → ∀𝑦𝐴 (∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦))
29 rspsbc 3033 . . . 4 (𝐵𝐴 → (∀𝑦𝐴 (∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦) → [𝐵 / 𝑦](∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦)))
303, 28, 29sylc 62 . . 3 (𝜑[𝐵 / 𝑦](∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦))
31 nfcvd 2309 . . . . . . . 8 (𝜑𝑥𝑦)
32 riota5f.1 . . . . . . . 8 (𝜑𝑥𝐵)
3331, 32nfeqd 2323 . . . . . . 7 (𝜑 → Ⅎ𝑥 𝑦 = 𝐵)
347, 33nfan1 1552 . . . . . 6 𝑥(𝜑𝑦 = 𝐵)
35 simpr 109 . . . . . . . 8 ((𝜑𝑦 = 𝐵) → 𝑦 = 𝐵)
3635eqeq2d 2177 . . . . . . 7 ((𝜑𝑦 = 𝐵) → (𝑥 = 𝑦𝑥 = 𝐵))
3736bibi2d 231 . . . . . 6 ((𝜑𝑦 = 𝐵) → ((𝜓𝑥 = 𝑦) ↔ (𝜓𝑥 = 𝐵)))
3834, 37ralbid 2464 . . . . 5 ((𝜑𝑦 = 𝐵) → (∀𝑥𝐴 (𝜓𝑥 = 𝑦) ↔ ∀𝑥𝐴 (𝜓𝑥 = 𝐵)))
3935eqeq2d 2177 . . . . 5 ((𝜑𝑦 = 𝐵) → ((𝑥𝐴 𝜓) = 𝑦 ↔ (𝑥𝐴 𝜓) = 𝐵))
4038, 39imbi12d 233 . . . 4 ((𝜑𝑦 = 𝐵) → ((∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦) ↔ (∀𝑥𝐴 (𝜓𝑥 = 𝐵) → (𝑥𝐴 𝜓) = 𝐵)))
413, 40sbcied 2987 . . 3 (𝜑 → ([𝐵 / 𝑦](∀𝑥𝐴 (𝜓𝑥 = 𝑦) → (𝑥𝐴 𝜓) = 𝑦) ↔ (∀𝑥𝐴 (𝜓𝑥 = 𝐵) → (𝑥𝐴 𝜓) = 𝐵)))
4230, 41mpbid 146 . 2 (𝜑 → (∀𝑥𝐴 (𝜓𝑥 = 𝐵) → (𝑥𝐴 𝜓) = 𝐵))
432, 42mpd 13 1 (𝜑 → (𝑥𝐴 𝜓) = 𝐵)
Colors of variables: wff set class
Syntax hints:  wi 4  wa 103  wb 104   = wceq 1343  wtru 1344  wcel 2136  wnfc 2295  wral 2444  ∃!wreu 2446  [wsbc 2951  crio 5797
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-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-ext 2147
This theorem depends on definitions:  df-bi 116  df-3an 970  df-tru 1346  df-nf 1449  df-sb 1751  df-eu 2017  df-clab 2152  df-cleq 2158  df-clel 2161  df-nfc 2297  df-ral 2449  df-rex 2450  df-reu 2451  df-v 2728  df-sbc 2952  df-un 3120  df-sn 3582  df-pr 3583  df-uni 3790  df-iota 5153  df-riota 5798
This theorem is referenced by:  riota5  5823
  Copyright terms: Public domain W3C validator