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

Theorem tmsxpsval2 24455
Description: Value of the product of two metrics. (Contributed by Mario Carneiro, 2-Sep-2015.)
Hypotheses
Ref Expression
tmsxps.p 𝑃 = (dist‘((toMetSp‘𝑀) ×s (toMetSp‘𝑁)))
tmsxps.1 (𝜑𝑀 ∈ (∞Met‘𝑋))
tmsxps.2 (𝜑𝑁 ∈ (∞Met‘𝑌))
tmsxpsval.a (𝜑𝐴𝑋)
tmsxpsval.b (𝜑𝐵𝑌)
tmsxpsval.c (𝜑𝐶𝑋)
tmsxpsval.d (𝜑𝐷𝑌)
Assertion
Ref Expression
tmsxpsval2 (𝜑 → (⟨𝐴, 𝐵𝑃𝐶, 𝐷⟩) = if((𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐵𝑁𝐷), (𝐴𝑀𝐶)))

Proof of Theorem tmsxpsval2
StepHypRef Expression
1 tmsxps.p . . 3 𝑃 = (dist‘((toMetSp‘𝑀) ×s (toMetSp‘𝑁)))
2 tmsxps.1 . . 3 (𝜑𝑀 ∈ (∞Met‘𝑋))
3 tmsxps.2 . . 3 (𝜑𝑁 ∈ (∞Met‘𝑌))
4 tmsxpsval.a . . 3 (𝜑𝐴𝑋)
5 tmsxpsval.b . . 3 (𝜑𝐵𝑌)
6 tmsxpsval.c . . 3 (𝜑𝐶𝑋)
7 tmsxpsval.d . . 3 (𝜑𝐷𝑌)
81, 2, 3, 4, 5, 6, 7tmsxpsval 24454 . 2 (𝜑 → (⟨𝐴, 𝐵𝑃𝐶, 𝐷⟩) = sup({(𝐴𝑀𝐶), (𝐵𝑁𝐷)}, ℝ*, < ))
9 xrltso 13042 . . 3 < Or ℝ*
10 xmetcl 24247 . . . 4 ((𝑀 ∈ (∞Met‘𝑋) ∧ 𝐴𝑋𝐶𝑋) → (𝐴𝑀𝐶) ∈ ℝ*)
112, 4, 6, 10syl3anc 1373 . . 3 (𝜑 → (𝐴𝑀𝐶) ∈ ℝ*)
12 xmetcl 24247 . . . 4 ((𝑁 ∈ (∞Met‘𝑌) ∧ 𝐵𝑌𝐷𝑌) → (𝐵𝑁𝐷) ∈ ℝ*)
133, 5, 7, 12syl3anc 1373 . . 3 (𝜑 → (𝐵𝑁𝐷) ∈ ℝ*)
14 suppr 9363 . . 3 (( < Or ℝ* ∧ (𝐴𝑀𝐶) ∈ ℝ* ∧ (𝐵𝑁𝐷) ∈ ℝ*) → sup({(𝐴𝑀𝐶), (𝐵𝑁𝐷)}, ℝ*, < ) = if((𝐵𝑁𝐷) < (𝐴𝑀𝐶), (𝐴𝑀𝐶), (𝐵𝑁𝐷)))
159, 11, 13, 14mp3an2i 1468 . 2 (𝜑 → sup({(𝐴𝑀𝐶), (𝐵𝑁𝐷)}, ℝ*, < ) = if((𝐵𝑁𝐷) < (𝐴𝑀𝐶), (𝐴𝑀𝐶), (𝐵𝑁𝐷)))
16 xrltnle 11186 . . . . 5 (((𝐵𝑁𝐷) ∈ ℝ* ∧ (𝐴𝑀𝐶) ∈ ℝ*) → ((𝐵𝑁𝐷) < (𝐴𝑀𝐶) ↔ ¬ (𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷)))
1713, 11, 16syl2anc 584 . . . 4 (𝜑 → ((𝐵𝑁𝐷) < (𝐴𝑀𝐶) ↔ ¬ (𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷)))
1817ifbid 4498 . . 3 (𝜑 → if((𝐵𝑁𝐷) < (𝐴𝑀𝐶), (𝐴𝑀𝐶), (𝐵𝑁𝐷)) = if(¬ (𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐴𝑀𝐶), (𝐵𝑁𝐷)))
19 ifnot 4527 . . 3 if(¬ (𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐴𝑀𝐶), (𝐵𝑁𝐷)) = if((𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐵𝑁𝐷), (𝐴𝑀𝐶))
2018, 19eqtrdi 2784 . 2 (𝜑 → if((𝐵𝑁𝐷) < (𝐴𝑀𝐶), (𝐴𝑀𝐶), (𝐵𝑁𝐷)) = if((𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐵𝑁𝐷), (𝐴𝑀𝐶)))
218, 15, 203eqtrd 2772 1 (𝜑 → (⟨𝐴, 𝐵𝑃𝐶, 𝐷⟩) = if((𝐴𝑀𝐶) ≤ (𝐵𝑁𝐷), (𝐵𝑁𝐷), (𝐴𝑀𝐶)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 206   = wceq 1541  wcel 2113  ifcif 4474  {cpr 4577  cop 4581   class class class wbr 5093   Or wor 5526  cfv 6486  (class class class)co 7352  supcsup 9331  *cxr 11152   < clt 11153  cle 11154  distcds 17172   ×s cxps 17412  ∞Metcxmet 21278  toMetSpctms 24235
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1796  ax-4 1810  ax-5 1911  ax-6 1968  ax-7 2009  ax-8 2115  ax-9 2123  ax-10 2146  ax-11 2162  ax-12 2182  ax-ext 2705  ax-rep 5219  ax-sep 5236  ax-nul 5246  ax-pow 5305  ax-pr 5372  ax-un 7674  ax-cnex 11069  ax-resscn 11070  ax-1cn 11071  ax-icn 11072  ax-addcl 11073  ax-addrcl 11074  ax-mulcl 11075  ax-mulrcl 11076  ax-mulcom 11077  ax-addass 11078  ax-mulass 11079  ax-distr 11080  ax-i2m1 11081  ax-1ne0 11082  ax-1rid 11083  ax-rnegex 11084  ax-rrecex 11085  ax-cnre 11086  ax-pre-lttri 11087  ax-pre-lttrn 11088  ax-pre-ltadd 11089  ax-pre-mulgt0 11090  ax-pre-sup 11091
This theorem depends on definitions:  df-bi 207  df-an 396  df-or 848  df-3or 1087  df-3an 1088  df-tru 1544  df-fal 1554  df-ex 1781  df-nf 1785  df-sb 2068  df-mo 2537  df-eu 2566  df-clab 2712  df-cleq 2725  df-clel 2808  df-nfc 2882  df-ne 2930  df-nel 3034  df-ral 3049  df-rex 3058  df-rmo 3347  df-reu 3348  df-rab 3397  df-v 3439  df-sbc 3738  df-csb 3847  df-dif 3901  df-un 3903  df-in 3905  df-ss 3915  df-pss 3918  df-nul 4283  df-if 4475  df-pw 4551  df-sn 4576  df-pr 4578  df-tp 4580  df-op 4582  df-uni 4859  df-int 4898  df-iun 4943  df-iin 4944  df-br 5094  df-opab 5156  df-mpt 5175  df-tr 5201  df-id 5514  df-eprel 5519  df-po 5527  df-so 5528  df-fr 5572  df-se 5573  df-we 5574  df-xp 5625  df-rel 5626  df-cnv 5627  df-co 5628  df-dm 5629  df-rn 5630  df-res 5631  df-ima 5632  df-pred 6253  df-ord 6314  df-on 6315  df-lim 6316  df-suc 6317  df-iota 6442  df-fun 6488  df-fn 6489  df-f 6490  df-f1 6491  df-fo 6492  df-f1o 6493  df-fv 6494  df-isom 6495  df-riota 7309  df-ov 7355  df-oprab 7356  df-mpo 7357  df-of 7616  df-om 7803  df-1st 7927  df-2nd 7928  df-supp 8097  df-frecs 8217  df-wrecs 8248  df-recs 8297  df-rdg 8335  df-1o 8391  df-2o 8392  df-er 8628  df-map 8758  df-ixp 8828  df-en 8876  df-dom 8877  df-sdom 8878  df-fin 8879  df-fsupp 9253  df-sup 9333  df-inf 9334  df-oi 9403  df-card 9839  df-pnf 11155  df-mnf 11156  df-xr 11157  df-ltxr 11158  df-le 11159  df-sub 11353  df-neg 11354  df-div 11782  df-nn 12133  df-2 12195  df-3 12196  df-4 12197  df-5 12198  df-6 12199  df-7 12200  df-8 12201  df-9 12202  df-n0 12389  df-z 12476  df-dec 12595  df-uz 12739  df-q 12849  df-rp 12893  df-xneg 13013  df-xadd 13014  df-xmul 13015  df-icc 13254  df-fz 13410  df-fzo 13557  df-seq 13911  df-hash 14240  df-struct 17060  df-sets 17077  df-slot 17095  df-ndx 17107  df-base 17123  df-ress 17144  df-plusg 17176  df-mulr 17177  df-sca 17179  df-vsca 17180  df-ip 17181  df-tset 17182  df-ple 17183  df-ds 17185  df-hom 17187  df-cco 17188  df-rest 17328  df-topn 17329  df-0g 17347  df-gsum 17348  df-topgen 17349  df-prds 17353  df-xrs 17408  df-imas 17414  df-xps 17416  df-mre 17490  df-mrc 17491  df-acs 17493  df-mgm 18550  df-sgrp 18629  df-mnd 18645  df-submnd 18694  df-mulg 18983  df-cntz 19231  df-cmn 19696  df-psmet 21285  df-xmet 21286  df-bl 21288  df-mopn 21289  df-top 22810  df-topon 22827  df-topsp 22849  df-bases 22862  df-xms 24236  df-tms 24238
This theorem is referenced by:  txmetcnp  24463
  Copyright terms: Public domain W3C validator