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

Theorem ltbval 21154
Description: Value of the well-order on finite bags. (Contributed by Mario Carneiro, 8-Feb-2015.)
Hypotheses
Ref Expression
ltbval.c 𝐶 = (𝑇 <bag 𝐼)
ltbval.d 𝐷 = { ∈ (ℕ0m 𝐼) ∣ ( “ ℕ) ∈ Fin}
ltbval.i (𝜑𝐼𝑉)
ltbval.t (𝜑𝑇𝑊)
Assertion
Ref Expression
ltbval (𝜑𝐶 = {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))})
Distinct variable groups:   𝑥,𝑦,𝐷   𝑤,,𝑥,𝑦,𝑧,𝐼   𝜑,,𝑥,𝑦   𝑤,𝑇,𝑥,𝑦,𝑧
Allowed substitution hints:   𝜑(𝑧,𝑤)   𝐶(𝑥,𝑦,𝑧,𝑤,)   𝐷(𝑧,𝑤,)   𝑇()   𝑉(𝑥,𝑦,𝑧,𝑤,)   𝑊(𝑥,𝑦,𝑧,𝑤,)

Proof of Theorem ltbval
Dummy variables 𝑖 𝑟 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 ltbval.c . 2 𝐶 = (𝑇 <bag 𝐼)
2 ltbval.t . . 3 (𝜑𝑇𝑊)
3 ltbval.i . . 3 (𝜑𝐼𝑉)
4 elex 3440 . . . 4 (𝑇𝑊𝑇 ∈ V)
5 elex 3440 . . . 4 (𝐼𝑉𝐼 ∈ V)
6 simpr 484 . . . . . . . . . . 11 ((𝑟 = 𝑇𝑖 = 𝐼) → 𝑖 = 𝐼)
76oveq2d 7271 . . . . . . . . . 10 ((𝑟 = 𝑇𝑖 = 𝐼) → (ℕ0m 𝑖) = (ℕ0m 𝐼))
8 rabeq 3408 . . . . . . . . . 10 ((ℕ0m 𝑖) = (ℕ0m 𝐼) → { ∈ (ℕ0m 𝑖) ∣ ( “ ℕ) ∈ Fin} = { ∈ (ℕ0m 𝐼) ∣ ( “ ℕ) ∈ Fin})
97, 8syl 17 . . . . . . . . 9 ((𝑟 = 𝑇𝑖 = 𝐼) → { ∈ (ℕ0m 𝑖) ∣ ( “ ℕ) ∈ Fin} = { ∈ (ℕ0m 𝐼) ∣ ( “ ℕ) ∈ Fin})
10 ltbval.d . . . . . . . . 9 𝐷 = { ∈ (ℕ0m 𝐼) ∣ ( “ ℕ) ∈ Fin}
119, 10eqtr4di 2797 . . . . . . . 8 ((𝑟 = 𝑇𝑖 = 𝐼) → { ∈ (ℕ0m 𝑖) ∣ ( “ ℕ) ∈ Fin} = 𝐷)
1211sseq2d 3949 . . . . . . 7 ((𝑟 = 𝑇𝑖 = 𝐼) → ({𝑥, 𝑦} ⊆ { ∈ (ℕ0m 𝑖) ∣ ( “ ℕ) ∈ Fin} ↔ {𝑥, 𝑦} ⊆ 𝐷))
13 simpl 482 . . . . . . . . . . . 12 ((𝑟 = 𝑇𝑖 = 𝐼) → 𝑟 = 𝑇)
1413breqd 5081 . . . . . . . . . . 11 ((𝑟 = 𝑇𝑖 = 𝐼) → (𝑧𝑟𝑤𝑧𝑇𝑤))
1514imbi1d 341 . . . . . . . . . 10 ((𝑟 = 𝑇𝑖 = 𝐼) → ((𝑧𝑟𝑤 → (𝑥𝑤) = (𝑦𝑤)) ↔ (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))
166, 15raleqbidv 3327 . . . . . . . . 9 ((𝑟 = 𝑇𝑖 = 𝐼) → (∀𝑤𝑖 (𝑧𝑟𝑤 → (𝑥𝑤) = (𝑦𝑤)) ↔ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))
1716anbi2d 628 . . . . . . . 8 ((𝑟 = 𝑇𝑖 = 𝐼) → (((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝑖 (𝑧𝑟𝑤 → (𝑥𝑤) = (𝑦𝑤))) ↔ ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))))
186, 17rexeqbidv 3328 . . . . . . 7 ((𝑟 = 𝑇𝑖 = 𝐼) → (∃𝑧𝑖 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝑖 (𝑧𝑟𝑤 → (𝑥𝑤) = (𝑦𝑤))) ↔ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))))
1912, 18anbi12d 630 . . . . . 6 ((𝑟 = 𝑇𝑖 = 𝐼) → (({𝑥, 𝑦} ⊆ { ∈ (ℕ0m 𝑖) ∣ ( “ ℕ) ∈ Fin} ∧ ∃𝑧𝑖 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝑖 (𝑧𝑟𝑤 → (𝑥𝑤) = (𝑦𝑤)))) ↔ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))))
2019opabbidv 5136 . . . . 5 ((𝑟 = 𝑇𝑖 = 𝐼) → {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ { ∈ (ℕ0m 𝑖) ∣ ( “ ℕ) ∈ Fin} ∧ ∃𝑧𝑖 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝑖 (𝑧𝑟𝑤 → (𝑥𝑤) = (𝑦𝑤))))} = {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))})
21 df-ltbag 21025 . . . . 5 <bag = (𝑟 ∈ V, 𝑖 ∈ V ↦ {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ { ∈ (ℕ0m 𝑖) ∣ ( “ ℕ) ∈ Fin} ∧ ∃𝑧𝑖 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝑖 (𝑧𝑟𝑤 → (𝑥𝑤) = (𝑦𝑤))))})
22 vex 3426 . . . . . . . . 9 𝑥 ∈ V
23 vex 3426 . . . . . . . . 9 𝑦 ∈ V
2422, 23prss 4750 . . . . . . . 8 ((𝑥𝐷𝑦𝐷) ↔ {𝑥, 𝑦} ⊆ 𝐷)
2524anbi1i 623 . . . . . . 7 (((𝑥𝐷𝑦𝐷) ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))) ↔ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))))
2625opabbii 5137 . . . . . 6 {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐷𝑦𝐷) ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))} = {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))}
27 ovex 7288 . . . . . . . . 9 (ℕ0m 𝐼) ∈ V
2810, 27rabex2 5253 . . . . . . . 8 𝐷 ∈ V
2928, 28xpex 7581 . . . . . . 7 (𝐷 × 𝐷) ∈ V
30 opabssxp 5669 . . . . . . 7 {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐷𝑦𝐷) ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))} ⊆ (𝐷 × 𝐷)
3129, 30ssexi 5241 . . . . . 6 {⟨𝑥, 𝑦⟩ ∣ ((𝑥𝐷𝑦𝐷) ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))} ∈ V
3226, 31eqeltrri 2836 . . . . 5 {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))} ∈ V
3320, 21, 32ovmpoa 7406 . . . 4 ((𝑇 ∈ V ∧ 𝐼 ∈ V) → (𝑇 <bag 𝐼) = {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))})
344, 5, 33syl2an 595 . . 3 ((𝑇𝑊𝐼𝑉) → (𝑇 <bag 𝐼) = {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))})
352, 3, 34syl2anc 583 . 2 (𝜑 → (𝑇 <bag 𝐼) = {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))})
361, 35eqtrid 2790 1 (𝜑𝐶 = {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))})
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 395   = wceq 1539  wcel 2108  wral 3063  wrex 3064  {crab 3067  Vcvv 3422  wss 3883  {cpr 4560   class class class wbr 5070  {copab 5132   × cxp 5578  ccnv 5579  cima 5583  cfv 6418  (class class class)co 7255  m cmap 8573  Fincfn 8691   < clt 10940  cn 11903  0cn0 12163   <bag cltb 21020
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-pow 5283  ax-pr 5347  ax-un 7566
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-sbc 3712  df-dif 3886  df-un 3888  df-in 3890  df-ss 3900  df-nul 4254  df-if 4457  df-pw 4532  df-sn 4559  df-pr 4561  df-op 4565  df-uni 4837  df-br 5071  df-opab 5133  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  df-ov 7258  df-oprab 7259  df-mpo 7260  df-ltbag 21025
This theorem is referenced by:  ltbwe  21155
  Copyright terms: Public domain W3C validator