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

Theorem psmettri2 23207
Description: Triangle inequality for the distance function of a pseudometric. (Contributed by Thierry Arnoux, 11-Feb-2018.)
Assertion
Ref Expression
psmettri2 ((𝐷 ∈ (PsMet‘𝑋) ∧ (𝐶𝑋𝐴𝑋𝐵𝑋)) → (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +𝑒 (𝐶𝐷𝐵)))

Proof of Theorem psmettri2
Dummy variables 𝑎 𝑏 𝑐 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elfvex 6750 . . . . . . . 8 (𝐷 ∈ (PsMet‘𝑋) → 𝑋 ∈ V)
2 ispsmet 23202 . . . . . . . 8 (𝑋 ∈ V → (𝐷 ∈ (PsMet‘𝑋) ↔ (𝐷:(𝑋 × 𝑋)⟶ℝ* ∧ ∀𝑎𝑋 ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏𝑋𝑐𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏))))))
31, 2syl 17 . . . . . . 7 (𝐷 ∈ (PsMet‘𝑋) → (𝐷 ∈ (PsMet‘𝑋) ↔ (𝐷:(𝑋 × 𝑋)⟶ℝ* ∧ ∀𝑎𝑋 ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏𝑋𝑐𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏))))))
43ibi 270 . . . . . 6 (𝐷 ∈ (PsMet‘𝑋) → (𝐷:(𝑋 × 𝑋)⟶ℝ* ∧ ∀𝑎𝑋 ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏𝑋𝑐𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏)))))
54simprd 499 . . . . 5 (𝐷 ∈ (PsMet‘𝑋) → ∀𝑎𝑋 ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏𝑋𝑐𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏))))
65r19.21bi 3130 . . . 4 ((𝐷 ∈ (PsMet‘𝑋) ∧ 𝑎𝑋) → ((𝑎𝐷𝑎) = 0 ∧ ∀𝑏𝑋𝑐𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏))))
76simprd 499 . . 3 ((𝐷 ∈ (PsMet‘𝑋) ∧ 𝑎𝑋) → ∀𝑏𝑋𝑐𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏)))
87ralrimiva 3105 . 2 (𝐷 ∈ (PsMet‘𝑋) → ∀𝑎𝑋𝑏𝑋𝑐𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏)))
9 oveq1 7220 . . . . 5 (𝑎 = 𝐴 → (𝑎𝐷𝑏) = (𝐴𝐷𝑏))
10 oveq2 7221 . . . . . 6 (𝑎 = 𝐴 → (𝑐𝐷𝑎) = (𝑐𝐷𝐴))
1110oveq1d 7228 . . . . 5 (𝑎 = 𝐴 → ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏)) = ((𝑐𝐷𝐴) +𝑒 (𝑐𝐷𝑏)))
129, 11breq12d 5066 . . . 4 (𝑎 = 𝐴 → ((𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏)) ↔ (𝐴𝐷𝑏) ≤ ((𝑐𝐷𝐴) +𝑒 (𝑐𝐷𝑏))))
13 oveq2 7221 . . . . 5 (𝑏 = 𝐵 → (𝐴𝐷𝑏) = (𝐴𝐷𝐵))
14 oveq2 7221 . . . . . 6 (𝑏 = 𝐵 → (𝑐𝐷𝑏) = (𝑐𝐷𝐵))
1514oveq2d 7229 . . . . 5 (𝑏 = 𝐵 → ((𝑐𝐷𝐴) +𝑒 (𝑐𝐷𝑏)) = ((𝑐𝐷𝐴) +𝑒 (𝑐𝐷𝐵)))
1613, 15breq12d 5066 . . . 4 (𝑏 = 𝐵 → ((𝐴𝐷𝑏) ≤ ((𝑐𝐷𝐴) +𝑒 (𝑐𝐷𝑏)) ↔ (𝐴𝐷𝐵) ≤ ((𝑐𝐷𝐴) +𝑒 (𝑐𝐷𝐵))))
17 oveq1 7220 . . . . . 6 (𝑐 = 𝐶 → (𝑐𝐷𝐴) = (𝐶𝐷𝐴))
18 oveq1 7220 . . . . . 6 (𝑐 = 𝐶 → (𝑐𝐷𝐵) = (𝐶𝐷𝐵))
1917, 18oveq12d 7231 . . . . 5 (𝑐 = 𝐶 → ((𝑐𝐷𝐴) +𝑒 (𝑐𝐷𝐵)) = ((𝐶𝐷𝐴) +𝑒 (𝐶𝐷𝐵)))
2019breq2d 5065 . . . 4 (𝑐 = 𝐶 → ((𝐴𝐷𝐵) ≤ ((𝑐𝐷𝐴) +𝑒 (𝑐𝐷𝐵)) ↔ (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +𝑒 (𝐶𝐷𝐵))))
2112, 16, 20rspc3v 3550 . . 3 ((𝐴𝑋𝐵𝑋𝐶𝑋) → (∀𝑎𝑋𝑏𝑋𝑐𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏)) → (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +𝑒 (𝐶𝐷𝐵))))
22213comr 1127 . 2 ((𝐶𝑋𝐴𝑋𝐵𝑋) → (∀𝑎𝑋𝑏𝑋𝑐𝑋 (𝑎𝐷𝑏) ≤ ((𝑐𝐷𝑎) +𝑒 (𝑐𝐷𝑏)) → (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +𝑒 (𝐶𝐷𝐵))))
238, 22mpan9 510 1 ((𝐷 ∈ (PsMet‘𝑋) ∧ (𝐶𝑋𝐴𝑋𝐵𝑋)) → (𝐴𝐷𝐵) ≤ ((𝐶𝐷𝐴) +𝑒 (𝐶𝐷𝐵)))
Colors of variables: wff setvar class
Syntax hints:  wi 4  wb 209  wa 399  w3a 1089   = wceq 1543  wcel 2110  wral 3061  Vcvv 3408   class class class wbr 5053   × cxp 5549  wf 6376  cfv 6380  (class class class)co 7213  0cc0 10729  *cxr 10866  cle 10868   +𝑒 cxad 12702  PsMetcpsmet 20347
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1803  ax-4 1817  ax-5 1918  ax-6 1976  ax-7 2016  ax-8 2112  ax-9 2120  ax-10 2141  ax-11 2158  ax-12 2175  ax-ext 2708  ax-sep 5192  ax-nul 5199  ax-pow 5258  ax-pr 5322  ax-un 7523  ax-cnex 10785  ax-resscn 10786
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 848  df-3an 1091  df-tru 1546  df-fal 1556  df-ex 1788  df-nf 1792  df-sb 2071  df-mo 2539  df-eu 2568  df-clab 2715  df-cleq 2729  df-clel 2816  df-nfc 2886  df-ne 2941  df-ral 3066  df-rex 3067  df-rab 3070  df-v 3410  df-sbc 3695  df-dif 3869  df-un 3871  df-in 3873  df-ss 3883  df-nul 4238  df-if 4440  df-pw 4515  df-sn 4542  df-pr 4544  df-op 4548  df-uni 4820  df-br 5054  df-opab 5116  df-mpt 5136  df-id 5455  df-xp 5557  df-rel 5558  df-cnv 5559  df-co 5560  df-dm 5561  df-rn 5562  df-iota 6338  df-fun 6382  df-fn 6383  df-f 6384  df-fv 6388  df-ov 7216  df-oprab 7217  df-mpo 7218  df-map 8510  df-xr 10871  df-psmet 20355
This theorem is referenced by:  psmetsym  23208  psmettri  23209  psmetge0  23210  psmetres2  23212  xblss2ps  23299  metideq  31557  metider  31558  pstmxmet  31561
  Copyright terms: Public domain W3C validator