Metamath Proof Explorer


Theorem shscl

Description: Closure of subspace sum. (Contributed by NM, 15-Dec-2004) (New usage is discouraged.)

Ref Expression
Assertion shscl
|- ( ( A e. SH /\ B e. SH ) -> ( A +H B ) e. SH )

Proof

Step Hyp Ref Expression
1 oveq1
 |-  ( A = if ( A e. SH , A , ~H ) -> ( A +H B ) = ( if ( A e. SH , A , ~H ) +H B ) )
2 1 eleq1d
 |-  ( A = if ( A e. SH , A , ~H ) -> ( ( A +H B ) e. SH <-> ( if ( A e. SH , A , ~H ) +H B ) e. SH ) )
3 oveq2
 |-  ( B = if ( B e. SH , B , ~H ) -> ( if ( A e. SH , A , ~H ) +H B ) = ( if ( A e. SH , A , ~H ) +H if ( B e. SH , B , ~H ) ) )
4 3 eleq1d
 |-  ( B = if ( B e. SH , B , ~H ) -> ( ( if ( A e. SH , A , ~H ) +H B ) e. SH <-> ( if ( A e. SH , A , ~H ) +H if ( B e. SH , B , ~H ) ) e. SH ) )
5 helsh
 |-  ~H e. SH
6 5 elimel
 |-  if ( A e. SH , A , ~H ) e. SH
7 5 elimel
 |-  if ( B e. SH , B , ~H ) e. SH
8 6 7 shscli
 |-  ( if ( A e. SH , A , ~H ) +H if ( B e. SH , B , ~H ) ) e. SH
9 2 4 8 dedth2h
 |-  ( ( A e. SH /\ B e. SH ) -> ( A +H B ) e. SH )