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

Theorem sscres 17088
Description: Any function restricted to a square domain is a subcategory subset of the original. (Contributed by Mario Carneiro, 6-Jan-2017.)
Assertion
Ref Expression
sscres ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ (𝑇 × 𝑇)) ⊆cat 𝐻)

Proof of Theorem sscres
Dummy variables 𝑥 𝑦 are mutually distinct and distinct from all other variables.
StepHypRef Expression
1 inss1 4158 . . 3 (𝑆𝑇) ⊆ 𝑆
2 simpl 486 . . . . . . 7 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → 𝑥 ∈ (𝑆𝑇))
32elin2d 4129 . . . . . 6 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → 𝑥𝑇)
4 simpr 488 . . . . . . 7 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → 𝑦 ∈ (𝑆𝑇))
54elin2d 4129 . . . . . 6 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → 𝑦𝑇)
63, 5ovresd 7299 . . . . 5 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → (𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) = (𝑥𝐻𝑦))
7 eqimss 3974 . . . . 5 ((𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) = (𝑥𝐻𝑦) → (𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦))
86, 7syl 17 . . . 4 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → (𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦))
98rgen2 3171 . . 3 𝑥 ∈ (𝑆𝑇)∀𝑦 ∈ (𝑆𝑇)(𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦)
101, 9pm3.2i 474 . 2 ((𝑆𝑇) ⊆ 𝑆 ∧ ∀𝑥 ∈ (𝑆𝑇)∀𝑦 ∈ (𝑆𝑇)(𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦))
11 simpl 486 . . . . 5 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → 𝐻 Fn (𝑆 × 𝑆))
12 inss1 4158 . . . . 5 ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) ⊆ (𝑆 × 𝑆)
13 fnssres 6446 . . . . 5 ((𝐻 Fn (𝑆 × 𝑆) ∧ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) ⊆ (𝑆 × 𝑆)) → (𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇))) Fn ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)))
1411, 12, 13sylancl 589 . . . 4 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇))) Fn ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)))
15 resres 5835 . . . . . 6 ((𝐻 ↾ (𝑆 × 𝑆)) ↾ (𝑇 × 𝑇)) = (𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)))
16 fnresdm 6442 . . . . . . . 8 (𝐻 Fn (𝑆 × 𝑆) → (𝐻 ↾ (𝑆 × 𝑆)) = 𝐻)
1716adantr 484 . . . . . . 7 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ (𝑆 × 𝑆)) = 𝐻)
1817reseq1d 5821 . . . . . 6 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → ((𝐻 ↾ (𝑆 × 𝑆)) ↾ (𝑇 × 𝑇)) = (𝐻 ↾ (𝑇 × 𝑇)))
1915, 18syl5eqr 2850 . . . . 5 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇))) = (𝐻 ↾ (𝑇 × 𝑇)))
20 inxp 5671 . . . . . 6 ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) = ((𝑆𝑇) × (𝑆𝑇))
2120a1i 11 . . . . 5 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) = ((𝑆𝑇) × (𝑆𝑇)))
2219, 21fneq12d 6422 . . . 4 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → ((𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇))) Fn ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) ↔ (𝐻 ↾ (𝑇 × 𝑇)) Fn ((𝑆𝑇) × (𝑆𝑇))))
2314, 22mpbid 235 . . 3 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ (𝑇 × 𝑇)) Fn ((𝑆𝑇) × (𝑆𝑇)))
24 simpr 488 . . 3 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → 𝑆𝑉)
2523, 11, 24isssc 17085 . 2 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → ((𝐻 ↾ (𝑇 × 𝑇)) ⊆cat 𝐻 ↔ ((𝑆𝑇) ⊆ 𝑆 ∧ ∀𝑥 ∈ (𝑆𝑇)∀𝑦 ∈ (𝑆𝑇)(𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦))))
2610, 25mpbiri 261 1 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ (𝑇 × 𝑇)) ⊆cat 𝐻)
Colors of variables: wff setvar class
Syntax hints:  wi 4  wa 399   = wceq 1538  wcel 2112  wral 3109  cin 3883  wss 3884   class class class wbr 5033   × cxp 5521  cres 5525   Fn wfn 6323  (class class class)co 7139  cat cssc 17072
This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1797  ax-4 1811  ax-5 1911  ax-6 1970  ax-7 2015  ax-8 2114  ax-9 2122  ax-10 2143  ax-11 2159  ax-12 2176  ax-ext 2773  ax-rep 5157  ax-sep 5170  ax-nul 5177  ax-pow 5234  ax-pr 5298  ax-un 7445
This theorem depends on definitions:  df-bi 210  df-an 400  df-or 845  df-3an 1086  df-tru 1541  df-ex 1782  df-nf 1786  df-sb 2070  df-mo 2601  df-eu 2632  df-clab 2780  df-cleq 2794  df-clel 2873  df-nfc 2941  df-ne 2991  df-ral 3114  df-rex 3115  df-reu 3116  df-rab 3118  df-v 3446  df-sbc 3724  df-csb 3832  df-dif 3887  df-un 3889  df-in 3891  df-ss 3901  df-nul 4247  df-if 4429  df-pw 4502  df-sn 4529  df-pr 4531  df-op 4535  df-uni 4804  df-iun 4886  df-br 5034  df-opab 5096  df-mpt 5114  df-id 5428  df-xp 5529  df-rel 5530  df-cnv 5531  df-co 5532  df-dm 5533  df-rn 5534  df-res 5535  df-ima 5536  df-iota 6287  df-fun 6330  df-fn 6331  df-f 6332  df-f1 6333  df-fo 6334  df-f1o 6335  df-fv 6336  df-ov 7142  df-ixp 8449  df-ssc 17075
This theorem is referenced by:  sscid  17089  fullsubc  17115
  Copyright terms: Public domain W3C validator