Metamath Proof Explorer


Theorem ressinbas

Description: Restriction only cares about the part of the second set which intersects the base of the first. (Contributed by Stefan O'Rear, 29-Nov-2014)

Ref Expression
Hypothesis ressid.1 𝐵 = ( Base ‘ 𝑊 )
Assertion ressinbas ( 𝐴𝑋 → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )

Proof

Step Hyp Ref Expression
1 ressid.1 𝐵 = ( Base ‘ 𝑊 )
2 elex ( 𝐴𝑋𝐴 ∈ V )
3 eqid ( 𝑊s 𝐴 ) = ( 𝑊s 𝐴 )
4 3 1 ressid2 ( ( 𝐵𝐴𝑊 ∈ V ∧ 𝐴 ∈ V ) → ( 𝑊s 𝐴 ) = 𝑊 )
5 ssid 𝐵𝐵
6 incom ( 𝐴𝐵 ) = ( 𝐵𝐴 )
7 df-ss ( 𝐵𝐴 ↔ ( 𝐵𝐴 ) = 𝐵 )
8 7 biimpi ( 𝐵𝐴 → ( 𝐵𝐴 ) = 𝐵 )
9 6 8 eqtrid ( 𝐵𝐴 → ( 𝐴𝐵 ) = 𝐵 )
10 5 9 sseqtrrid ( 𝐵𝐴𝐵 ⊆ ( 𝐴𝐵 ) )
11 elex ( 𝑊 ∈ V → 𝑊 ∈ V )
12 inex1g ( 𝐴 ∈ V → ( 𝐴𝐵 ) ∈ V )
13 eqid ( 𝑊s ( 𝐴𝐵 ) ) = ( 𝑊s ( 𝐴𝐵 ) )
14 13 1 ressid2 ( ( 𝐵 ⊆ ( 𝐴𝐵 ) ∧ 𝑊 ∈ V ∧ ( 𝐴𝐵 ) ∈ V ) → ( 𝑊s ( 𝐴𝐵 ) ) = 𝑊 )
15 10 11 12 14 syl3an ( ( 𝐵𝐴𝑊 ∈ V ∧ 𝐴 ∈ V ) → ( 𝑊s ( 𝐴𝐵 ) ) = 𝑊 )
16 4 15 eqtr4d ( ( 𝐵𝐴𝑊 ∈ V ∧ 𝐴 ∈ V ) → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )
17 16 3expb ( ( 𝐵𝐴 ∧ ( 𝑊 ∈ V ∧ 𝐴 ∈ V ) ) → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )
18 inass ( ( 𝐴𝐵 ) ∩ 𝐵 ) = ( 𝐴 ∩ ( 𝐵𝐵 ) )
19 inidm ( 𝐵𝐵 ) = 𝐵
20 19 ineq2i ( 𝐴 ∩ ( 𝐵𝐵 ) ) = ( 𝐴𝐵 )
21 18 20 eqtr2i ( 𝐴𝐵 ) = ( ( 𝐴𝐵 ) ∩ 𝐵 )
22 21 opeq2i ⟨ ( Base ‘ ndx ) , ( 𝐴𝐵 ) ⟩ = ⟨ ( Base ‘ ndx ) , ( ( 𝐴𝐵 ) ∩ 𝐵 ) ⟩
23 22 oveq2i ( 𝑊 sSet ⟨ ( Base ‘ ndx ) , ( 𝐴𝐵 ) ⟩ ) = ( 𝑊 sSet ⟨ ( Base ‘ ndx ) , ( ( 𝐴𝐵 ) ∩ 𝐵 ) ⟩ )
24 3 1 ressval2 ( ( ¬ 𝐵𝐴𝑊 ∈ V ∧ 𝐴 ∈ V ) → ( 𝑊s 𝐴 ) = ( 𝑊 sSet ⟨ ( Base ‘ ndx ) , ( 𝐴𝐵 ) ⟩ ) )
25 inss1 ( 𝐴𝐵 ) ⊆ 𝐴
26 sstr ( ( 𝐵 ⊆ ( 𝐴𝐵 ) ∧ ( 𝐴𝐵 ) ⊆ 𝐴 ) → 𝐵𝐴 )
27 25 26 mpan2 ( 𝐵 ⊆ ( 𝐴𝐵 ) → 𝐵𝐴 )
28 27 con3i ( ¬ 𝐵𝐴 → ¬ 𝐵 ⊆ ( 𝐴𝐵 ) )
29 13 1 ressval2 ( ( ¬ 𝐵 ⊆ ( 𝐴𝐵 ) ∧ 𝑊 ∈ V ∧ ( 𝐴𝐵 ) ∈ V ) → ( 𝑊s ( 𝐴𝐵 ) ) = ( 𝑊 sSet ⟨ ( Base ‘ ndx ) , ( ( 𝐴𝐵 ) ∩ 𝐵 ) ⟩ ) )
30 28 11 12 29 syl3an ( ( ¬ 𝐵𝐴𝑊 ∈ V ∧ 𝐴 ∈ V ) → ( 𝑊s ( 𝐴𝐵 ) ) = ( 𝑊 sSet ⟨ ( Base ‘ ndx ) , ( ( 𝐴𝐵 ) ∩ 𝐵 ) ⟩ ) )
31 23 24 30 3eqtr4a ( ( ¬ 𝐵𝐴𝑊 ∈ V ∧ 𝐴 ∈ V ) → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )
32 31 3expb ( ( ¬ 𝐵𝐴 ∧ ( 𝑊 ∈ V ∧ 𝐴 ∈ V ) ) → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )
33 17 32 pm2.61ian ( ( 𝑊 ∈ V ∧ 𝐴 ∈ V ) → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )
34 reldmress Rel dom ↾s
35 34 ovprc1 ( ¬ 𝑊 ∈ V → ( 𝑊s 𝐴 ) = ∅ )
36 34 ovprc1 ( ¬ 𝑊 ∈ V → ( 𝑊s ( 𝐴𝐵 ) ) = ∅ )
37 35 36 eqtr4d ( ¬ 𝑊 ∈ V → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )
38 37 adantr ( ( ¬ 𝑊 ∈ V ∧ 𝐴 ∈ V ) → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )
39 33 38 pm2.61ian ( 𝐴 ∈ V → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )
40 2 39 syl ( 𝐴𝑋 → ( 𝑊s 𝐴 ) = ( 𝑊s ( 𝐴𝐵 ) ) )