Skip to content

Commit

Permalink
fixes #979 (#980)
Browse files Browse the repository at this point in the history
  • Loading branch information
affeldt-aist authored Jul 18, 2023
1 parent 8eed414 commit 5f44633
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,9 @@

### Removed

- in `topology.v`:
+ lemma `my_ball_le` (use `ball_le` instead)

### Infrastructure

### Misc
9 changes: 4 additions & 5 deletions theories/topology.v
Original file line number Diff line number Diff line change
Expand Up @@ -4902,13 +4902,12 @@ Export PseudoMetric.Exports.

Section PseudoMetricUniformity.

Lemma my_ball_le (R : numDomainType) (M : Type) (ent : set (set (M * M)))
Let ball_le (R : numDomainType) (M : Type) (ent : set (set (M * M)))
(m : PseudoMetric.mixin_of R ent) :
forall (x : M), {homo PseudoMetric.ball m x : e1 e2 / e1 <= e2 >-> e1 `<=` e2}.
Proof.
move=> x e1 e2 le12 y xe1_y.
move: le12; rewrite le_eqVlt => /orP [/eqP <- //|].
rewrite -subr_gt0 => lt12.
move=> x e1 e2 + y xe1_y.
rewrite le_eqVlt => /predU1P[<- //|]; rewrite -subr_gt0 => lt12.
rewrite -[e2](subrK e1); apply: PseudoMetric.ball_triangle xe1_y.
suff : PseudoMetric.ball m x (PosNum lt12)%:num x by [].
exact: PseudoMetric.ball_center.
Expand All @@ -4922,7 +4921,7 @@ Next Obligation.
move=> R T ent nbhs nbhsE m; rewrite (PseudoMetric.entourageE m).
apply: filter_from_filter; first by exists 1 => /=.
move=> _ _ /posnumP[e1] /posnumP[e2]; exists (Num.min e1 e2)%:num => //=.
by rewrite subsetI; split=> ?; apply: my_ball_le;
by rewrite subsetI; split=> ?; apply: ball_le;
rewrite -leEsub// le_minl lexx ?orbT.
Qed.
Next Obligation.
Expand Down

0 comments on commit 5f44633

Please sign in to comment.