Skip to content

Commit 5311723

Browse files
committed
better use of subrK/addKr
1 parent f82e9b8 commit 5311723

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

theories/showcase/sorgenfreyline.v

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -254,7 +254,7 @@ apply/seteqP; rewrite /dl; split => t /= [].
254254
by rewrite /= in_itv /= ztx lerBlDr lerDl.
255255
exists (x - (z-t)).
256256
by rewrite opprD addrA subrr opprK add0r ztE subr_ge0.
257-
by rewrite (addrC z) opprD opprK !addrA addrNK addrC addKr.
257+
by rewrite (addrC z) opprD opprK !addrA subrK addrC addKr.
258258
move=> w [] xwE w0 <-.
259259
rewrite !opprD (addrCA z) !addrA addrK addrC opprK.
260260
by rewrite subr_ge0 ler_wpDl // ltW.
@@ -272,10 +272,10 @@ apply/seteqP; rewrite /dr; split => t /= [].
272272
apply: xzNE.
273273
by rewrite /= in_itv /= zxt ltrDl y0.
274274
exists (x + t - z).
275-
by rewrite addrA (addrC z) addrK xtE subr_gt0.
276-
by rewrite addrA (addrAC _ _ z) addrK (addrC x) addrK.
275+
by rewrite addrC subrK xtE subr_gt0.
276+
by rewrite addrA subrK addrC addKr.
277277
move=> w [] xwE w0 <-.
278-
rewrite !addrA addrAC (addrC x) addrK addrC.
278+
rewrite !addrA addrC addrA addKr addrC.
279279
by rewrite subr_gt0 ltr_wpDr // ltW.
280280
Qed.
281281

@@ -395,7 +395,7 @@ case/boolP: (xepsE == set0).
395395
rewrite gt_max ltr_norml.
396396
rewrite -[inf(dl x)]addr0.
397397
rewrite -(subrr (-z)) opprK addrA -[_ - _]addrA -(inf_dlxz dlxz) //.
398-
rewrite -!addrA addrC !addrA subrK addrC.
398+
rewrite addrA addrC addrA addKr addrC.
399399
rewrite (@le_lt_trans _ _ 0 (_ - _) ) //; first last.
400400
by rewrite subr_le0 ltW.
401401
rewrite ltrBrDl ltrBlDr zx /=.
@@ -414,7 +414,7 @@ case/boolP: (xepsE == set0).
414414
exists 0. move=> u. rewrite -inE. exact: dr_ge0.
415415
- exact: has_inf1.
416416
rewrite -drzx inf_drxz.
417-
rewrite -!addrA addrC !addrA subrK ltr_norml.
417+
rewrite addrC addrA addKr ltr_norml.
418418
rewrite (@lt_le_trans _ _ 0) ?ltrBlDl //= ?subr_ge0 ?ltW //.
419419
by rewrite oppr_lt0.
420420
move/set0P/xgetPex => /(_ eps).

0 commit comments

Comments
 (0)