Skip to content

Commit 35dcceb

Browse files
committed
simplify dlE drE
1 parent f23453f commit 35dcceb

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

theories/showcase/sorgenfreyline.v

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
From HB Require Import structures.
22
From mathcomp Require Import all_ssreflect all_algebra all_fingroup.
3-
From mathcomp Require Import wochoice contra.
3+
From mathcomp Require Import wochoice contra mathcomp_extra.
44
From mathcomp Require Import boolp classical_sets set_interval.
55
From mathcomp Require Import topology_structure separation_axioms connected.
66
From mathcomp Require Import reals.
@@ -182,14 +182,13 @@ Definition sdist (x : sorgenfrey) : R :=
182182
From mathcomp Require Import topology normedtype.
183183
Let Rtopo := num_topology.numFieldTopology.Real_sort__canonical__topology_structure_Topological R.
184184

185-
Local Lemma dlE x : dl x = (shift x) @` (-%R @` E) `&` `[0, +oo[.
185+
Local Lemma dlE x : dl x = [set shift x (- y) | y in E] `&` `[0, +oo[.
186186
Proof.
187187
rewrite /dl; apply/seteqP; split=> y /=; rewrite in_itv inE /=.
188188
case=> Exy ->; split => //.
189-
exists (y - x); last by rewrite subrK.
190-
by exists (x - y) => //; rewrite opprB.
191-
case=> -[] v [] w Ew <- <- /[!andbT] ->; split => //.
192-
by rewrite opprD opprK mathcomp_extra.subrKC.
189+
by exists (x - y) => //; rewrite opprB addrAC addrK.
190+
case=> -[] u Eu <- /[!andbT] ->; split => //.
191+
by rewrite opprD opprK subrKC.
193192
Qed.
194193

195194
Local Lemma drE x : dr x = (center x) @` E `&` `]0, +oo[.

0 commit comments

Comments
 (0)