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

Theorem unxpdomlem2 8957
Description: Lemma for unxpdom 8959. (Contributed by Mario Carneiro, 13-Jan-2013.)
Hypotheses
Ref Expression
unxpdomlem1.1 𝐹 = (𝑥 ∈ (𝑎𝑏) ↦ 𝐺)
unxpdomlem1.2 𝐺 = if(𝑥𝑎, ⟨𝑥, if(𝑥 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑥 = 𝑡, 𝑛, 𝑚), 𝑥⟩)
unxpdomlem2.1 (𝜑𝑤 ∈ (𝑎𝑏))
unxpdomlem2.2 (𝜑 → ¬ 𝑚 = 𝑛)
unxpdomlem2.3 (𝜑 → ¬ 𝑠 = 𝑡)
Assertion
Ref Expression
unxpdomlem2 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → ¬ (𝐹𝑧) = (𝐹𝑤))
Distinct variable groups:   𝑤,𝐹,𝑧   𝑎,𝑏,𝑚,𝑛,𝑠,𝑡,𝑤,𝑥,𝑧
Allowed substitution hints:   𝜑(𝑥,𝑧,𝑤,𝑡,𝑚,𝑛,𝑠,𝑎,𝑏)   𝐹(𝑥,𝑡,𝑚,𝑛,𝑠,𝑎,𝑏)   𝐺(𝑥,𝑧,𝑤,𝑡,𝑚,𝑛,𝑠,𝑎,𝑏)

