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

Theorem boxriin 8103
Description: A rectangular subset of a rectangular set can be recovered as the relative intersection of single-axis restrictions. (Contributed by Stefan O'Rear, 22-Feb-2015.)
Assertion
Ref Expression
boxriin (∀𝑥𝐼 𝐴𝐵X𝑥𝐼 𝐴 = (X𝑥𝐼 𝐵 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)))
Distinct variable groups:   𝑦,𝐴   𝑦,𝐵   𝑥,𝐼,𝑦
Allowed substitution hints:   𝐴(𝑥)   𝐵(𝑥)

Proof of Theorem boxriin
Dummy variable 𝑧 is distinct from all other variables.
StepHypRef Expression
1 simprl 746 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → 𝑧 Fn 𝐼)
2 ssel 3744 . . . . . . . 8 (𝐴𝐵 → ((𝑧𝑥) ∈ 𝐴 → (𝑧𝑥) ∈ 𝐵))
32ral2imi 3095 . . . . . . 7 (∀𝑥𝐼 𝐴𝐵 → (∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴 → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵))
43adantr 466 . . . . . 6 ((∀𝑥𝐼 𝐴𝐵𝑧 Fn 𝐼) → (∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴 → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵))
54impr 442 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵)
6 eleq2 2838 . . . . . . . . . . . 12 (𝐴 = if(𝑥 = 𝑦, 𝐴, 𝐵) → ((𝑧𝑥) ∈ 𝐴 ↔ (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
7 eleq2 2838 . . . . . . . . . . . 12 (𝐵 = if(𝑥 = 𝑦, 𝐴, 𝐵) → ((𝑧𝑥) ∈ 𝐵 ↔ (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
8 simplr 744 . . . . . . . . . . . 12 (((𝐴𝐵 ∧ (𝑧𝑥) ∈ 𝐴) ∧ 𝑥 = 𝑦) → (𝑧𝑥) ∈ 𝐴)
9 ssel2 3745 . . . . . . . . . . . . 13 ((𝐴𝐵 ∧ (𝑧𝑥) ∈ 𝐴) → (𝑧𝑥) ∈ 𝐵)
109adantr 466 . . . . . . . . . . . 12 (((𝐴𝐵 ∧ (𝑧𝑥) ∈ 𝐴) ∧ ¬ 𝑥 = 𝑦) → (𝑧𝑥) ∈ 𝐵)
116, 7, 8, 10ifbothda 4260 . . . . . . . . . . 11 ((𝐴𝐵 ∧ (𝑧𝑥) ∈ 𝐴) → (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
1211ex 397 . . . . . . . . . 10 (𝐴𝐵 → ((𝑧𝑥) ∈ 𝐴 → (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
1312ral2imi 3095 . . . . . . . . 9 (∀𝑥𝐼 𝐴𝐵 → (∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴 → ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
1413adantr 466 . . . . . . . 8 ((∀𝑥𝐼 𝐴𝐵𝑧 Fn 𝐼) → (∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴 → ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
1514impr 442 . . . . . . 7 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
161, 15jca 495 . . . . . 6 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
1716ralrimivw 3115 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
181, 5, 17jca31 498 . . . 4 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))))
19 simprll 756 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))) → 𝑧 Fn 𝐼)
20 simpr 471 . . . . . . . 8 ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)) → ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
2120ralimi 3100 . . . . . . 7 (∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)) → ∀𝑦𝐼𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
22 ralcom 3245 . . . . . . . 8 (∀𝑦𝐼𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑥𝐼𝑦𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
23 iftrue 4229 . . . . . . . . . . . 12 (𝑥 = 𝑦 → if(𝑥 = 𝑦, 𝐴, 𝐵) = 𝐴)
2423equcoms 2104 . . . . . . . . . . 11 (𝑦 = 𝑥 → if(𝑥 = 𝑦, 𝐴, 𝐵) = 𝐴)
2524eleq2d 2835 . . . . . . . . . 10 (𝑦 = 𝑥 → ((𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ (𝑧𝑥) ∈ 𝐴))
2625rspcva 3456 . . . . . . . . 9 ((𝑥𝐼 ∧ ∀𝑦𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)) → (𝑧𝑥) ∈ 𝐴)
2726ralimiaa 3099 . . . . . . . 8 (∀𝑥𝐼𝑦𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)
2822, 27sylbi 207 . . . . . . 7 (∀𝑦𝐼𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)
2921, 28syl 17 . . . . . 6 (∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)
3029ad2antll 700 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)
3119, 30jca 495 . . . 4 ((∀𝑥𝐼 𝐴𝐵 ∧ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))) → (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴))
3218, 31impbida 794 . . 3 (∀𝑥𝐼 𝐴𝐵 → ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴) ↔ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))))
33 vex 3352 . . . 4 𝑧 ∈ V
3433elixp 8068 . . 3 (𝑧X𝑥𝐼 𝐴 ↔ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴))
35 elin 3945 . . . 4 (𝑧 ∈ (X𝑥𝐼 𝐵 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)) ↔ (𝑧X𝑥𝐼 𝐵𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)))
3633elixp 8068 . . . . 5 (𝑧X𝑥𝐼 𝐵 ↔ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵))
37 eliin 4657 . . . . . . 7 (𝑧 ∈ V → (𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑦𝐼 𝑧X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)))
3833, 37ax-mp 5 . . . . . 6 (𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑦𝐼 𝑧X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵))
3933elixp 8068 . . . . . . 7 (𝑧X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
4039ralbii 3128 . . . . . 6 (∀𝑦𝐼 𝑧X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
4138, 40bitri 264 . . . . 5 (𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
4236, 41anbi12i 604 . . . 4 ((𝑧X𝑥𝐼 𝐵𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)) ↔ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))))
4335, 42bitri 264 . . 3 (𝑧 ∈ (X𝑥𝐼 𝐵 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)) ↔ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))))
4432, 34, 433bitr4g 303 . 2 (∀𝑥𝐼 𝐴𝐵 → (𝑧X𝑥𝐼 𝐴𝑧 ∈ (X𝑥𝐼 𝐵 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵))))
4544eqrdv 2768 1 (∀𝑥𝐼 𝐴𝐵X𝑥𝐼 𝐴 = (X𝑥𝐼 𝐵 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 196  wa 382   = wceq 1630  wcel 2144  wral 3060  Vcvv 3349  cin 3720  wss 3721  ifcif 4223   ciin 4653   Fn wfn 6026  cfv 6031  Xcixp 8061
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1869  ax-4 1884  ax-5 1990  ax-6 2056  ax-7 2092  ax-9 2153  ax-10 2173  ax-11 2189  ax-12 2202  ax-13 2407  ax-ext 2750
This theorem depends on definitions:  df-bi 197  df-an 383  df-or 827  df-3an 1072  df-tru 1633  df-ex 1852  df-nf 1857  df-sb 2049  df-clab 2757  df-cleq 2763  df-clel 2766  df-nfc 2901  df-ral 3065  df-rex 3066  df-rab 3069  df-v 3351  df-dif 3724  df-un 3726  df-in 3728  df-ss 3735  df-nul 4062  df-if 4224  df-sn 4315  df-pr 4317  df-op 4321  df-uni 4573  df-iin 4655  df-br 4785  df-opab 4845  df-rel 5256  df-cnv 5257  df-co 5258  df-dm 5259  df-iota 5994  df-fun 6033  df-fn 6034  df-fv 6039  df-ixp 8062
This theorem is referenced by:  ptcld  21636  kelac1  38152
  Copyright terms: Public domain W3C validator