Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions CHANGELOG_UNRELEASED.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@
- in `derive.v`:
+ lemmas `compact_EVT_max`, `compact_EVT_min`, `EVT_max_rV`, `EVT_min_rV`

- in `matrix_normedtype.v`:
+ lemma `within_continuous_coord`

### Changed

- in `constructive_ereal.v`: fixed the infamous `%E` scope bug.
Expand Down
22 changes: 22 additions & 0 deletions theories/normedtype_theory/matrix_normedtype.v
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,28 @@ HB.instance Definition _ :=

End matrix_pseudoMetricNormedZmod.

Section vector_continuous.
Context {R : realFieldType} {n : nat}.
Import numFieldNormedType.Exports.

Lemma within_continuous_coord A (f : R -> 'rV[R]_n) :
{within A, continuous f} <->
forall i, {within A, continuous (fun x => f x ord0 i)}.
Proof.
split=> [Af i|Af].
- apply: (within_continuous_comp _ f (fun M => M ord0 i)) => //= x _.
exact: coord_continuous.
- apply/subspace_continuousP => /= x Ax; apply/cvgrPdist_le => /= e e0.
rewrite near_withinE; near=> t => At.
rewrite /Num.norm/= mx_normrE (bigmax_le _ (ltW e0))//= => -[i j] _ /=.
rewrite {i}(ord1 i) !mxE.
move: j At; near: t; apply: filter_forall => /= j.
have /subspace_continuousP/(_ x Ax)/cvgr_dist_le/(_ _ e0) := Af j.
by rewrite near_withinE.
Unshelve. all: by end_near. Qed.

End vector_continuous.

Lemma bounded_closed_compact (R : realType) n (A : set 'rV[R]_n) :
bounded_set A -> closed A -> compact A.
Proof.
Expand Down
Loading