Metamath Proof Explorer


Theorem lt2subd

Description: Subtracting both sides of two 'less than' relations. (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 )
lt2addd.5
|- ( ph -> A < C )
lt2addd.6
|- ( ph -> B < D )
Assertion lt2subd
|- ( ph -> ( A - D ) < ( C - B ) )

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 lt2addd.5
 |-  ( ph -> A < C )
6 lt2addd.6
 |-  ( ph -> B < D )
7 lt2sub
 |-  ( ( ( A e. RR /\ D e. RR ) /\ ( C e. RR /\ B e. RR ) ) -> ( ( A < C /\ B < D ) -> ( A - D ) < ( C - B ) ) )
8 1 4 3 2 7 syl22anc
 |-  ( ph -> ( ( A < C /\ B < D ) -> ( A - D ) < ( C - B ) ) )
9 5 6 8 mp2and
 |-  ( ph -> ( A - D ) < ( C - B ) )