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

Theorem fnwe 7813
 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 2801 . 2 {⟨𝑢, 𝑣⟩ ∣ ((𝑢 ∈ (𝐵 × 𝐴) ∧ 𝑣 ∈ (𝐵 × 𝐴)) ∧ ((1st𝑢)𝑅(1st𝑣) ∨ ((1st𝑢) = (1st𝑣) ∧ (2nd𝑢)𝑆(2nd𝑣))))} = {⟨𝑢, 𝑣⟩ ∣ ((𝑢 ∈ (𝐵 × 𝐴) ∧ 𝑣 ∈ (𝐵 × 𝐴)) ∧ ((1st𝑢)𝑅(1st𝑣) ∨ ((1st𝑢) = (1st𝑣) ∧ (2nd𝑢)𝑆(2nd𝑣))))}
7 eqid 2801 . 2 (𝑧𝐴 ↦ ⟨(𝐹𝑧), 𝑧⟩) = (𝑧𝐴 ↦ ⟨(𝐹𝑧), 𝑧⟩)
81, 2, 3, 4, 5, 6, 7fnwelem 7812 1 (𝜑𝑇 We 𝐴)
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 399   ∨ wo 844   = wceq 1538   ∈ wcel 2112  Vcvv 3444  ⟨cop 4534   class class class wbr 5033  {copab 5095   ↦ cmpt 5113   We wwe 5481   × cxp 5521   “ cima 5526  ⟶wf 6324  ‘cfv 6328  1st c1st 7673  2nd c2nd 7674 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2773  ax-sep 5170  ax-nul 5177  ax-pow 5234  ax-pr 5298  ax-un 7445 This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3or 1085  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2601  df-eu 2632  df-clab 2780  df-cleq 2794  df-clel 2873  df-nfc 2941  df-ne 2991  df-ral 3114  df-rex 3115  df-rab 3118  df-v 3446  df-sbc 3724  df-dif 3887  df-un 3889  df-in 3891  df-ss 3901  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-op 4535  df-uni 4804  df-int 4842  df-br 5034  df-opab 5096  df-mpt 5114  df-id 5428  df-po 5442  df-so 5443  df-fr 5482  df-we 5484  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-f1 6333  df-fo 6334  df-f1o 6335  df-fv 6336  df-isom 6337  df-1st 7675  df-2nd 7676 This theorem is referenced by:  r0weon  9427
 Copyright terms: Public domain W3C validator