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

Theorem boxriin 8934
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 770 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → 𝑧 Fn 𝐼)
2 ssel 3976 . . . . . . . 8 (𝐴𝐵 → ((𝑧𝑥) ∈ 𝐴 → (𝑧𝑥) ∈ 𝐵))
32ral2imi 3086 . . . . . . 7 (∀𝑥𝐼 𝐴𝐵 → (∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴 → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵))
43adantr 482 . . . . . 6 ((∀𝑥𝐼 𝐴𝐵𝑧 Fn 𝐼) → (∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴 → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵))
54impr 456 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵)
6 eleq2 2823 . . . . . . . . . . . 12 (𝐴 = if(𝑥 = 𝑦, 𝐴, 𝐵) → ((𝑧𝑥) ∈ 𝐴 ↔ (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
7 eleq2 2823 . . . . . . . . . . . 12 (𝐵 = if(𝑥 = 𝑦, 𝐴, 𝐵) → ((𝑧𝑥) ∈ 𝐵 ↔ (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
8 simplr 768 . . . . . . . . . . . 12 (((𝐴𝐵 ∧ (𝑧𝑥) ∈ 𝐴) ∧ 𝑥 = 𝑦) → (𝑧𝑥) ∈ 𝐴)
9 ssel2 3978 . . . . . . . . . . . . 13 ((𝐴𝐵 ∧ (𝑧𝑥) ∈ 𝐴) → (𝑧𝑥) ∈ 𝐵)
109adantr 482 . . . . . . . . . . . 12 (((𝐴𝐵 ∧ (𝑧𝑥) ∈ 𝐴) ∧ ¬ 𝑥 = 𝑦) → (𝑧𝑥) ∈ 𝐵)
116, 7, 8, 10ifbothda 4567 . . . . . . . . . . 11 ((𝐴𝐵 ∧ (𝑧𝑥) ∈ 𝐴) → (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
1211ex 414 . . . . . . . . . 10 (𝐴𝐵 → ((𝑧𝑥) ∈ 𝐴 → (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
1312ral2imi 3086 . . . . . . . . 9 (∀𝑥𝐼 𝐴𝐵 → (∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴 → ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
1413adantr 482 . . . . . . . 8 ((∀𝑥𝐼 𝐴𝐵𝑧 Fn 𝐼) → (∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴 → ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
1514impr 456 . . . . . . 7 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
161, 15jca 513 . . . . . 6 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
1716ralrimivw 3151 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
181, 5, 17jca31 516 . . . 4 ((∀𝑥𝐼 𝐴𝐵 ∧ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)) → ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))))
19 simprll 778 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))) → 𝑧 Fn 𝐼)
20 simpr 486 . . . . . . . 8 ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)) → ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
2120ralimi 3084 . . . . . . 7 (∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)) → ∀𝑦𝐼𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
22 ralcom 3287 . . . . . . . 8 (∀𝑦𝐼𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑥𝐼𝑦𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))
23 iftrue 4535 . . . . . . . . . . . 12 (𝑥 = 𝑦 → if(𝑥 = 𝑦, 𝐴, 𝐵) = 𝐴)
2423equcoms 2024 . . . . . . . . . . 11 (𝑦 = 𝑥 → if(𝑥 = 𝑦, 𝐴, 𝐵) = 𝐴)
2524eleq2d 2820 . . . . . . . . . 10 (𝑦 = 𝑥 → ((𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ (𝑧𝑥) ∈ 𝐴))
2625rspcva 3611 . . . . . . . . 9 ((𝑥𝐼 ∧ ∀𝑦𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)) → (𝑧𝑥) ∈ 𝐴)
2726ralimiaa 3083 . . . . . . . 8 (∀𝑥𝐼𝑦𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)
2822, 27sylbi 216 . . . . . . 7 (∀𝑦𝐼𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)
2921, 28syl 17 . . . . . 6 (∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)
3029ad2antll 728 . . . . 5 ((∀𝑥𝐼 𝐴𝐵 ∧ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))) → ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴)
3119, 30jca 513 . . . 4 ((∀𝑥𝐼 𝐴𝐵 ∧ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))) → (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴))
3218, 31impbida 800 . . 3 (∀𝑥𝐼 𝐴𝐵 → ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴) ↔ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))))
33 vex 3479 . . . 4 𝑧 ∈ V
3433elixp 8898 . . 3 (𝑧X𝑥𝐼 𝐴 ↔ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐴))
35 elin 3965 . . . 4 (𝑧 ∈ (X𝑥𝐼 𝐵 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)) ↔ (𝑧X𝑥𝐼 𝐵𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)))
3633elixp 8898 . . . . 5 (𝑧X𝑥𝐼 𝐵 ↔ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵))
37 eliin 5003 . . . . . . 7 (𝑧 ∈ V → (𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑦𝐼 𝑧X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)))
3837elv 3481 . . . . . 6 (𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑦𝐼 𝑧X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵))
3933elixp 8898 . . . . . . 7 (𝑧X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
4039ralbii 3094 . . . . . 6 (∀𝑦𝐼 𝑧X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
4138, 40bitri 275 . . . . 5 (𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵) ↔ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵)))
4236, 41anbi12i 628 . . . 4 ((𝑧X𝑥𝐼 𝐵𝑧 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)) ↔ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))))
4335, 42bitri 275 . . 3 (𝑧 ∈ (X𝑥𝐼 𝐵 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)) ↔ ((𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ 𝐵) ∧ ∀𝑦𝐼 (𝑧 Fn 𝐼 ∧ ∀𝑥𝐼 (𝑧𝑥) ∈ if(𝑥 = 𝑦, 𝐴, 𝐵))))
4432, 34, 433bitr4g 314 . 2 (∀𝑥𝐼 𝐴𝐵 → (𝑧X𝑥𝐼 𝐴𝑧 ∈ (X𝑥𝐼 𝐵 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵))))
4544eqrdv 2731 1 (∀𝑥𝐼 𝐴𝐵X𝑥𝐼 𝐴 = (X𝑥𝐼 𝐵 𝑦𝐼 X𝑥𝐼 if(𝑥 = 𝑦, 𝐴, 𝐵)))
Colors of variables: wff setvar class
Syntax hints:  ¬ wn 3  wi 4  wb 205  wa 397   = wceq 1542  wcel 2107  wral 3062  Vcvv 3475  cin 3948  wss 3949  ifcif 4529   ciin 4999   Fn wfn 6539  cfv 6544  Xcixp 8891
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1798  ax-4 1812  ax-5 1914  ax-6 1972  ax-7 2012  ax-8 2109  ax-9 2117  ax-11 2155  ax-ext 2704
This theorem depends on definitions:  df-bi 206  df-an 398  df-or 847  df-3an 1090  df-tru 1545  df-fal 1555  df-ex 1783  df-sb 2069  df-clab 2711  df-cleq 2725  df-clel 2811  df-ral 3063  df-rab 3434  df-v 3477  df-dif 3952  df-un 3954  df-in 3956  df-ss 3966  df-nul 4324  df-if 4530  df-sn 4630  df-pr 4632  df-op 4636  df-uni 4910  df-iin 5001  df-br 5150  df-opab 5212  df-rel 5684  df-cnv 5685  df-co 5686  df-dm 5687  df-iota 6496  df-fun 6546  df-fn 6547  df-fv 6552  df-ixp 8892
This theorem is referenced by:  ptcld  23117  kelac1  41853
  Copyright terms: Public domain W3C validator