Intuitionistic Logic Explorer < Previous   Next > Nearby theorems Mirrors  >  Home  >  ILE Home  >  Th. List  >  ismet GIF version

Theorem ismet 12527
 Description: Express the predicate "𝐷 is a metric." (Contributed by NM, 25-Aug-2006.) (Revised by Mario Carneiro, 14-Aug-2015.)
Assertion
Ref Expression
ismet (𝑋𝐴 → (𝐷 ∈ (Met‘𝑋) ↔ (𝐷:(𝑋 × 𝑋)⟶ℝ ∧ ∀𝑥𝑋𝑦𝑋 (((𝑥𝐷𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦))))))
Distinct variable groups:   𝑥,𝑦,𝑧,𝐷   𝑥,𝑋,𝑦,𝑧
Allowed substitution hints:   𝐴(𝑥,𝑦,𝑧)

Proof of Theorem ismet
Dummy variables 𝑑 𝑡 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 elex 2697 . . . . 5 (𝑋𝐴𝑋 ∈ V)
2 fnmap 6549 . . . . . . . 8 𝑚 Fn (V × V)
3 reex 7766 . . . . . . . 8 ℝ ∈ V
4 sqxpexg 4655 . . . . . . . 8 (𝑋 ∈ V → (𝑋 × 𝑋) ∈ V)
5 fnovex 5804 . . . . . . . 8 (( ↑𝑚 Fn (V × V) ∧ ℝ ∈ V ∧ (𝑋 × 𝑋) ∈ V) → (ℝ ↑𝑚 (𝑋 × 𝑋)) ∈ V)
62, 3, 4, 5mp3an12i 1319 . . . . . . 7 (𝑋 ∈ V → (ℝ ↑𝑚 (𝑋 × 𝑋)) ∈ V)
7 rabexg 4071 . . . . . . 7 ((ℝ ↑𝑚 (𝑋 × 𝑋)) ∈ V → {𝑑 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∣ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))} ∈ V)
86, 7syl 14 . . . . . 6 (𝑋 ∈ V → {𝑑 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∣ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))} ∈ V)
9 xpeq12 4558 . . . . . . . . . 10 ((𝑡 = 𝑋𝑡 = 𝑋) → (𝑡 × 𝑡) = (𝑋 × 𝑋))
109anidms 394 . . . . . . . . 9 (𝑡 = 𝑋 → (𝑡 × 𝑡) = (𝑋 × 𝑋))
1110oveq2d 5790 . . . . . . . 8 (𝑡 = 𝑋 → (ℝ ↑𝑚 (𝑡 × 𝑡)) = (ℝ ↑𝑚 (𝑋 × 𝑋)))
12 raleq 2626 . . . . . . . . . . 11 (𝑡 = 𝑋 → (∀𝑧𝑡 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)) ↔ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦))))
1312anbi2d 459 . . . . . . . . . 10 (𝑡 = 𝑋 → ((((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑡 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦))) ↔ (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))))
1413raleqbi1dv 2634 . . . . . . . . 9 (𝑡 = 𝑋 → (∀𝑦𝑡 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑡 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦))) ↔ ∀𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))))
1514raleqbi1dv 2634 . . . . . . . 8 (𝑡 = 𝑋 → (∀𝑥𝑡𝑦𝑡 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑡 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦))) ↔ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))))
1611, 15rabeqbidv 2681 . . . . . . 7 (𝑡 = 𝑋 → {𝑑 ∈ (ℝ ↑𝑚 (𝑡 × 𝑡)) ∣ ∀𝑥𝑡𝑦𝑡 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑡 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))} = {𝑑 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∣ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))})
17 df-met 12172 . . . . . . 7 Met = (𝑡 ∈ V ↦ {𝑑 ∈ (ℝ ↑𝑚 (𝑡 × 𝑡)) ∣ ∀𝑥𝑡𝑦𝑡 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑡 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))})
1816, 17fvmptg 5497 . . . . . 6 ((𝑋 ∈ V ∧ {𝑑 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∣ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))} ∈ V) → (Met‘𝑋) = {𝑑 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∣ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))})
198, 18mpdan 417 . . . . 5 (𝑋 ∈ V → (Met‘𝑋) = {𝑑 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∣ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))})
201, 19syl 14 . . . 4 (𝑋𝐴 → (Met‘𝑋) = {𝑑 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∣ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))})
2120eleq2d 2209 . . 3 (𝑋𝐴 → (𝐷 ∈ (Met‘𝑋) ↔ 𝐷 ∈ {𝑑 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∣ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))}))
22 oveq 5780 . . . . . . . 8 (𝑑 = 𝐷 → (𝑥𝑑𝑦) = (𝑥𝐷𝑦))
2322eqeq1d 2148 . . . . . . 7 (𝑑 = 𝐷 → ((𝑥𝑑𝑦) = 0 ↔ (𝑥𝐷𝑦) = 0))
2423bibi1d 232 . . . . . 6 (𝑑 = 𝐷 → (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ↔ ((𝑥𝐷𝑦) = 0 ↔ 𝑥 = 𝑦)))
25 oveq 5780 . . . . . . . . 9 (𝑑 = 𝐷 → (𝑧𝑑𝑥) = (𝑧𝐷𝑥))
26 oveq 5780 . . . . . . . . 9 (𝑑 = 𝐷 → (𝑧𝑑𝑦) = (𝑧𝐷𝑦))
2725, 26oveq12d 5792 . . . . . . . 8 (𝑑 = 𝐷 → ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)) = ((𝑧𝐷𝑥) + (𝑧𝐷𝑦)))
2822, 27breq12d 3942 . . . . . . 7 (𝑑 = 𝐷 → ((𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)) ↔ (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦))))
2928ralbidv 2437 . . . . . 6 (𝑑 = 𝐷 → (∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)) ↔ ∀𝑧𝑋 (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦))))
3024, 29anbi12d 464 . . . . 5 (𝑑 = 𝐷 → ((((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦))) ↔ (((𝑥𝐷𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦)))))
31302ralbidv 2459 . . . 4 (𝑑 = 𝐷 → (∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦))) ↔ ∀𝑥𝑋𝑦𝑋 (((𝑥𝐷𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦)))))
3231elrab 2840 . . 3 (𝐷 ∈ {𝑑 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∣ ∀𝑥𝑋𝑦𝑋 (((𝑥𝑑𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝑑𝑦) ≤ ((𝑧𝑑𝑥) + (𝑧𝑑𝑦)))} ↔ (𝐷 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∧ ∀𝑥𝑋𝑦𝑋 (((𝑥𝐷𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦)))))
3321, 32syl6bb 195 . 2 (𝑋𝐴 → (𝐷 ∈ (Met‘𝑋) ↔ (𝐷 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∧ ∀𝑥𝑋𝑦𝑋 (((𝑥𝐷𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦))))))
34 sqxpexg 4655 . . . 4 (𝑋𝐴 → (𝑋 × 𝑋) ∈ V)
35 elmapg 6555 . . . 4 ((ℝ ∈ V ∧ (𝑋 × 𝑋) ∈ V) → (𝐷 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ↔ 𝐷:(𝑋 × 𝑋)⟶ℝ))
363, 34, 35sylancr 410 . . 3 (𝑋𝐴 → (𝐷 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ↔ 𝐷:(𝑋 × 𝑋)⟶ℝ))
3736anbi1d 460 . 2 (𝑋𝐴 → ((𝐷 ∈ (ℝ ↑𝑚 (𝑋 × 𝑋)) ∧ ∀𝑥𝑋𝑦𝑋 (((𝑥𝐷𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦)))) ↔ (𝐷:(𝑋 × 𝑋)⟶ℝ ∧ ∀𝑥𝑋𝑦𝑋 (((𝑥𝐷𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦))))))
3833, 37bitrd 187 1 (𝑋𝐴 → (𝐷 ∈ (Met‘𝑋) ↔ (𝐷:(𝑋 × 𝑋)⟶ℝ ∧ ∀𝑥𝑋𝑦𝑋 (((𝑥𝐷𝑦) = 0 ↔ 𝑥 = 𝑦) ∧ ∀𝑧𝑋 (𝑥𝐷𝑦) ≤ ((𝑧𝐷𝑥) + (𝑧𝐷𝑦))))))
 Colors of variables: wff set class Syntax hints:   → wi 4   ∧ wa 103   ↔ wb 104   = wceq 1331   ∈ wcel 1480  ∀wral 2416  {crab 2420  Vcvv 2686   class class class wbr 3929   × cxp 4537   Fn wfn 5118  ⟶wf 5119  ‘cfv 5123  (class class class)co 5774   ↑𝑚 cmap 6542  ℝcr 7631  0cc0 7632   + caddc 7635   ≤ cle 7813  Metcmet 12164 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-ia1 105  ax-ia2 106  ax-ia3 107  ax-in1 603  ax-in2 604  ax-io 698  ax-5 1423  ax-7 1424  ax-gen 1425  ax-ie1 1469  ax-ie2 1470  ax-8 1482  ax-10 1483  ax-11 1484  ax-i12 1485  ax-bndl 1486  ax-4 1487  ax-13 1491  ax-14 1492  ax-17 1506  ax-i9 1510  ax-ial 1514  ax-i5r 1515  ax-ext 2121  ax-sep 4046  ax-pow 4098  ax-pr 4131  ax-un 4355  ax-setind 4452  ax-cnex 7723  ax-resscn 7724 This theorem depends on definitions:  df-bi 116  df-3an 964  df-tru 1334  df-fal 1337  df-nf 1437  df-sb 1736  df-eu 2002  df-mo 2003  df-clab 2126  df-cleq 2132  df-clel 2135  df-nfc 2270  df-ne 2309  df-ral 2421  df-rex 2422  df-rab 2425  df-v 2688  df-sbc 2910  df-csb 3004  df-dif 3073  df-un 3075  df-in 3077  df-ss 3084  df-pw 3512  df-sn 3533  df-pr 3534  df-op 3536  df-uni 3737  df-iun 3815  df-br 3930  df-opab 3990  df-mpt 3991  df-id 4215  df-xp 4545  df-rel 4546  df-cnv 4547  df-co 4548  df-dm 4549  df-rn 4550  df-res 4551  df-ima 4552  df-iota 5088  df-fun 5125  df-fn 5126  df-f 5127  df-fv 5131  df-ov 5777  df-oprab 5778  df-mpo 5779  df-1st 6038  df-2nd 6039  df-map 6544  df-met 12172 This theorem is referenced by:  ismeti  12529  metflem  12532  ismet2  12537
 Copyright terms: Public domain W3C validator