Module mathcomp.reals.prodnormedzmodule
From HB Require Import structures.From mathcomp Require Import all_ssreflect_compat fingroup ssralg poly ssrnum.
From mathcomp Require Import all_classical.
From mathcomp Require Import interval_inference.
This file equips the product of two normedZmodTypes with a canonical
normedZmodType structure. It is a short file that has been added here for
convenience during the rebase of MathComp-Analysis on top of MathComp 1.1.
The contents is likely to be moved elsewhere.
Set SsrOldRewriteGoalsOrder.
Set Implicit Arguments.
Unset Strict Implicit.
Unset Printing Implicit Defensive.
Local Open Scope ring_scope.
Import Order.TTheory GRing.Theory Num.Theory.
Section Linear1.
Context ( : pzRingType) ( : lmodType R) ( : zmodType) ( : R -> V -> V).
.
instanceSource code
DefinitionSource code
gen_eqMixinSource code
{linear U -> V | s}..
instanceSource code
DefinitionSource code
gen_choiceMixinSource code
{linear U -> V | s}.End Linear1.
Section Linear2.
Context ( : pzRingType) ( : lmodType R) ( : zmodType) ( : GRing.Scale.law R V).
.
instanceSource code
DefinitionSource code
isPointed.Build {linear U -> V | GRing.Scale.Law.sort s} \0.
End Linear2.
Module
ProdNormedZmoduleSource code
.Section ProdNormedZmodule.
Context { : numDomainType} { : normedZmodType R}.
Definition
norm
Source code
( : U * V) : R := Num.max `|x.1| `|x.2|.Source code
Lemma
normDSource code
: norm (x + y) <= norm x + norm y.Proof.
rewrite /norm num_ge_max !(le_trans (ler_normD _ _)) ?lerD//;
by rewrite comparable_le_max ?lexx ?orbT// real_comparable.
Qed.
by rewrite comparable_le_max ?lexx ?orbT// real_comparable.
Qed.
Lemma
norm_eq0Source code
: norm x = 0 -> x = 0.Proof.
Lemma
normMnSource code
: norm (x *+ n) = (norm x) *+ n.Lemma
normrNSource code
: norm (- x) = norm x.#[export]Source code
.
instanceSource code
DefinitionSource code
NumSource code
.Zmodule_isNormed.Build R (U * V)%typenormD norm_eq0 normMn normrN.
Lemma
prod_normESource code
( : U * V) : `|x| = Num.max `|x.1| `|x.2|.Proof.
by []. Qed.
End ProdNormedZmodule.
Module
ExportsSource code
.HB.reexport.
Definition
prod_normE
Used by
Source code
:= @prod_normE.Used by
- mathcomp.analysis.derive
- mathcomp.analysis.normedtype_theory.normed_module
Source code
End Exports.
End ProdNormedZmodule.
Export ProdNormedZmodule.Exports.