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

Theorem ltbwe 20804
 Description: The finite bag order is a well-order, given a well-order of the index set. (Contributed by Mario Carneiro, 2-Jun-2015.)
Hypotheses
Ref Expression
ltbval.c 𝐶 = (𝑇 <bag 𝐼)
ltbval.d 𝐷 = { ∈ (ℕ0m 𝐼) ∣ ( “ ℕ) ∈ Fin}
ltbval.i (𝜑𝐼𝑉)
ltbval.t (𝜑𝑇𝑊)
ltbwe.w (𝜑𝑇 We 𝐼)
Assertion
Ref Expression
ltbwe (𝜑𝐶 We 𝐷)
Distinct variable groups:   ,𝐼   𝜑,
Allowed substitution hints:   𝐶()   𝐷()   𝑇()   𝑉()   𝑊()

Proof of Theorem ltbwe
Dummy variables 𝑥 𝑦 𝑤 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 eqid 2758 . . . . 5 {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} = {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))}
2 breq1 5035 . . . . . 6 ( = 𝑥 → ( finSupp 0 ↔ 𝑥 finSupp 0))
32cbvrabv 3404 . . . . 5 { ∈ (ℕ0m 𝐼) ∣ finSupp 0} = {𝑥 ∈ (ℕ0m 𝐼) ∣ 𝑥 finSupp 0}
4 ltbwe.w . . . . 5 (𝜑𝑇 We 𝐼)
5 nn0uz 12320 . . . . . 6 0 = (ℤ‘0)
6 ltweuz 13378 . . . . . . 7 < We (ℤ‘0)
7 weeq2 5513 . . . . . . 7 (ℕ0 = (ℤ‘0) → ( < We ℕ0 ↔ < We (ℤ‘0)))
86, 7mpbiri 261 . . . . . 6 (ℕ0 = (ℤ‘0) → < We ℕ0)
95, 8mp1i 13 . . . . 5 (𝜑 → < We ℕ0)
10 0nn0 11949 . . . . . 6 0 ∈ ℕ0
11 ne0i 4233 . . . . . 6 (0 ∈ ℕ0 → ℕ0 ≠ ∅)
1210, 11mp1i 13 . . . . 5 (𝜑 → ℕ0 ≠ ∅)
13 eqid 2758 . . . . 5 OrdIso(𝑇, 𝐼) = OrdIso(𝑇, 𝐼)
14 0z 12031 . . . . . . 7 0 ∈ ℤ
15 hashgval2 13789 . . . . . . 7 (♯ ↾ ω) = (rec((𝑥 ∈ V ↦ (𝑥 + 1)), 0) ↾ ω)
1614, 15om2uzoi 13372 . . . . . 6 (♯ ↾ ω) = OrdIso( < , (ℤ‘0))
17 oieq2 9010 . . . . . . 7 (ℕ0 = (ℤ‘0) → OrdIso( < , ℕ0) = OrdIso( < , (ℤ‘0)))
185, 17ax-mp 5 . . . . . 6 OrdIso( < , ℕ0) = OrdIso( < , (ℤ‘0))
1916, 18eqtr4i 2784 . . . . 5 (♯ ↾ ω) = OrdIso( < , ℕ0)
20 peano1 7600 . . . . . . 7 ∅ ∈ ω
21 fvres 6677 . . . . . . 7 (∅ ∈ ω → ((♯ ↾ ω)‘∅) = (♯‘∅))
2220, 21ax-mp 5 . . . . . 6 ((♯ ↾ ω)‘∅) = (♯‘∅)
23 hash0 13778 . . . . . 6 (♯‘∅) = 0
2422, 23eqtr2i 2782 . . . . 5 0 = ((♯ ↾ ω)‘∅)
251, 3, 4, 9, 12, 13, 19, 24wemapwe 9193 . . . 4 (𝜑 → {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} We { ∈ (ℕ0m 𝐼) ∣ finSupp 0})
26 ltbval.d . . . . . 6 𝐷 = { ∈ (ℕ0m 𝐼) ∣ ( “ ℕ) ∈ Fin}
27 elmapfun 8448 . . . . . . . . . 10 ( ∈ (ℕ0m 𝐼) → Fun )
2827adantl 485 . . . . . . . . 9 ((𝜑 ∈ (ℕ0m 𝐼)) → Fun )
29 simpr 488 . . . . . . . . 9 ((𝜑 ∈ (ℕ0m 𝐼)) → ∈ (ℕ0m 𝐼))
30 c0ex 10673 . . . . . . . . . 10 0 ∈ V
3130a1i 11 . . . . . . . . 9 ((𝜑 ∈ (ℕ0m 𝐼)) → 0 ∈ V)
32 funisfsupp 8871 . . . . . . . . 9 ((Fun ∈ (ℕ0m 𝐼) ∧ 0 ∈ V) → ( finSupp 0 ↔ ( supp 0) ∈ Fin))
3328, 29, 31, 32syl3anc 1368 . . . . . . . 8 ((𝜑 ∈ (ℕ0m 𝐼)) → ( finSupp 0 ↔ ( supp 0) ∈ Fin))
34 ltbval.i . . . . . . . . 9 (𝜑𝐼𝑉)
35 elmapi 8438 . . . . . . . . 9 ( ∈ (ℕ0m 𝐼) → :𝐼⟶ℕ0)
36 frnnn0supp 11990 . . . . . . . . . 10 ((𝐼𝑉:𝐼⟶ℕ0) → ( supp 0) = ( “ ℕ))
3736eleq1d 2836 . . . . . . . . 9 ((𝐼𝑉:𝐼⟶ℕ0) → (( supp 0) ∈ Fin ↔ ( “ ℕ) ∈ Fin))
3834, 35, 37syl2an 598 . . . . . . . 8 ((𝜑 ∈ (ℕ0m 𝐼)) → (( supp 0) ∈ Fin ↔ ( “ ℕ) ∈ Fin))
3933, 38bitr2d 283 . . . . . . 7 ((𝜑 ∈ (ℕ0m 𝐼)) → (( “ ℕ) ∈ Fin ↔ finSupp 0))
4039rabbidva 3390 . . . . . 6 (𝜑 → { ∈ (ℕ0m 𝐼) ∣ ( “ ℕ) ∈ Fin} = { ∈ (ℕ0m 𝐼) ∣ finSupp 0})
4126, 40syl5eq 2805 . . . . 5 (𝜑𝐷 = { ∈ (ℕ0m 𝐼) ∣ finSupp 0})
42 weeq2 5513 . . . . 5 (𝐷 = { ∈ (ℕ0m 𝐼) ∣ finSupp 0} → ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} We 𝐷 ↔ {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} We { ∈ (ℕ0m 𝐼) ∣ finSupp 0}))
4341, 42syl 17 . . . 4 (𝜑 → ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} We 𝐷 ↔ {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} We { ∈ (ℕ0m 𝐼) ∣ finSupp 0}))
4425, 43mpbird 260 . . 3 (𝜑 → {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} We 𝐷)
45 weinxp 5605 . . 3 ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} We 𝐷 ↔ ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} ∩ (𝐷 × 𝐷)) We 𝐷)
4644, 45sylib 221 . 2 (𝜑 → ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} ∩ (𝐷 × 𝐷)) We 𝐷)
47 ltbval.c . . . . 5 𝐶 = (𝑇 <bag 𝐼)
48 ltbval.t . . . . 5 (𝜑𝑇𝑊)
4947, 26, 34, 48ltbval 20803 . . . 4 (𝜑𝐶 = {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))})
50 df-xp 5530 . . . . . . 7 (𝐷 × 𝐷) = {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐷𝑦𝐷)}
51 vex 3413 . . . . . . . . 9 𝑥 ∈ V
52 vex 3413 . . . . . . . . 9 𝑦 ∈ V
5351, 52prss 4710 . . . . . . . 8 ((𝑥𝐷𝑦𝐷) ↔ {𝑥, 𝑦} ⊆ 𝐷)
5453opabbii 5099 . . . . . . 7 {⟨𝑥, 𝑦⟩ ∣ (𝑥𝐷𝑦𝐷)} = {⟨𝑥, 𝑦⟩ ∣ {𝑥, 𝑦} ⊆ 𝐷}
5550, 54eqtr2i 2782 . . . . . 6 {⟨𝑥, 𝑦⟩ ∣ {𝑥, 𝑦} ⊆ 𝐷} = (𝐷 × 𝐷)
5655ineq1i 4113 . . . . 5 ({⟨𝑥, 𝑦⟩ ∣ {𝑥, 𝑦} ⊆ 𝐷} ∩ {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))}) = ((𝐷 × 𝐷) ∩ {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))})
57 inopab 5670 . . . . 5 ({⟨𝑥, 𝑦⟩ ∣ {𝑥, 𝑦} ⊆ 𝐷} ∩ {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))}) = {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))}
58 incom 4106 . . . . 5 ((𝐷 × 𝐷) ∩ {⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))}) = ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} ∩ (𝐷 × 𝐷))
5956, 57, 583eqtr3i 2789 . . . 4 {⟨𝑥, 𝑦⟩ ∣ ({𝑥, 𝑦} ⊆ 𝐷 ∧ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤))))} = ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} ∩ (𝐷 × 𝐷))
6049, 59eqtrdi 2809 . . 3 (𝜑𝐶 = ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} ∩ (𝐷 × 𝐷)))
61 weeq1 5512 . . 3 (𝐶 = ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} ∩ (𝐷 × 𝐷)) → (𝐶 We 𝐷 ↔ ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} ∩ (𝐷 × 𝐷)) We 𝐷))
6260, 61syl 17 . 2 (𝜑 → (𝐶 We 𝐷 ↔ ({⟨𝑥, 𝑦⟩ ∣ ∃𝑧𝐼 ((𝑥𝑧) < (𝑦𝑧) ∧ ∀𝑤𝐼 (𝑧𝑇𝑤 → (𝑥𝑤) = (𝑦𝑤)))} ∩ (𝐷 × 𝐷)) We 𝐷))
6346, 62mpbird 260 1 (𝜑𝐶 We 𝐷)
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ↔ wb 209   ∧ wa 399   = wceq 1538   ∈ wcel 2111   ≠ wne 2951  ∀wral 3070  ∃wrex 3071  {crab 3074  Vcvv 3409   ∩ cin 3857   ⊆ wss 3858  ∅c0 4225  {cpr 4524   class class class wbr 5032  {copab 5094   We wwe 5482   × cxp 5522  ◡ccnv 5523   ↾ cres 5526   “ cima 5527  Fun wfun 6329  ⟶wf 6331  ‘cfv 6335  (class class class)co 7150  ωcom 7579   supp csupp 7835   ↑m cmap 8416  Fincfn 8527   finSupp cfsupp 8866  OrdIsocoi 9006  0cc0 10575   < clt 10713  ℕcn 11674  ℕ0cn0 11934  ℤ≥cuz 12282  ♯chash 13740
 Copyright terms: Public domain W3C validator