Module mathcomp.analysis.topology_theory.pseudometric_structure
From HB Require Import structures.From mathcomp Require Import boot order algebra all_classical.
From mathcomp Require Import interval_inference reals topology_structure.
From mathcomp Require Import uniform_structure.
Import Order.TTheory GRing.Theory Num.Theory.
Unset SsrOldRewriteGoalsOrder.
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
#[local]
Obligation Tactic := idtac.
Local Open Scope classical_set_scope.
Local Open Scope ring_scope.
Definition
entourage_ : forall {R : numDomainType} {T T' : Type}, (T -> R -> set T') -> set_system (T * T') entourage_ is not universe polymorphic Arguments entourage_ {R} {T T'}%_type_scope ball%_function_scope _ entourage_ is transparent Expands to: Constant mathcomp.analysis.topology_theory.pseudometric_structure.entourage_ Declared in library mathcomp.analysis.topology_theory.pseudometric_structure, line 60, characters 11-21
Source code
Source code
@filter_from R _ [set | 0 < x] (fun => [set | ball xy.1 e xy.2]).
Lemma
Source code
Source code
entourage_ ball =
@filter_from R _ [set | 0 < x] (fun => [set | ball xy.1 e xy.2]).
Proof.
.
Source code
Source code
Source code
Source code
ball : M -> R -> M -> Prop ;
ball_center_subproof : forall ( : R), 0 < e -> ball x e x ;
ball_sym_subproof : forall ( : R), ball x e y -> ball y e x ;
ball_triangle_subproof :
forall , ball x e1 y -> ball y e2 z -> ball x (e1 + e2) z;
entourageE_subproof : entourage = entourage_ ball
}.
Source code
Source code
Source code
.
Source code
Source code
Source code
Source code
{ of Uniform T & Uniform_isPseudoMetric R T}.
Source code
Source code
Source code
.
Source code
Source code
Source code
Source code
{ of Pointed T & Uniform T & Uniform_isPseudoMetric R T}.
.
Source code
Source code
Source code
Source code
ent : set_system (M * M);
nbhsE : nbhs = nbhs_ ent;
ball : M -> R -> M -> Prop ;
ball_center : forall ( : R), 0 < e -> ball x e x ;
ball_sym : forall ( : R), ball x e y -> ball y e x ;
ball_triangle :
forall , ball x e1 y -> ball y e2 z -> ball x (e1 + e2) z;
entourageE : ent = entourage_ ball
}.
.
Source code
Source code
Source code
Local Open Scope relation_scope.
Let
Source code
Proof.
move: le12; rewrite le_eqVlt => /orP [/eqP <- //|].
rewrite -subr_gt0 => lt12.
rewrite -[e2](subrK e1); apply: ball_triangle xe1_y.
suff : ball x (PosNum lt12)%:num x by [].
exact: ball_center.
Qed.
Let
Source code
Proof.
Let
Source code
Proof.
by apply: sbeA; rewrite /= xey; exact: ball_center.
Qed.
Let
Source code
Proof.
Let
Source code
Proof.
.
Source code
Source code
Source code
entourage_filter_subproof ball_sym_subproof ball_triangle_subproof
entourageE_subproof nbhsE.
.
Source code
Source code
Source code
ball_center ball_sym ball_triangle entourageE.
.
Source code
Lemma
Source code
entourage_ (@ball R M) = entourage.
Proof.
Lemma
Source code
@filter_from R _ [set : R | 0 < x]
(fun => [set | @ball R M xy.1 e xy.2]) = entourage.
Proof.
Lemma
Source code
( : {posnum R}) : entourage [set : M * M | ball xy.1 e%:num xy.2].
Proof.
Definition
nbhs_ball_ : forall {R : numDomainType} {T T' : Type}, (T -> R -> set T') -> T -> set_system T' nbhs_ball_ is not universe polymorphic Arguments nbhs_ball_ {R} {T T'}%_type_scope ball%_function_scope x _ nbhs_ball_ is transparent Expands to: Constant mathcomp.analysis.topology_theory.pseudometric_structure.nbhs_ball_ Declared in library mathcomp.analysis.topology_theory.pseudometric_structure, line 162, characters 11-21
Source code
Source code
( : T) := @filter_from R _ [set | e > 0] (ball x).
Definition
nbhs_ball : forall {R : numDomainType} {M : pseudoMetricType R}, M -> set_system M nbhs_ball is not universe polymorphic Arguments nbhs_ball {R M} x _ nbhs_ball is transparent Expands to: Constant mathcomp.analysis.topology_theory.pseudometric_structure.nbhs_ball Declared in library mathcomp.analysis.topology_theory.pseudometric_structure, line 165, characters 11-20
Source code
nbhs_ball_ (@ball R M).
Lemma
Source code
@nbhs_ball R M = nbhs.
Proof.
Lemma
Source code
@filter_from R _ [set : R | 0 < x] (@ball R M x) = nbhs x.
Proof.
Module Export
Source code
Definition
NbhsBall.nbhs_simpl : (forall (T : Type) (F : set_system T), filter.nbhs F = F) * (forall (T : Type) (F : filter.filter_on T), filter.nbhs F = filter.nbhs (filter.filter F)) * (forall (M : uniformType) (x : M), filter.filter_from entourage ((xsection (T2:=M))^~ x) = filter.nbhs x) * (forall M : uniformType, nbhs_ entourage = filter.nbhs) * (forall (R : numDomainType) (M : pseudoMetricType R) (x : M), filter.filter_from [set x0 | (0 < x0)%R] (ball x) = filter.nbhs x) * (forall (R : numDomainType) (M : pseudoMetricType R), nbhs_ball = filter.nbhs) NbhsBall.nbhs_simpl is not universe polymorphic NbhsBall.nbhs_simpl is transparent Expands to: Constant mathcomp.analysis.topology_theory.pseudometric_structure.NbhsBall.nbhs_simpl Declared in library mathcomp.analysis.topology_theory.pseudometric_structure, line 183, characters 11-21
Source code
End NbhsBall.
Lemma
Source code
nbhs x P <-> nbhs_ball x P.
Proof.
Lemma
Source code
( : {posnum R}) : ball x e%:num x.
Proof.
Section pseudoMetricType_numDomainType.
Context { : numDomainType} { : pseudoMetricType R}.
Implicit Types x y z : M.
Lemma
Source code
Proof.
Lemma
Source code
Proof.
Lemma
Source code
Lemma
Source code
ball x e1 y -> ball y e2 z -> ball x (e1 + e2) z.
Proof.
Lemma
Source code
Source code
Proof.
Lemma
Source code
Source code
Proof.
by apply: nbhs_singleton; apply: nbhs_interior; exact: nbhsx_ballx.
Qed.
Lemma
Source code
Proof.
by rewrite -[e2](subrK e1); apply/ball_triangle/ballxx; rewrite subr_gt0.
Qed.
Lemma
Source code
Source code
Proof.
Lemma
Source code
Proof.
Lemma
Source code
F --> y <-> forall
Source code
Proof.
Lemma
Source code
F --> y -> forall
Source code
Proof.
Lemma
Source code
f @ F --> y <-> forall
Source code
Proof.
Lemma
Source code
f @ F --> y -> forall
Source code
Proof.
Lemma
Source code
f `@ F --> y <->
forall
Source code
Proof.
move=> /nbhs_ballP[_ /posnumP[eps] subP].
rewrite near_simpl near_mapi; near=> x.
have [//|z [fxz yz]] := near (Fy _ (gt0 eps)) x.
by exists z => //; split => //; apply: subP.
Unshelve. all: end_near. Qed.
Lemma
Source code
f `@ F --> y ->
forall
Source code
Proof.
End pseudoMetricType_numDomainType.
#[global] Hint Resolve nbhsx_ballx : core.
Global Instance
Source code
{ : pseudoPMetricType R} : ProperFilter (@entourage M).
Proof.
by exists (point, point); apply: sbeA; apply: ballxx.
Qed.
Arguments nbhsx_ballx {R M} x eps.
Arguments near_ball {R M} y eps.
Section pseudoMetricType_numFieldType.
Context { : numFieldType} { : pseudoMetricType R}.
Lemma
Source code
ball x (e / 2) z -> ball z (e / 2) y -> ball x e y.
Proof.
Lemma
Source code
ball z (e / 2) x -> ball z (e / 2) y -> ball x e y.
Proof.
Lemma
Source code
ball x (e / 2) z -> ball y (e / 2) z -> ball x e y.
Proof.
End pseudoMetricType_numFieldType.
Section entourages.
Variable : numDomainType.
Lemma
Source code
unif_continuous f <->
forall , e > 0 -> exists2 , d > 0 &
forall , ball x.1 d x.2 -> ball (f x.1) e (f x.2).
Proof.
by rewrite entourage_ballE; apply: fmap_filter.
by rewrite /unif_continuous -!entourage_ballE filter_fromP.
Qed.
End entourages.
Lemma
Source code
countable_uniformity T.
Proof.
exists (fun => [set : T * T | ball xy.1 n.+1%:R^-1 xy.2]); last first.
by move=> n; exact: (entourage_ball _ n.+1%:R^-1%:pos).
move=> E; rewrite -entourage_ballE => -[e e0 subE].
exists (Num.truncn e^-1); apply: subset_trans subE => xy; apply: le_ball.
by rewrite /= -[leRHS]invrK lef_pV2 ?posrE ?invr_gt0// ltW// truncnS_gt.
Qed.
.
Source code
Source code
Source code
Definition
ball_ : forall {R : numDomainType} {V : GRing.Zmodule.Exports.zmodType}, (V -> R) -> V -> R -> set V ball_ is not universe polymorphic Arguments ball_ {R V} norm x e%_ring_scope y / (where some original arguments have been renamed) The reduction tactics unfold ball_ when applied to 6 arguments ball_ is transparent Expands to: Constant mathcomp.analysis.topology_theory.pseudometric_structure.ball_ Declared in library mathcomp.analysis.topology_theory.pseudometric_structure, line 330, characters 11-16
Source code
( : numDomainType) ( : zmodType) (
Source code
[set | norm (x - y) < e].
Arguments ball_ {R} {V} norm x e%_R y /.
Lemma
Source code
ball_ Num.Def.normr x e `<=` P <->
{in `](x - e), (x + e)[, forall , P y}.
Proof.
Lemma
Source code
ball_ Num.Def.normr x (2 * e) `<=` P ->
{in `[(x - e), (x + e)], forall , P y}.
Proof.
by rewrite (le_lt_trans ye)// ltr_pMl// ltr1n.
Qed.
Global Instance
Source code
[set | exists2 : R, 0 < i & ball_ Num.norm t i `<=` P].
Proof.
- move=> -[x x0 xP] [y ? yQ]; exists (Num.min x y); first by rewrite lt_min x0.
move=> z tz; split.
by apply: xP; rewrite /= (lt_le_trans tz) // ge_min lexx.
by apply: yQ; rewrite /= (lt_le_trans tz) // ge_min lexx orbT.
- by move=> -[x ? xP]; exists x => //; apply: (subset_trans xP).
Qed.
#[global] Hint Extern 0 (Filter [set | exists2 , _ & ball_ _ _ i `<=` P]) =>
(apply: ball_filter) : typeclass_instances.
Section pseudoMetric_of_normedDomain.
Context { : numDomainType} { : normedZmodType K}.
Lemma
Source code
Lemma
Source code
ball_ Num.norm x e y -> ball_ Num.norm y e x.
Proof.
Lemma
Source code
ball_ Num.norm x e1 y -> ball_ Num.norm y e2 z -> ball_ Num.norm x (e1 + e2) z.
Proof.
Lemma
Source code
@nbhs_ball_ K R R (ball_ Num.norm) = nbhs_ (entourage_ (ball_ Num.norm)).
Proof.
End pseudoMetric_of_normedDomain.
.
Source code
Source code
Source code
Source code
Source code
Source code
.
Source code
Source code
Source code
{ of Complete T & PseudoPointedMetric R T}.
Definition
cauchy_ex : forall {R : numDomainType} {T : pseudoMetricType R}, set_system T -> Prop cauchy_ex is not universe polymorphic Arguments cauchy_ex {R T} F cauchy_ex is transparent Expands to: Constant mathcomp.analysis.topology_theory.pseudometric_structure.cauchy_ex Declared in library mathcomp.analysis.topology_theory.pseudometric_structure, line 398, characters 11-20
Source code
( : set_system T) :=
forall
Source code
Definition
cauchy_ball : forall {R : numDomainType} {T : pseudoMetricType R}, set_system T -> Prop cauchy_ball is not universe polymorphic Arguments cauchy_ball {R T} F cauchy_ball is transparent Expands to: Constant mathcomp.analysis.topology_theory.pseudometric_structure.cauchy_ball Declared in library mathcomp.analysis.topology_theory.pseudometric_structure, line 402, characters 11-22
Source code
( : set_system T) :=
forall , e > 0 -> \forall & \near F, ball x e y.
Lemma
Source code
( : set_system T) ( : Filter F) :
cauchy_ball F <-> cauchy F.
Proof.
by move=> _/posnumP[eps]; apply/cauchyF/entourage_ball.
move=> U; rewrite -entourage_ballE => - [_/posnumP[eps] xyepsU].
by near do apply: xyepsU; apply: cauchyF.
Unshelve. all: by end_near. Qed.
Lemma
Source code
( : set_system T) ( : Filter F) :
cauchy_ex F -> cauchy F.
Proof.
have /Fc [z /= Fze] := [gt0 of e%:num / 2]; near=> x y; apply: sdeA => /=.
by apply: (@ball_splitr _ _ z); [near: x|near: y].
Unshelve. all: by end_near. Qed.
Lemma
Source code
( : set_system T) ( : ProperFilter F) :
cauchy F <-> cauchy_ex F.
Proof.
near F => x; exists x; near: x; apply: (@nearP_dep _ _ F F).
exact/Fcauchy/entourage_ball.
Unshelve. all: by end_near. Qed.