Metamath Proof Explorer


Theorem le2addd

Description: Adding both side of two inequalities. (Contributed by Mario Carneiro, 27-May-2016)

Ref Expression
Hypotheses leidd.1
|- ( ph -> A e. RR )
ltnegd.2
|- ( ph -> B e. RR )
ltadd1d.3
|- ( ph -> C e. RR )
lt2addd.4
|- ( ph -> D e. RR )
le2addd.5
|- ( ph -> A <_ C )
le2addd.6
|- ( ph -> B <_ D )
Assertion le2addd
|- ( ph -> ( A + B ) <_ ( C + D ) )

Proof

Step Hyp Ref Expression
1 leidd.1
 |-  ( ph -> A e. RR )
2 ltnegd.2
 |-  ( ph -> B e. RR )
3 ltadd1d.3
 |-  ( ph -> C e. RR )
4 lt2addd.4
 |-  ( ph -> D e. RR )
5 le2addd.5
 |-  ( ph -> A <_ C )
6 le2addd.6
 |-  ( ph -> B <_ D )
7 le2add
 |-  ( ( ( A e. RR /\ B e. RR ) /\ ( C e. RR /\ D e. RR ) ) -> ( ( A <_ C /\ B <_ D ) -> ( A + B ) <_ ( C + D ) ) )
8 1 2 3 4 7 syl22anc
 |-  ( ph -> ( ( A <_ C /\ B <_ D ) -> ( A + B ) <_ ( C + D ) ) )
9 5 6 8 mp2and
 |-  ( ph -> ( A + B ) <_ ( C + D ) )