Module mathcomp.classical.unstable
From HB Require Import structures.From mathcomp Require Import boot order finmap ssralg ssrnum ssrint.
From mathcomp Require Import vector archimedean interval matrix.
Attributes warn(note="The unstable.v file should only be used inside analysis.",
cats="internal-analysis").
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Import Order.TTheory GRing.Theory Num.Theory.
Local Open Scope ring_scope.
Section Clamp.
Context { : realDomainType} (
Hypothesis
Definition
Source code
Lemma
Lemma
Definition
Source code
Lemma
Lemma
Proof.
Lemma
Proof.
Lemma
Proof.
End Clamp.
Module
Import Order.
Definition
Used by
- mathcomp.classical.boolp
Source code
End Order.
Definition
clamp : forall {R : realDomainType}, R -> R -> R -> R clamp is not universe polymorphic Arguments clamp {R} (min max x)%_ring_scope clamp is transparent Expands to: Constant mathcomp.classical.unstable.clamp Declared in library mathcomp.classical.unstable, line 70, characters 11-16
Used by
- mathcomp.analysis.cantor
- mathcomp.analysis.topology_theory.function_spaces
- mathcomp.analysis.homotopy_theory.wedge_sigT
Source code
Section DFunWith.
Variables ( : eqType) ( : I' -> Type) ( : forall , T i).
Lemma
- mathcomp.analysis.topology_theory.function_spaces
Source code
End DFunWith.
Lemma
- mathcomp.analysis.normedtype_theory.matrix_normedtype
Source code
( : 'M[V]_(m, n1)) ( : 'M[V]_(m, n2)) :
row_mx A1 A2 - row_mx B1 B2 = row_mx (A1 - B1) (A2 - B2).
Proof.
Section IntervalNumDomain.
Variable : numDomainType.
Implicit Types x : R.
Lemma
(- x \in Interval (BInfty _ ba) (BSide bb xb)) =
(x \in Interval (BSide (~~ bb) (- xb)) (BInfty _ (~~ ba))).
Lemma
- mathcomp.classical.set_interval
Source code
(- x \in Interval (BSide ba xa) (BInfty _ bb)) =
(x \in Interval (BInfty _ (~~ bb)) (BSide (~~ ba) (- xa))).
End IntervalNumDomain.
Lemma
( : seq I) :
all (coprime (F a)) [seq F i | <- [seq <- l | P i]] ->
coprime (F a) (\prod_( <- l | P j) F j).
Proof.
Lemma
( : nat) :
pairwise coprime [seq F i | <- [seq <- r | P i]] ->
reflect (forall , i \in r -> P i -> F i %| n)
(\prod_( <- r | P i) F i %| n).
Proof.
by rewrite big_nil dvd1n; apply: ReflectT => i; rewrite in_nil.
rewrite big_cons; case: ifP => [Pa|nPa]; last first.
move/HI/equivP; apply; split=> [Fidvdn i|Fidvdn i il].
by rewrite in_cons => /predU1P[->|]; [rewrite nPa|exact: Fidvdn].
by apply: Fidvdn; rewrite in_cons il orbT.
rewrite map_cons pairwise_cons => /andP[allcoprimea pairwisecoprime].
rewrite Gauss_dvd; first exact: coprime_prodr.
apply: (equivP (andPP idP (HI pairwisecoprime))).
split=> [[Fadvdn Fidvdn] i|Fidvdn].
by rewrite in_cons => /predU1P[->//|]; exact: Fidvdn.
split=> [|i il].
by apply: Fidvdn => //; exact: mem_head.
by apply: Fidvdn; rewrite in_cons il orbT.
Qed.
Lemma
- mathcomp.analysis.showcase.pnt
Source code
( : nat) :
((\prod_( <- r | P i) F i) ^ n = \prod_( <- r | P i) (F i) ^ n)%N.
Proof.
Lemma
(\prod_(m <= < y) i * \prod_(n <= < x) i <= \prod_(n + m <= < x + y) i)%N.
Proof.
rewrite [in leqRHS]/index_iota -addnBAC// iotaD big_cat/=.
rewrite mulnC leq_mul//.
by apply: leq_prod; move=> i _; rewrite leq_addr.
rewrite subnKC//.
rewrite -[in leqLHS](add0n m) big_addn.
rewrite [in leqRHS](_ : y - m = ((y - m + x) - x))%N.
by rewrite -addnBA// subnn addn0.
rewrite -[X in iota X _](add0n x) big_addn -addnBA// subnn addn0.
by apply: leq_prod => i _; rewrite leq_add2r leq_addr.
Qed.
Lemma
- mathcomp.analysis.probability_theory.beta_distribution
Source code
(x`! * y`! * ((n + m).+1)`! <= n`! * m`! * ((x + y).+1)`!)%N.
Proof.
rewrite (fact_split nx) -!mulnA leq_mul2l; apply/orP; right.
rewrite (fact_split my) mulnCA -!mulnA leq_mul2l; apply/orP; right.
rewrite [leqRHS](_ : _ =
(n + m).+1`! * \prod_((n + m).+2 <= < (x + y).+2) i)%N.
by rewrite -fact_split// ltnS leq_add.
rewrite mulnA mulnC leq_mul2l; apply/orP; right.
do 2 rewrite -addSn -addnS.
exact: leq_Mprod_prodD.
Qed.
Notation
- mathcomp.analysis.topology_theory.edist
Source code
Lemma
- mathcomp.analysis.normedtype_theory.vitali_lemma
Source code
Proof.
have [m2n|nm2] := ltnP m.+2 (2 ^ n.+1)%N.
by exists n; rewrite m2n andbT (leq_trans h1).
exists n.+1; rewrite nm2/= -addn1.
rewrite -[X in (_ <= X)%N]prednK ?expn_gt0// -[X in (_ <= X)%N]addn1 leq_add2r.
by rewrite (leq_trans h2)// -subn1 leq_subRL ?expn_gt0// add1n ltn_exp2l.
Qed.
Notation
- mathcomp.analysis.measurable_realfun
- mathcomp.analysis.numfun
- mathcomp.analysis.probability_theory.random_variable
- mathcomp.analysis.realfun
Source code
(at level 10).
Notation
- mathcomp.analysis.measurable_realfun
- mathcomp.analysis.numfun
- mathcomp.analysis.probability_theory.random_variable
- mathcomp.analysis.realfun
Source code
(at level 10).
Notation
(at level 10).
Notation
(at level 10).
Notation
- mathcomp.classical.classical_sets
- mathcomp.analysis.measure_theory.measurable_structure
Source code
(at level 10).
Notation
- mathcomp.analysis.measure_theory.measurable_structure
Source code
(at level 10).
Definition
clamp_gele : forall {R : realDomainType} [min max : R], (min <= max)%R -> (forall x : R, (min <= clamp min max x)%R) * (forall x : R, (clamp min max x <= max)%R) clamp_gele is not universe polymorphic Arguments clamp_gele {R} [min max]%_ring_scope minmax clamp_gele is transparent Expands to: Constant mathcomp.classical.unstable.clamp_gele Declared in library mathcomp.classical.unstable, line 78, characters 11-21
Used by
- mathcomp.analysis.normedtype_theory.num_normedtype
Source code
( : predType T) ( : pT) ( : T -> T') :=
{in A &, nondecreasing f} \/ {in A &, {homo f : /~ (x <= y)%O}}.
Definition
Used by
- mathcomp.analysis.realfun
- mathcomp.analysis.normedtype_theory.num_normedtype
Source code
( : predType T) ( : pT) ( : T -> T') :=
{in A &, {homo f : / (x < y)%O}} \/ {in A &, {homo f : /~ (x < y)%O}}.
Lemma
- mathcomp.analysis.realfun
Source code
( : predType T) ( : pT) ( : T -> T') :
strict_monotonic A f -> monotonic A f.
Proof.
Lemma
- mathcomp.analysis.showcase.pnt
Source code
Proof.
by rewrite ltn_neqAle fincr (inj_eq (incn_inj fincr)) -ltn_neqAle.
Qed.
Section path_lt.
Context { : orderType d}.
Implicit Types (a b c : T) (s : seq T).
Lemma
- mathcomp.analysis.numfun
Source code
P a -> P (last a [seq <- s | P x]).
Proof.
Lemma
- mathcomp.analysis.numfun
Source code
Proof.
apply: eq_in_filter => x xs.
by apply/negbTE; have := sa _ xs; rewrite ltNge; apply: contra => /ltW.
Qed.
Lemma
- mathcomp.analysis.numfun
Source code
Proof.
by apply: eq_in_filter => x xs; exact: sa.
Qed.
Lemma
- mathcomp.analysis.numfun
Source code
Lemma
- mathcomp.analysis.numfun
Source code
(a < c)%O -> (c < b)%O -> path <%O a s -> last a s = b ->
last c [seq <- s | (c < x)%O] = b.
Proof.
move=> a b c ac cb _ ab.
by apply/eqP; rewrite eq_le (ltW cb) -ab (ltW ac).
rewrite rcons_path => /andP[ah ht]; rewrite last_rcons => tb.
by rewrite filter_rcons tb cb last_rcons.
Qed.
Lemma
- mathcomp.analysis.realfun
Source code
Proof.
End path_lt.
Arguments last_filterP {d T a} P s.
Inductive
- mathcomp.analysis.lebesgue_measure
Source code
Reserved Notation "`1- r" (format "`1- r", at level 2).
Reserved Notation "f \^-1" (at level 1, format "f \^-1").
Lemma
( : X -> nat) : A != fset0 ->
(exists , i \in A /\ forall , j \in A -> f j <= f i)%nat.
Proof.
Lemma
(exists , i <= n /\ forall , j <= n -> f j <= f i)%N.
Proof.
Arguments big_rmcond {R idx op I r} P.
Arguments big_rmcond_in {R idx op I r} P.
Reserved Notation "`1- x" (format "`1- x", at level 2).
Lemma
- mathcomp.analysis.showcase.pnt
Source code
( : I -> {set T}) :
(#|\bigcup_( <- r | P i) F i| <= \sum_( <- r | P i) #|F i|)%N.
Proof.
by rewrite (leq_trans (leq_card_setU _ _))// leq_add.
Qed.
Definition
Used by
- mathcomp.classical.set_interval
- mathcomp.analysis.convex
- mathcomp.analysis.exp
- mathcomp.analysis.probability_theory.beta_distribution
- mathcomp.analysis.realfun
- mathcomp.analysis.ftc
- mathcomp.analysis.hoelder
- mathcomp.analysis.normedtype_theory.tvs
Source code
#[deprecated(since="mathcomp-analysis 1.15.0")]
Notation
Reserved Notation "p '.~'" (format "p .~", at level 1).
Notation
Section onem_ring.
Context { : pzRingType}.
Implicit Type r : R.
Lemma
- mathcomp.analysis.probability_theory.beta_distribution
- mathcomp.analysis.ftc
Source code
Lemma
- mathcomp.analysis.convex
- mathcomp.analysis.probability_theory.beta_distribution
- mathcomp.analysis.probability_theory.binomial_distribution
- mathcomp.analysis.ftc
Source code
Lemma
- mathcomp.analysis.convex
- mathcomp.analysis.sequences
- mathcomp.analysis.ftc
Source code
Proof.
Lemma
- mathcomp.analysis.convex
- mathcomp.analysis.probability_theory.binomial_distribution
- mathcomp.analysis.normedtype_theory.normed_module
- mathcomp.analysis.normedtype_theory.tvs
Source code
Lemma
- mathcomp.analysis.probability_theory.binomial_distribution
Source code
Lemma
- mathcomp.analysis.sequences
Source code
Lemma
- mathcomp.analysis.sequences
Source code
End onem_ring.
Section onem_order.
Variable : numDomainType.
Implicit Types r : R.
Lemma
- mathcomp.analysis.sequences
- mathcomp.analysis.hoelder
- mathcomp.analysis.normedtype_theory.normed_module
- mathcomp.analysis.normedtype_theory.tvs
Source code
Proof.
Lemma
- mathcomp.analysis.probability_theory.beta_distribution
- mathcomp.analysis.probability_theory.binomial_distribution
- mathcomp.analysis.hoelder
- mathcomp.analysis.functional_analysis.hahn_banach_theorem
- mathcomp.analysis.normedtype_theory.normed_module
- mathcomp.analysis.normedtype_theory.tvs
Source code
Lemma
- mathcomp.analysis.probability_theory.beta_distribution
- mathcomp.analysis.probability_theory.binomial_distribution
- mathcomp.analysis.hoelder
Source code
Lemma
Lemma
Proof.
Lemma
End onem_order.
Lemma
- mathcomp.analysis.probability_theory.beta_distribution
Source code
(0 <= x <= 1 -> `| x.~ | <= 1)%R.
Proof.
Lemma
- mathcomp.analysis.hoelder
Source code
Lemma
- mathcomp.analysis.functional_analysis.hahn_banach_theorem
- mathcomp.analysis.normedtype_theory.tvs
Source code
(s / (s + t)).~ = t / (s + t).
Proof.
Lemma
Proof.
Lemma
- mathcomp.analysis.derive
Source code
reflect (forall , z > y -> x <= z) (x <= y).
Proof.
Lemma
reflect (forall , z < x -> z <= y) (x <= y).
Proof.
Definition
Used by
- mathcomp.classical.functions
Source code
Notation
Arguments inv_fun {T R} _ _ /.
Definition
Order.default_display : disp_t Order.default_display is not universe polymorphic Order.default_display is transparent Expands to: Constant mathcomp.classical.unstable.Order.default_display Declared in library mathcomp.classical.unstable, line 96, characters 11-26
Used by
- mathcomp.analysis.normedtype_theory.num_normedtype
Source code
if x is BSide c' _ then c == c' else false.
Lemma
x - y \is Num.real -> (`|x - y| < e) = (x - e < y < x + e).
Proof.
Definition
proj : forall {I : Type} {T : I -> Type} (i : I), (forall i0 : I, T i0) -> T i proj is not universe polymorphic Arguments proj {I}%_type_scope {T}%_function_scope i f%_function_scope proj is transparent Expands to: Constant mathcomp.classical.unstable.proj Declared in library mathcomp.classical.unstable, line 101, characters 11-15
Used by
- mathcomp.analysis.esum
- mathcomp.analysis.topology_theory.function_spaces
- mathcomp.analysis.topology_theory.product_topology
- mathcomp.analysis.topology_theory.order_topology
- mathcomp.analysis.measure_theory.measurable_function
Source code
Section reassociate_products.
Context { : Type}.
Definition
monotonic : forall [d : disp_t] [T : porderType d] [d' : disp_t] [T' : porderType d'] [pT : predType T], pT -> (T -> T') -> Prop monotonic is not universe polymorphic Arguments monotonic [d T d' T' pT] A f%_function_scope monotonic is transparent Expands to: Constant mathcomp.classical.unstable.monotonic Declared in library mathcomp.classical.unstable, line 232, characters 11-20
Used by
- mathcomp.analysis.topology_theory.function_spaces
- mathcomp.analysis.topology_theory.product_topology
Source code
(xyz.1.1, (xyz.1.2, xyz.2)).
Definition
strict_monotonic : forall [d : disp_t] [T : porderType d] [d' : disp_t] [T' : porderType d'] [pT : predType T], pT -> (T -> T') -> Prop strict_monotonic is not universe polymorphic Arguments strict_monotonic [d T d' T' pT] A f%_function_scope strict_monotonic is transparent Expands to: Constant mathcomp.classical.unstable.strict_monotonic Declared in library mathcomp.classical.unstable, line 236, characters 11-27
Used by
- mathcomp.analysis.topology_theory.function_spaces
- mathcomp.analysis.topology_theory.product_topology
Source code
((xyz.1, xyz.2.1), xyz.2.2).
Lemma
Proof.
Lemma
Proof.
End reassociate_products.
Lemma
Proof.
Definition
onem : forall {R : pzRingType}, R -> R onem is not universe polymorphic Arguments onem {R} r%_ring_scope onem is transparent Expands to: Constant mathcomp.classical.unstable.onem Declared in library mathcomp.classical.unstable, line 340, characters 11-15
Used by
- mathcomp.analysis.topology_theory.initial_topology
- mathcomp.analysis.topology_theory.function_spaces
- mathcomp.analysis.topology_theory.product_topology
- mathcomp.analysis.topology_theory.uniform_structure
- mathcomp.analysis.normedtype_theory.urysohn
- mathcomp.analysis.normedtype_theory.pseudometric_normed_Zmodule
Source code
(f x.1, f x.2).
Section order_min.
Variables ( : Order.disp_t) ( : orderType d).
Lemma
- mathcomp.analysis.sequences
Source code
Proof.
End order_min.
Section bijection_forall.
Lemma
- mathcomp.analysis.realfun
Source code
bijective f -> (forall , P y) <-> (forall , P (f x)).
Proof.
End bijection_forall.
Lemma
{in p, forall , P x /\ Q x} <->
{in p, forall , P x} /\ {in p, forall , Q x}.
Proof.
by split; [apply: cnd1 | apply: cnd2].
Qed.
Lemma
- mathcomp.analysis.realfun
Source code
{in `[a, b] &, {mono f : / (x <= y)%O}} ->
{homo f : / x \in `[a, b] >-> x \in `[f a, f b]}.
Proof.
Lemma
- mathcomp.analysis.realfun
Source code
{in `[a, b] &, {mono f : /~ (x <= y)%O}} ->
{homo f : / x \in `[a, b] >-> x \in `[f b, f a]}.
Proof.
Definition
inv_fun : forall {T : Type} {R : unitRingType}, (T -> R) -> T -> R inv_fun is not universe polymorphic Arguments inv_fun {T}%_type_scope {R} f%_function_scope x / The reduction tactics unfold inv_fun when applied to 4 arguments inv_fun is transparent Expands to: Constant mathcomp.classical.unstable.inv_fun Declared in library mathcomp.classical.unstable, line 430, characters 11-18
Used by
- mathcomp.analysis.topology_theory.sigT_topology
- mathcomp.analysis.homotopy_theory.wedge_sigT
Source code
( : forall , X i -> T) ( : { & X i}) : T :=
(f (projT1 x) (projT2 x)).
Section FsetPartitions.
Variables : choiceType.
Implicit Types (x y z : T) (A B D X : {fset T}) (P Q : {fset {fset T}}).
Implicit Types (J : pred I) (F : I -> {fset T}).
Variables ( : Type) (
Let
(\big[op/idx]_( <- P) \big[op/idx]_( <- A | K x) E x)%fset.
Let
Lemma
( : {fset I}) :
(forall , i \in K -> j \in K -> i != j -> [disjoint F i & F j])%fset ->
\big[op/idx]_( <- \big[fsetU/fset0]_( <- K) (F x)) f i =
\big[op/idx]_( <- K) (\big[op/idx]_( <- F k) f i).
Proof.
have trivP : trivIfset P.
apply/trivIfsetP => _ _ /imfsetP[i iK ->] /imfsetP[j jK ->] neqFij.
move: iK; rewrite !inE/= => /andP[iK Fi0].
move: jK; rewrite !inE/= => /andP[jK Fj0].
by apply: (disjF _ _ iK jK); apply: contraNneq neqFij => ->.
have -> : (\bigcup_( <- K) F i)%fset = fcover P.
apply/esym; rewrite /P fcover_imfset big_mkcond /=; apply eq_bigr => i _.
by case: ifPn => // /negPn/eqP.
rewrite big_trivIfset // /rhs big_imfset => [i j iK /andP[jK notFj0] eqFij|] /=.
move: iK; rewrite !inE/= => /andP[iK Fi0].
by apply: contraNeq (disjF _ _ iK jK) _; rewrite -fsetI_eq0 eqFij fsetIid.
rewrite big_filter big_mkcond; apply eq_bigr => i _.
by case: ifPn => // /negPn /eqP ->; rewrite big_seq_fset0.
Qed.
End FsetPartitions.
Lemma
(forall , x \in s -> 0 <= x <= 1)%R -> (\prod_( <- s) j <= 1)%R.
Proof.
have /andP[y0 y1] : (0 <= y <= 1)%R by rewrite xs01// mem_head.
rewrite mulr_ile1 ?andbT//.
rewrite big_seq prodr_ge0// => x xs.
by have := xs01 x; rewrite inE xs orbT => /(_ _)/andP[].
by rewrite ih// => e xs; rewrite xs01// in_cons xs orbT.
Qed.
Lemma
Proof.
Lemma
[ : pred I] [ : I -> R] :
has P r ->
(forall : I, P i -> F i < G i) ->
\sum_( <- r | P i) F i < \sum_( <- r | P i) G i.
Proof.
case: filter (filter_all P r) => //= x {}r /andP[Px Pr] _ ltFG.
rewrite !big_cons ltr_leD// ?ltFG// -(all_filterP Pr) !big_filter.
by rewrite ler_sum => // i Pi; rewrite ltW ?ltFG.
Qed.
Lemma
(m < n)%N -> (forall : nat, (m <= i < n)%N -> F i < G i) ->
\sum_(m <= < n) F i < \sum_(m <= < n) G i.
Proof.
Lemma
(forall , P x <-> P' x) ->
(exists2 , P x & Q x) <-> (exists2 , P' x & Q x).
Proof.
Qed.
Lemma
- mathcomp.analysis.ereal
Source code
(forall , Q x <-> Q' x) ->
(exists2 , P x & Q x) <-> (exists2 , P x & Q' x).
Proof.
Declare Scope signature_scope.
Delimit Scope signature_scope with signature.
Import -(notations) Morphisms.
Arguments Proper {A}%_type R%_signature m.
Arguments respectful {A B}%_type (R R')%_signature _ _.
Module
Notation
(right associativity, at level 55) : signature_scope.
Notation
(right associativity, at level 55) : signature_scope.
Notation
(right associativity, at level 55) : signature_scope.
Export -(notations) Morphisms.
End ProperNotations.
Lemma
- mathcomp.analysis.realfun
Source code
Proof.
Lemma
- mathcomp.experimental_reals.realsum
Source code
Proof.
Lemma
x \is Num.real -> x < (Num.bound x)%:R.
Proof.
Lemma
x \is Num.real -> - x < (Num.bound x)%:R.
Proof.
Lemma
- mathcomp.reals.real_interval
- mathcomp.analysis.measurable_realfun
- mathcomp.analysis.lebesgue_stieltjes_measure
- mathcomp.analysis.topology_theory.nat_topology
Source code
Proof.
Lemma
- mathcomp.reals.real_interval
- mathcomp.analysis.measurable_realfun
- mathcomp.analysis.lebesgue_stieltjes_measure
- mathcomp.analysis.probability_theory.random_variable
Source code
Proof.
Module
- mathcomp.analysis.functional_analysis.hahn_banach_theorem
- mathcomp.analysis.normedtype_theory.tvs
Source code
.
norm0 : norm 0 = 0 ;
norm_ge0 : forall , 0 <= norm x ;
ler_normD : forall , norm (x + y) <= norm x + norm y ;
normZ : forall , norm (r *: x) = `|r| * norm x
}.
.
.
(norm : L -> K) := { norm0_eq0 : forall , norm x = 0 -> x = 0 }.
.
{
Module Import
Section Theory.
Variables ( : numDomainType) ( : lmodType K) (
Lemma
- mathcomp.analysis.normedtype_theory.normed_module
Source code
Proof.
Lemma
- mathcomp.analysis.normedtype_theory.normed_module
- mathcomp.analysis.normedtype_theory.tvs
Source code
Lemma
- mathcomp.analysis.normedtype_theory.normed_module
Source code
norm (\sum_( <- r) F i) <= \sum_( <- r) norm (F i).
End Theory.
Section realTheory.
Variables ( : realDomainType) ( : lmodType K) (
Lemma
- mathcomp.analysis.normedtype_theory.tvs
Source code
Proof.
End realTheory.
End Theory.
Module Import
End Norm.
Export Norm.Exports.
From mathcomp Require Import interval_inference.
Module
- mathcomp.analysis.normedtype_theory.matrix_normedtype
Source code
Section max_nng_comlaw.
Import Num.Def.
Context { : realFieldType}.
Let
Proof.
rewrite -leNgt => x0.
apply/eqP; rewrite eq_le x0 andbT.
(* NB: the goal is `widen_itv 0%:itv <= x`, which does not match the syntax to
trigger the hint for `ge0` as can be seen at
https://github.com/math-comp/math-comp/blob/900e37912dbecbd3c04d3c1b320efe721d3f56dd/algebra/interval_inference.v#L770 *)
by rewrite -num_le/=.
Qed.
.
Monoid.isComLaw.Build {nonneg K} 0%:nng maxr maxA maxC nng_max0r.
End max_nng_comlaw.
End MaxNngComLaw.
Module
Section ProdNormedZmodule.
Context { : numDomainType} { : normedZmodType R}.
Definition
ProdNormedZmodule.norm : forall {R : numDomainType} {U V : normedZmodType R}, U * V -> R ProdNormedZmodule.norm is not universe polymorphic Arguments ProdNormedZmodule.norm {R U V} x ProdNormedZmodule.norm is transparent Expands to: Constant mathcomp.classical.unstable.ProdNormedZmodule.norm Declared in library mathcomp.classical.unstable, line 735, characters 11-15
Source code
Lemma
Proof.
by rewrite comparable_le_max ?lexx ?orbT// real_comparable.
Qed.
Lemma
Proof.
Lemma
Lemma
.
normD norm_eq0 normMn normrN.
Lemma
Proof.
End ProdNormedZmodule.
Module
HB.reexport.
Definition
prod_normE : forall [R : numDomainType] [U V : normedZmodType R] (x : U * V), `|x|%R = maxr `|x.1|%R `|x.2|%R prod_normE is not universe polymorphic Arguments prod_normE [R U V] x prod_normE is transparent Expands to: Constant mathcomp.classical.unstable.ProdNormedZmodule.Exports.prod_normE Declared in library mathcomp.classical.unstable, line 766, characters 11-21
Used by
- mathcomp.analysis.derive
- mathcomp.analysis.normedtype_theory.normed_module
Source code
End Exports.
End ProdNormedZmodule.
Export ProdNormedZmodule.Exports.
Section interval.
Local Open Scope order_scope.
Context {
Implicit Types (x : T) (bl br : itv_bound T).
Lemma
- mathcomp.classical.set_interval
- mathcomp.analysis.topology_theory.num_topology
Source code
Proof.
End interval.
Module
- mathcomp.analysis.topology_theory.num_topology
Source code
Local Open Scope order_scope.
Definition
EndlessDense.is_endless : forall {d : disp_t}, porderType d -> Prop EndlessDense.is_endless is not universe polymorphic Arguments EndlessDense.is_endless {d} T EndlessDense.is_endless is transparent Expands to: Constant mathcomp.classical.unstable.EndlessDense.is_endless Declared in library mathcomp.classical.unstable, line 788, characters 11-21
Used by
- mathcomp.analysis.topology_theory.num_topology
Source code
forall : T, (exists , y < x) /\ (exists , x < y).
Definition
EndlessDense.is_dense : forall {d : disp_t}, porderType d -> Prop EndlessDense.is_dense is not universe polymorphic Arguments EndlessDense.is_dense {d} T EndlessDense.is_dense is transparent Expands to: Constant mathcomp.classical.unstable.EndlessDense.is_dense Declared in library mathcomp.classical.unstable, line 791, characters 11-19
Used by
- mathcomp.analysis.topology_theory.num_topology
Source code
forall : T, x < y -> exists , x < z < y.
Section endless_dense_porderType.
Context {} { : porderType d}.
Implicit Type i j : itv_bound T.
Let
is_dense T ->
BSide bl L < BSide br R ->
exists , BSide bl L <= BLeft y < BSide br R.
Proof.
Let
is_endless T ->
BInfty _ bl < j ->
exists , BInfty _ bl <= BLeft y < j.
Proof.
Let
is_endless T ->
i < BInfty _ br ->
exists , i <= BLeft y < BInfty _ br.
Proof.
Lemma
- mathcomp.analysis.topology_theory.num_topology
Source code
is_endless T ->
is_dense T ->
i < j -> exists , i <= BLeft y < j.
Proof.
case: i => [? ? | ?]; case j => [? ? | ?].
- exact: fin_itv_bound_half_dense.
- exact: rinfty_itv_bound_half_dense.
- exact: linfty_itv_bound_half_dense.
- exact: linfty_itv_bound_half_dense.
Qed.
End endless_dense_porderType.
Local Lemma
is_endless T ->
is_dense T ->
x \in i -> {subset i <= j} -> j.1 <= i.1.
Proof.
move=> T_endless T_dense xi isubj.
have := xi; rewrite itv_boundlr => /andP[] _ xir.
have := isubj _ xi; rewrite itv_boundlr => /andP[] jlx _.
rewrite leNgt; apply/negP => /itv_bound_half_dense [] // y /andP[ily yjl].
suff/isubj : y \in Interval il ir by rewrite itv_boundlr leNgt yjl.
rewrite itv_boundlr ily/= (le_trans _ xir)// ltW//.
by have:= lt_le_trans yjl jlx; rewrite !bnd_simp.
Qed.
Definition
EndlessDense.dual_itv_bound : forall {d : disp_t} {T : porderType d}, itv_bound T -> itv_bound T^d EndlessDense.dual_itv_bound is not universe polymorphic Arguments EndlessDense.dual_itv_bound {d T} ib EndlessDense.dual_itv_bound is transparent Expands to: Constant mathcomp.classical.unstable.EndlessDense.dual_itv_bound Declared in library mathcomp.classical.unstable, line 865, characters 11-25
Source code
itv_bound T^d :=
match ib with
| BInfty b => BInfty _ (~~ b)
| BSide b x => BSide (~~ b) x
end.
Definition
EndlessDense.dual_itv : forall {d : disp_t} {T : porderType d}, interval T -> interval T^d EndlessDense.dual_itv is not universe polymorphic Arguments EndlessDense.dual_itv {d T} i EndlessDense.dual_itv is transparent Expands to: Constant mathcomp.classical.unstable.EndlessDense.dual_itv Declared in library mathcomp.classical.unstable, line 872, characters 11-19
Source code
@Interval T^d (dual_itv_bound i.2) (dual_itv_bound i.1).
Section dual_porderType.
Context {} { : porderType d}.
Implicit Types i j : interval T.
Lemma
Proof.
Lemma
{subset i <= j} <-> {subset dual_itv i <= dual_itv j}.
Proof.
Lemma
Lemma
Proof.
Lemma
dual_itv_bound (dual_itv_bound ib) = ib.
Proof.
Lemma
(dual_itv_bound l < dual_itv_bound r) = (r < l).
Proof.
Lemma
(dual_itv_bound l <= dual_itv_bound r) = (r <= l).
Proof.
End dual_porderType.
Section endless_dense_orderType.
Context {} { : orderType d}.
Let
is_endless T ->
is_dense T ->
x \in i -> {subset i <= j} -> i.2 <= j.2.
Proof.
move=> /dual_is_endless T_endless /dual_is_dense T_dense.
rewrite -dual_itvE => xi /dual_itv_sub_memP isubj.
have := @subitvP_half1 _ T^d.
move/(_ (dual_itv (Interval il ir)) (dual_itv (Interval jl jr)) x).
move/(_ T_endless T_dense xi isubj).
by rewrite dual_itv_bound_le.
Qed.
Lemma
- mathcomp.analysis.topology_theory.num_topology
Source code
is_endless T ->
is_dense T ->
x \in i ->
i <= j <-> {subset i <= j}.
Proof.
move=> *; split; first exact: subitvP.
move=> isubj; apply/andP; split.
- by move/(@subitvP_half1 _ _ _ _ x): isubj; exact.
- by move/(@subitvP_half2 _ _ x): isubj; exact.
Qed.
End endless_dense_orderType.
Section num.
Local Open Scope ring_scope.
Lemma
- mathcomp.analysis.topology_theory.num_topology
Source code
Proof.
Lemma
- mathcomp.analysis.topology_theory.num_topology
Source code
Proof.
End num.
End EndlessDense.
Section interval_realFieldType.
Context { : realFieldType}.
Local Open Scope order_scope.
Lemma
Proof.
- exact: EndlessDense.numDomain_is_endless.
- exact: EndlessDense.numField_is_dense.
Qed.
End interval_realFieldType.