Module mathcomp.analysis.convex
From HB Require Import structures.From mathcomp Require Import boot order finmap ssralg ssrint ssrnum interval.
From mathcomp Require Import interval_inference.
#[warning="-warn-library-file-internal-analysis"]
From mathcomp Require Import unstable.
From mathcomp Require Import boolp classical_sets set_interval.
From mathcomp Require Import reals topology.
Reserved Notation "x <| p |> y" (format "x <| p |> y", at level 49).
Unset SsrOldRewriteGoalsOrder.
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Import Order.TTheory GRing.Theory Num.Theory.
Local Open Scope classical_set_scope.
Local Open Scope ring_scope.
Lemma
- mathcomp.analysis.normedtype_theory.tvs
Source code
0 <= r -> r <= 1 -> x < e -> y < e -> r * x + r.~ * y < e.
Proof.
have [->|] := eqVneq r 0; first by rewrite mul0r /onem subr0 add0r mul1r.
have [->|] := eqVneq r 1; first by rewrite mul1r /onem subrr mul0r addr0.
move=> rneq0 rneq1.
have -> : e = r * e + (1 -r) * e by rewrite -mulrDl addrCA subrr addr0 mul1r.
apply: ltrD.
rewrite lter_pM2l lt_neqAle; apply/andP; split => //; first by rewrite eq_sym.
by move: xe; rewrite lt_def; move/andP => []; rewrite eq_sym //.
by apply: ltW.
rewrite lter_pM2l /onem ?subr_gt0 ?ltW //.
by rewrite lt_def; apply/andP; split => //; rewrite eq_sym.
Qed.
Lemma
0 <= r -> r <= 1 -> 0 <= x -> x <= e -> 0 <= y -> y <= e -> r * x + r.~ * y <= e.
Proof.
Declare Scope convex_scope.
Local Open Scope convex_scope.
Module
Section def.
Variables ( : numDomainType) ( : Type) (
Local Notation
Definition
Source code
p%:num = r%:num * s%:num ->
s%:num.~ = p%:num.~ * q%:num.~ ->
a <| p |> (b <| q |> c) = (a <| r |> b) <| s |> c.
End def.
Lemma
p = r * s ->
1 - s = (1 - p) * (1 - q) ->
(1 - p) * q = s * (1 - r).
Proof.
Lemma ( : pzRingType) ( : R) :
1 - s = (1 - p) * (1 - q) ->
s = 1 - (1 - p) * (1 - q).
Lemma ( : comUnitRingType) ( : R) :
1 - p \is a GRing.unit ->
p = r * s ->
1 - s = (1 - p) * (1 - q) ->
q = (s * (1 - r)) / (1 - p).
Lemma ( : unitRingType) ( : R) :
s \is a GRing.unit -> p = r * s -> r = p / s.
End lemmas.
End ConvexQuasiAssoc.
Definition
Source code
.
conv : {i01 R} -> T -> T -> T ;
conv1 : forall , conv 1%:i01 a b = a ;
convmm : forall ( : {i01 R}) , conv p a a = a ;
convC : forall ( : {i01 R}) , conv p a b = conv (1 - p%:inum)%:i01 b a;
convA : convex_quasi_associative conv
}.
- mathcomp.analysis.normedtype_theory.tvs
Source code
- mathcomp.analysis.normedtype_theory.tvs
Source code
- mathcomp.analysis.normedtype_theory.tvs
Source code
- mathcomp.analysis.normedtype_theory.tvs
Source code
- mathcomp.analysis.normedtype_theory.tvs
Source code
- mathcomp.analysis.normedtype_theory.tvs
Source code
- mathcomp.analysis.normedtype_theory.tvs
Source code
- mathcomp.analysis.normedtype_theory.tvs
Source code
- mathcomp.analysis.normedtype_theory.tvs
Source code
- mathcomp.analysis.normedtype_theory.tvs
Source code
{ of isConvexSpace R T & Choice T}.
Notation
Section convex_space_lemmas.
Context ( : convType R).
Implicit Types a b : A.
Lemma
Proof.
End convex_space_lemmas.
Local Open Scope convex_scope.
Definition
Used by
- mathcomp.analysis.normedtype_theory.normed_module
Source code
Section lmodType_convex_space.
Context { : numDomainType} { : lmodType R}.
Implicit Type p q r : {i01 R}.
Let := convex_lmodType E'.
Let
Let
Let
Let
Let
Proof.
.
.
isConvexSpace.Build R E avg1 avgI avgC avgA.
End lmodType_convex_space.
Lemma
- mathcomp.analysis.normedtype_theory.tvs
Source code
x <| t |> y + z' = (x + z' : convex_lmodType _) <| t |> (y + z').
Proof.
Definition
ConvexQuasiAssoc.law : forall [R : numDomainType] [T : Type], ({i01 R} -> T -> T -> T) -> Prop ConvexQuasiAssoc.law is not universe polymorphic Arguments ConvexQuasiAssoc.law [R] [T]%_type_scope conv%_function_scope ConvexQuasiAssoc.law is transparent Expands to: Constant mathcomp.analysis.convex.ConvexQuasiAssoc.law Declared in library mathcomp.analysis.convex, line 87, characters 11-14
Source code
Section numDomainType_convex_space.
Context { : numDomainType}.
Implicit Types p q : {i01 R}.
Let
Let
Proof.
Let
Proof.
Let
Proof.
Let
Proof.
.
_ avg1 avgI avgC avgA.
End numDomainType_convex_space.
Section conv_numDomainType.
Context { : numDomainType}.
Lemma
- mathcomp.analysis.exp
Source code
Proof.
Lemma
- mathcomp.analysis.exp
- mathcomp.analysis.hoelder
Source code
a <| t |> b = t%:inum * a + t%:inum.~ * b.
Proof.
Let
a <| t |> b = t%:inum.~ * b + t%:inum * a.
Lemma
- mathcomp.analysis.realfun
Source code
a <| t |> b = line_path b a t%:num.
Proof.
Lemma
Lemma
Proof.
Lemma
- mathcomp.analysis.realfun
Source code
End conv_numDomainType.
Definition
convex_quasi_associative : forall [R : numDomainType] [T : Type], ({i01 R} -> T -> T -> T) -> Prop convex_quasi_associative is not universe polymorphic Arguments convex_quasi_associative [R] [T]%_type_scope conv%_function_scope convex_quasi_associative is transparent Expands to: Constant mathcomp.analysis.convex.convex_quasi_associative Declared in library mathcomp.analysis.convex, line 127, characters 11-35
Used by
- mathcomp.analysis.normedtype_theory.normed_module
- mathcomp.analysis.normedtype_theory.tvs
Source code
( : set (convex_lmodType M)) :=
forall
Lemma
- mathcomp.analysis.normedtype_theory.normed_module
- mathcomp.analysis.normedtype_theory.tvs
Source code
( : set (convex_lmodType M)) :
convex_set A <->
{in A &, forall ( : {i01 R}),
0 < k%:num -> k%:num < 1 -> x <| k |> y \in A}.
Proof.
Definition
convex_lmodType : forall {R : numDomainType}, lmodType R -> Type convex_lmodType is not universe polymorphic Arguments convex_lmodType {R} E convex_lmodType is transparent Expands to: Constant mathcomp.analysis.convex.convex_lmodType Declared in library mathcomp.analysis.convex, line 157, characters 11-26
Used by
- mathcomp.analysis.hoelder
- mathcomp.analysis.functional_analysis.hahn_banach_theorem
Source code
( := convex_lmodType E) ( : set E') ( : E' -> R^o) :=
forall ( : {i01 R}),
{in D &, forall ( : E'), (f (x <| t |> y) <= f x <| t |> f y)%R}.