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

Theorem fnwe 8192
Description: A variant on lexicographic order, which sorts first by some function of the base set, and then by a "backup" well-ordering when the function value is equal on both elements. (Contributed by Mario Carneiro, 10-Mar-2013.) (Revised by Mario Carneiro, 18-Nov-2014.)
Hypotheses
Ref Expression
fnwe.1 𝑇 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐴) ∧ ((𝐹‘𝑥)𝑅(𝐹‘𝑦) ∨ ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥𝑆𝑦)))}
fnwe.2 (𝜑 → 𝐹:𝐴⟶𝐵)
fnwe.3 (𝜑 → 𝑅 We 𝐵)
fnwe.4 (𝜑 → 𝑆 We 𝐴)
fnwe.5 (𝜑 → (𝐹 “ 𝑤) ∈ V)
Assertion
Ref Expression
fnwe (𝜑 → 𝑇 We 𝐴)
Distinct variable groups:   𝑥,𝑤,𝑦,𝐴   𝑤,𝐵,𝑥,𝑦   𝜑,𝑤,𝑥   𝑤,𝐹,𝑥,𝑦   𝑤,𝑅,𝑥,𝑦   𝑤,𝑆,𝑥,𝑦   𝑤,𝑇
Allowed substitution hints:   𝜑(𝑦)   𝑇(𝑥, 𝑦)

Proof of Theorem fnwe
Dummy variables 𝑣 𝑢 𝑧 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 fnwe.1 . 2 𝑇 = {⟨𝑥, 𝑦⟩ ∣ ((𝑥 ∈ 𝐴 ∧ 𝑦 ∈ 𝐴) ∧ ((𝐹‘𝑥)𝑅(𝐹‘𝑦) ∨ ((𝐹‘𝑥) = (𝐹‘𝑦) ∧ 𝑥𝑆𝑦)))}
2 fnwe.2 . 2 (𝜑 → 𝐹:𝐴⟶𝐵)
3 fnwe.3 . 2 (𝜑 → 𝑅 We 𝐵)
4 fnwe.4 . 2 (𝜑 → 𝑆 We 𝐴)
5 fnwe.5 . 2 (𝜑 → (𝐹 “ 𝑤) ∈ V)
6 eqid 2769 . 2 {⟨𝑢, 𝑣⟩ ∣ ((𝑢 ∈ (𝐵 × 𝐴) ∧ 𝑣 ∈ (𝐵 × 𝐴)) ∧ ((1st ‘𝑢)𝑅(1st ‘𝑣) ∨ ((1st ‘𝑢) = (1st ‘𝑣) ∧ (2nd ‘𝑢)𝑆(2nd ‘𝑣))))} = {⟨𝑢, 𝑣⟩ ∣ ((𝑢 ∈ (𝐵 × 𝐴) ∧ 𝑣 ∈ (𝐵 × 𝐴)) ∧ ((1st ‘𝑢)𝑅(1st ‘𝑣) ∨ ((1st ‘𝑢) = (1st ‘𝑣) ∧ (2nd ‘𝑢)𝑆(2nd ‘𝑣))))}
7 eqid 2769 . 2 (𝑧 ∈ 𝐴 ↦ ⟨(𝐹‘𝑧), 𝑧⟩) = (𝑧 ∈ 𝐴 ↦ ⟨(𝐹‘𝑧), 𝑧⟩)
81, 2, 3, 4, 5, 6, 7fnwelem 8191 1 (𝜑 → 𝑇 We 𝐴)
Colors of variables:    wff setvar class
This proof depends on syntax axioms:   → wi 4   ∧ wa 401   ∨ wo 861   = wceq 1572   ∈ wcel 2151  Vcvv 3456  ⟨cop 4843   class class class wbr 5111  {copab 5176   ↦ cmpt 5195   We wwe 5613   × cxp 5659   “ cima 5664  ⟶wf 6569  ‘cfv 6573  1st c1st 8044  2nd c2nd 8045
This proof depends on axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1830  ax-4 1844  ax-5 1947  ax-6 2004  ax-7 2045  ax-8 2153  ax-9 2161  ax-10 2184  ax-11 2201  ax-12 2220  ax-ext 2741  ax-sep 5258  ax-nul 5269  ax-pow 5337  ax-pr 5401  ax-un 7794
This proof depends on definitions:  df-bi 210  df-an 402  df-or 862  df-3or 1105  df-3an 1106  df-tru 1575  df-fal 1585  df-ex 1815  df-nf 1819  df-sb 2105  df-mo 2571  df-eu 2601  df-clab 2748  df-cleq 2761  df-clel 2845  df-nfc 2919  df-ne 2966  df-ral 3087  df-rex 3097  df-rab 3419  df-v 3458  df-ss 3903  df-dif 4052  df-in 4096  df-un 4156  df-nul 4284  df-if 4488  df-pw 4564  df-sn 4591  df-pr 4593  df-op 4844  df-uni 4876  df-int 4916  df-br 5112  df-opab 5177  df-mpt 5196  df-id 5556  df-po 5569  df-so 5570  df-fr 5614  df-we 5616  df-xp 5667  df-rel 5668  df-cnv 5669  df-co 5670  df-dm 5671  df-rn 5672  df-res 5673  df-ima 5674  df-iota 6527  df-fun 6575  df-fn 6576  df-f 6577  df-f1 6578  df-fo 6579  df-f1o 6580  df-fv 6581  df-isom 6582  df-1st 8046  df-2nd 8047
This theorem is used by:  r0weon  10141
  Copyright terms: Public domain W3C validator