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

Theorem reu2eqd 3694
Description: Deduce equality from restricted uniqueness, deduction version. (Contributed by Thierry Arnoux, 27-Nov-2019.)
Hypotheses
Ref Expression
reu2eqd.1 (𝑥 = 𝐵 → (𝜓 ↔ 𝜒))
reu2eqd.2 (𝑥 = 𝐶 → (𝜓 ↔ 𝜃))
reu2eqd.3 (𝜑 → ∃!𝑥 ∈ 𝐴 𝜓)
reu2eqd.4 (𝜑 → 𝐵 ∈ 𝐴)
reu2eqd.5 (𝜑 → 𝐶 ∈ 𝐴)
reu2eqd.6 (𝜑 → 𝜒)
reu2eqd.7 (𝜑 → 𝜃)
Assertion
Ref Expression
reu2eqd (𝜑 → 𝐵 = 𝐶)
Distinct variable groups:   𝑥,𝐴   𝑥,𝐵   𝑥,𝐶   𝜒,𝑥   𝜃,𝑥
Allowed substitution hints:   𝜑(𝑥)   𝜓(𝑥)

Proof of Theorem reu2eqd
Dummy variable 𝑦 is distinct from all other variables.
StepHypRef Expression
1 reu2eqd.6 . 2 (𝜑 → 𝜒)
2 reu2eqd.7 . 2 (𝜑 → 𝜃)
3 reu2eqd.3 . . . . 5 (𝜑 → ∃!𝑥 ∈ 𝐴 𝜓)
4 reu2 3683 . . . . 5 (∃!𝑥 ∈ 𝐴 𝜓 ↔ (∃𝑥 ∈ 𝐴 𝜓 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ((𝜓 ∧ [𝑦 / 𝑥]𝜓) → 𝑥 = 𝑦)))
53, 4sylib 221 . . . 4 (𝜑 → (∃𝑥 ∈ 𝐴 𝜓 ∧ ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ((𝜓 ∧ [𝑦 / 𝑥]𝜓) → 𝑥 = 𝑦)))
65simprd 501 . . 3 (𝜑 → ∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ((𝜓 ∧ [𝑦 / 𝑥]𝜓) → 𝑥 = 𝑦))
7 reu2eqd.4 . . . 4 (𝜑 → 𝐵 ∈ 𝐴)
8 reu2eqd.5 . . . 4 (𝜑 → 𝐶 ∈ 𝐴)
9 nfv 1947 . . . . . . 7 Ⅎ𝑥𝜒
10 nfs1v 2193 . . . . . . 7 Ⅎ𝑥[𝑦 / 𝑥]𝜓
119, 10nfan 1932 . . . . . 6 Ⅎ𝑥(𝜒 ∧ [𝑦 / 𝑥]𝜓)
12 nfv 1947 . . . . . 6 Ⅎ𝑥 𝐵 = 𝑦
1311, 12nfim 1929 . . . . 5 Ⅎ𝑥((𝜒 ∧ [𝑦 / 𝑥]𝜓) → 𝐵 = 𝑦)
14 nfv 1947 . . . . 5 Ⅎ𝑦((𝜒 ∧ 𝜃) → 𝐵 = 𝐶)
15 reu2eqd.1 . . . . . . 7 (𝑥 = 𝐵 → (𝜓 ↔ 𝜒))
1615anbi1d 643 . . . . . 6 (𝑥 = 𝐵 → ((𝜓 ∧ [𝑦 / 𝑥]𝜓) ↔ (𝜒 ∧ [𝑦 / 𝑥]𝜓)))
17 eqeq1 2765 . . . . . 6 (𝑥 = 𝐵 → (𝑥 = 𝑦 ↔ 𝐵 = 𝑦))
1816, 17imbi12d 347 . . . . 5 (𝑥 = 𝐵 → (((𝜓 ∧ [𝑦 / 𝑥]𝜓) → 𝑥 = 𝑦) ↔ ((𝜒 ∧ [𝑦 / 𝑥]𝜓) → 𝐵 = 𝑦)))
19 nfv 1947 . . . . . . . 8 Ⅎ𝑥𝜃
20 reu2eqd.2 . . . . . . . 8 (𝑥 = 𝐶 → (𝜓 ↔ 𝜃))
2119, 20sbhypf 3510 . . . . . . 7 (𝑦 = 𝐶 → ([𝑦 / 𝑥]𝜓 ↔ 𝜃))
2221anbi2d 642 . . . . . 6 (𝑦 = 𝐶 → ((𝜒 ∧ [𝑦 / 𝑥]𝜓) ↔ (𝜒 ∧ 𝜃)))
23 eqeq2 2773 . . . . . 6 (𝑦 = 𝐶 → (𝐵 = 𝑦 ↔ 𝐵 = 𝐶))
2422, 23imbi12d 347 . . . . 5 (𝑦 = 𝐶 → (((𝜒 ∧ [𝑦 / 𝑥]𝜓) → 𝐵 = 𝑦) ↔ ((𝜒 ∧ 𝜃) → 𝐵 = 𝐶)))
2513, 14, 18, 24rspc2 3585 . . . 4 ((𝐵 ∈ 𝐴 ∧ 𝐶 ∈ 𝐴) → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ((𝜓 ∧ [𝑦 / 𝑥]𝜓) → 𝑥 = 𝑦) → ((𝜒 ∧ 𝜃) → 𝐵 = 𝐶)))
267, 8, 25syl2anc 596 . . 3 (𝜑 → (∀𝑥 ∈ 𝐴 ∀𝑦 ∈ 𝐴 ((𝜓 ∧ [𝑦 / 𝑥]𝜓) → 𝑥 = 𝑦) → ((𝜒 ∧ 𝜃) → 𝐵 = 𝐶)))
276, 26mpd 16 . 2 (𝜑 → ((𝜒 ∧ 𝜃) → 𝐵 = 𝐶))
281, 2, 27mp2and 712 1 (𝜑 → 𝐵 = 𝐶)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ↔ wb 209   ∧ wa 401   = wceq 1570  [wsb 2099   ∈ wcel 2145  ∀wral 3077  ∃wrex 3087  ∃!wreu 3364
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1828  ax-4 1842  ax-5 1943  ax-6 2000  ax-7 2041  ax-8 2147  ax-9 2155  ax-10 2178  ax-11 2194  ax-12 2213  ax-ext 2733
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-tru 1573  df-ex 1813  df-nf 1817  df-sb 2100  df-mo 2565  df-eu 2595  df-cleq 2753  df-clel 2836  df-nfc 2910  df-ral 3078  df-rex 3088  df-reu 3367
This theorem is used by:  qtophmeo  24129  footeq  29192  mideulem2  29203  lmieq  29289  fineqvnttrclse  35775  upciclem3  50245
  Copyright terms: Public domain W3C validator