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

Theorem sscres 16404
 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 3811 . . 3 (𝑆𝑇) ⊆ 𝑆
2 inss2 3812 . . . . . . 7 (𝑆𝑇) ⊆ 𝑇
3 simpl 473 . . . . . . 7 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → 𝑥 ∈ (𝑆𝑇))
42, 3sseldi 3581 . . . . . 6 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → 𝑥𝑇)
5 simpr 477 . . . . . . 7 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → 𝑦 ∈ (𝑆𝑇))
62, 5sseldi 3581 . . . . . 6 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → 𝑦𝑇)
74, 6ovresd 6754 . . . . 5 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → (𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) = (𝑥𝐻𝑦))
8 eqimss 3636 . . . . 5 ((𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) = (𝑥𝐻𝑦) → (𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦))
97, 8syl 17 . . . 4 ((𝑥 ∈ (𝑆𝑇) ∧ 𝑦 ∈ (𝑆𝑇)) → (𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦))
109rgen2a 2971 . . 3 𝑥 ∈ (𝑆𝑇)∀𝑦 ∈ (𝑆𝑇)(𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦)
111, 10pm3.2i 471 . 2 ((𝑆𝑇) ⊆ 𝑆 ∧ ∀𝑥 ∈ (𝑆𝑇)∀𝑦 ∈ (𝑆𝑇)(𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦))
12 simpl 473 . . . . 5 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → 𝐻 Fn (𝑆 × 𝑆))
13 inss1 3811 . . . . 5 ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) ⊆ (𝑆 × 𝑆)
14 fnssres 5962 . . . . 5 ((𝐻 Fn (𝑆 × 𝑆) ∧ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) ⊆ (𝑆 × 𝑆)) → (𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇))) Fn ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)))
1512, 13, 14sylancl 693 . . . 4 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇))) Fn ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)))
16 resres 5368 . . . . . 6 ((𝐻 ↾ (𝑆 × 𝑆)) ↾ (𝑇 × 𝑇)) = (𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)))
17 fnresdm 5958 . . . . . . . 8 (𝐻 Fn (𝑆 × 𝑆) → (𝐻 ↾ (𝑆 × 𝑆)) = 𝐻)
1817adantr 481 . . . . . . 7 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ (𝑆 × 𝑆)) = 𝐻)
1918reseq1d 5355 . . . . . 6 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → ((𝐻 ↾ (𝑆 × 𝑆)) ↾ (𝑇 × 𝑇)) = (𝐻 ↾ (𝑇 × 𝑇)))
2016, 19syl5eqr 2669 . . . . 5 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇))) = (𝐻 ↾ (𝑇 × 𝑇)))
21 inxp 5214 . . . . . 6 ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) = ((𝑆𝑇) × (𝑆𝑇))
2221a1i 11 . . . . 5 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) = ((𝑆𝑇) × (𝑆𝑇)))
2320, 22fneq12d 5941 . . . 4 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → ((𝐻 ↾ ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇))) Fn ((𝑆 × 𝑆) ∩ (𝑇 × 𝑇)) ↔ (𝐻 ↾ (𝑇 × 𝑇)) Fn ((𝑆𝑇) × (𝑆𝑇))))
2415, 23mpbid 222 . . 3 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ (𝑇 × 𝑇)) Fn ((𝑆𝑇) × (𝑆𝑇)))
25 simpr 477 . . 3 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → 𝑆𝑉)
2624, 12, 25isssc 16401 . 2 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → ((𝐻 ↾ (𝑇 × 𝑇)) ⊆cat 𝐻 ↔ ((𝑆𝑇) ⊆ 𝑆 ∧ ∀𝑥 ∈ (𝑆𝑇)∀𝑦 ∈ (𝑆𝑇)(𝑥(𝐻 ↾ (𝑇 × 𝑇))𝑦) ⊆ (𝑥𝐻𝑦))))
2711, 26mpbiri 248 1 ((𝐻 Fn (𝑆 × 𝑆) ∧ 𝑆𝑉) → (𝐻 ↾ (𝑇 × 𝑇)) ⊆cat 𝐻)
 Colors of variables: wff setvar class Syntax hints:   → wi 4   ∧ wa 384   = wceq 1480   ∈ wcel 1987  ∀wral 2907   ∩ cin 3554   ⊆ wss 3555   class class class wbr 4613   × cxp 5072   ↾ cres 5076   Fn wfn 5842  (class class class)co 6604   ⊆cat cssc 16388 This theorem was proved from axioms:  ax-mp 5  ax-1 6  ax-2 7  ax-3 8  ax-gen 1719  ax-4 1734  ax-5 1836  ax-6 1885  ax-7 1932  ax-8 1989  ax-9 1996  ax-10 2016  ax-11 2031  ax-12 2044  ax-13 2245  ax-ext 2601  ax-rep 4731  ax-sep 4741  ax-nul 4749  ax-pow 4803  ax-pr 4867  ax-un 6902 This theorem depends on definitions:  df-bi 197  df-or 385  df-an 386  df-3an 1038  df-tru 1483  df-ex 1702  df-nf 1707  df-sb 1878  df-eu 2473  df-mo 2474  df-clab 2608  df-cleq 2614  df-clel 2617  df-nfc 2750  df-ne 2791  df-ral 2912  df-rex 2913  df-reu 2914  df-rab 2916  df-v 3188  df-sbc 3418  df-csb 3515  df-dif 3558  df-un 3560  df-in 3562  df-ss 3569  df-nul 3892  df-if 4059  df-pw 4132  df-sn 4149  df-pr 4151  df-op 4155  df-uni 4403  df-iun 4487  df-br 4614  df-opab 4674  df-mpt 4675  df-id 4989  df-xp 5080  df-rel 5081  df-cnv 5082  df-co 5083  df-dm 5084  df-rn 5085  df-res 5086  df-ima 5087  df-iota 5810  df-fun 5849  df-fn 5850  df-f 5851  df-f1 5852  df-fo 5853  df-f1o 5854  df-fv 5855  df-ov 6607  df-ixp 7853  df-ssc 16391 This theorem is referenced by:  sscid  16405  fullsubc  16431
 Copyright terms: Public domain W3C validator