Proof of Theorem unxpdomlem2
StepHypRef Expression
1 unxpdomlem2.3 . . 3 (𝜑 → ¬ 𝑠 = 𝑡)
21adantr 480 . 2 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → ¬ 𝑠 = 𝑡)
3 elun1 4106 . . . . . . . . . 10 (𝑧𝑎𝑧 ∈ (𝑎𝑏))
43ad2antrl 724 . . . . . . . . 9 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → 𝑧 ∈ (𝑎𝑏))
5 unxpdomlem1.1 . . . . . . . . . 10 𝐹 = (𝑥 ∈ (𝑎𝑏) ↦ 𝐺)
6 unxpdomlem1.2 . . . . . . . . . 10 𝐺 = if(𝑥𝑎, ⟨𝑥, if(𝑥 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑥 = 𝑡, 𝑛, 𝑚), 𝑥⟩)
75, 6unxpdomlem1 8956 . . . . . . . . 9 (𝑧 ∈ (𝑎𝑏) → (𝐹𝑧) = if(𝑧𝑎, ⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑧 = 𝑡, 𝑛, 𝑚), 𝑧⟩))
84, 7syl 17 . . . . . . . 8 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → (𝐹𝑧) = if(𝑧𝑎, ⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑧 = 𝑡, 𝑛, 𝑚), 𝑧⟩))
9 iftrue 4462 . . . . . . . . 9 (𝑧𝑎 → if(𝑧𝑎, ⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑧 = 𝑡, 𝑛, 𝑚), 𝑧⟩) = ⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩)
109ad2antrl 724 . . . . . . . 8 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → if(𝑧𝑎, ⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑧 = 𝑡, 𝑛, 𝑚), 𝑧⟩) = ⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩)
118, 10eqtrd 2778 . . . . . . 7 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → (𝐹𝑧) = ⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩)
12 unxpdomlem2.1 . . . . . . . . . 10 (𝜑𝑤 ∈ (𝑎𝑏))
1312adantr 480 . . . . . . . . 9 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → 𝑤 ∈ (𝑎𝑏))
145, 6unxpdomlem1 8956 . . . . . . . . 9 (𝑤 ∈ (𝑎𝑏) → (𝐹𝑤) = if(𝑤𝑎, ⟨𝑤, if(𝑤 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩))
1513, 14syl 17 . . . . . . . 8 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → (𝐹𝑤) = if(𝑤𝑎, ⟨𝑤, if(𝑤 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩))
16 iffalse 4465 . . . . . . . . 9 𝑤𝑎 → if(𝑤𝑎, ⟨𝑤, if(𝑤 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩) = ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩)
1716ad2antll 725 . . . . . . . 8 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → if(𝑤𝑎, ⟨𝑤, if(𝑤 = 𝑚, 𝑡, 𝑠)⟩, ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩) = ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩)
1815, 17eqtrd 2778 . . . . . . 7 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → (𝐹𝑤) = ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩)
1911, 18eqeq12d 2754 . . . . . 6 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → ((𝐹𝑧) = (𝐹𝑤) ↔ ⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩ = ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩))
2019biimpa 476 . . . . 5 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → ⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩ = ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩)
21 vex 3426 . . . . . 6 𝑧 ∈ V
22 vex 3426 . . . . . . 7 𝑡 ∈ V
23 vex 3426 . . . . . . 7 𝑠 ∈ V
2422, 23ifex 4506 . . . . . 6 if(𝑧 = 𝑚, 𝑡, 𝑠) ∈ V
2521, 24opth 5385 . . . . 5 (⟨𝑧, if(𝑧 = 𝑚, 𝑡, 𝑠)⟩ = ⟨if(𝑤 = 𝑡, 𝑛, 𝑚), 𝑤⟩ ↔ (𝑧 = if(𝑤 = 𝑡, 𝑛, 𝑚) ∧ if(𝑧 = 𝑚, 𝑡, 𝑠) = 𝑤))
2620, 25sylib 217 . . . 4 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → (𝑧 = if(𝑤 = 𝑡, 𝑛, 𝑚) ∧ if(𝑧 = 𝑚, 𝑡, 𝑠) = 𝑤))
2726simprd 495 . . 3 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → if(𝑧 = 𝑚, 𝑡, 𝑠) = 𝑤)
28 iftrue 4462 . . . . . . 7 (𝑧 = 𝑚 → if(𝑧 = 𝑚, 𝑡, 𝑠) = 𝑡)
2927eqeq1d 2740 . . . . . . 7 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → (if(𝑧 = 𝑚, 𝑡, 𝑠) = 𝑡𝑤 = 𝑡))
3028, 29syl5ib 243 . . . . . 6 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → (𝑧 = 𝑚𝑤 = 𝑡))
31 iftrue 4462 . . . . . . 7 (𝑤 = 𝑡 → if(𝑤 = 𝑡, 𝑛, 𝑚) = 𝑛)
3226simpld 494 . . . . . . . 8 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → 𝑧 = if(𝑤 = 𝑡, 𝑛, 𝑚))
3332eqeq1d 2740 . . . . . . 7 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → (𝑧 = 𝑛 ↔ if(𝑤 = 𝑡, 𝑛, 𝑚) = 𝑛))
3431, 33syl5ibr 245 . . . . . 6 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → (𝑤 = 𝑡𝑧 = 𝑛))
3530, 34syld 47 . . . . 5 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → (𝑧 = 𝑚𝑧 = 𝑛))
36 unxpdomlem2.2 . . . . . . 7 (𝜑 → ¬ 𝑚 = 𝑛)
3736ad2antrr 722 . . . . . 6 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → ¬ 𝑚 = 𝑛)
38 equequ1 2029 . . . . . . 7 (𝑧 = 𝑚 → (𝑧 = 𝑛𝑚 = 𝑛))
3938notbid 317 . . . . . 6 (𝑧 = 𝑚 → (¬ 𝑧 = 𝑛 ↔ ¬ 𝑚 = 𝑛))
4037, 39syl5ibrcom 246 . . . . 5 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → (𝑧 = 𝑚 → ¬ 𝑧 = 𝑛))
4135, 40pm2.65d 195 . . . 4 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → ¬ 𝑧 = 𝑚)
4241iffalsed 4467 . . 3 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → if(𝑧 = 𝑚, 𝑡, 𝑠) = 𝑠)
43 iffalse 4465 . . . . 5 𝑤 = 𝑡 → if(𝑤 = 𝑡, 𝑛, 𝑚) = 𝑚)
4432eqeq1d 2740 . . . . 5 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → (𝑧 = 𝑚 ↔ if(𝑤 = 𝑡, 𝑛, 𝑚) = 𝑚))
4543, 44syl5ibr 245 . . . 4 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → (¬ 𝑤 = 𝑡𝑧 = 𝑚))
4641, 45mt3d 148 . . 3 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → 𝑤 = 𝑡)
4727, 42, 463eqtr3d 2786 . 2 (((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) ∧ (𝐹𝑧) = (𝐹𝑤)) → 𝑠 = 𝑡)
482, 47mtand 812 1 ((𝜑 ∧ (𝑧𝑎 ∧ ¬ 𝑤𝑎)) → ¬ (𝐹𝑧) = (𝐹𝑤))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wa 395   = wceq 1539  wcel 2108  cun 3881  ifcif 4456  cop 4564  cmpt 5153  cfv 6418
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1799  ax-4 1813  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2110  ax-9 2118  ax-10 2139  ax-11 2156  ax-12 2173  ax-ext 2709  ax-sep 5218  ax-nul 5225  ax-pr 5347
This theorem depends on definitions:  df-bi 206  df-an 396  df-or 844  df-3an 1087  df-tru 1542  df-fal 1552  df-ex 1784  df-nf 1788  df-sb 2069  df-mo 2540  df-eu 2569  df-clab 2716  df-cleq 2730  df-clel 2817  df-nfc 2888  df-ral 3068  df-rex 3069  df-rab 3072  df-v 3424  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  df-mpt 5154  df-id 5480  df-xp 5586  df-rel 5587  df-cnv 5588  df-co 5589  df-dm 5590  df-iota 6376  df-fun 6420  df-fv 6426
This theorem is referenced by:  unxpdomlem3  8958
  Copyright terms: Public domain W3C validator