Skip to content

Commit 6f206e0

Browse files
committed
lint
1 parent de0e8e8 commit 6f206e0

6 files changed

Lines changed: 774 additions & 835 deletions

File tree

_CoqProject

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ theories/normedtype_theory/urysohn.v
8888
theories/normedtype_theory/vitali_lemma.v
8989
theories/normedtype_theory/normedtype.v
9090

91-
theories/hahn_banach_theorem.v
91+
theories/functional_analysis/hahn_banach_theorem.v
9292

9393
theories/sequences.v
9494
theories/realfun.v

classical/mathcomp_extra.v

Lines changed: 26 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
(* mathcomp analysis (c) 2026 Inria and AIST. License: CeCILL-C. *)
2+
From HB Require Import structures.
23
From mathcomp Require Import all_ssreflect_compat finmap ssralg ssrnum ssrint.
34

45
(**md**************************************************************************)
@@ -93,10 +94,33 @@ Proof. by case: C => //= /ltW. Qed.
9394
(* MathComp 2.6 additions *)
9495
(**************************)
9596

96-
(* PR in progress: https://github.com/math-comp/math-comp/pull/1515 *)
9797
Lemma intrD1 {R : pzRingType} (i : int) : (i + 1)%:~R = i%:~R + 1 :> R.
9898
Proof. by rewrite intrD. Qed.
9999

100-
(* PR in progress: https://github.com/math-comp/math-comp/pull/1515 *)
101100
Lemma intr1D {R : pzRingType} (i : int) : (1 + i)%:~R = 1 + i%:~R :> R.
102101
Proof. by rewrite intrD. Qed.
102+
103+
Lemma divDl_ge0 (R : numDomainType) (s t : R) (s0 : 0 <= s) (t0 : 0 <= t) :
104+
0 <= s / (s + t).
105+
Proof.
106+
by apply: divr_ge0 => //; apply: addr_ge0.
107+
Qed.
108+
109+
Lemma divDl_le1 (R : numFieldType) (s t : R) (s0 : 0 <= s) (t0 : 0 <= t) :
110+
s / (s + t) <= 1.
111+
Proof.
112+
move: s0; rewrite le0r => /predU1P [->|s0]; first by rewrite mul0r.
113+
by rewrite ler_pdivrMr ?mul1r ?lerDl // ltr_wpDr.
114+
Qed.
115+
116+
HB.mixin Record Zmodule_isSubNormed (R : numDomainType)
117+
(M : normedZmodType R) (S : pred M) T & SubChoice M S T
118+
& Num.NormedZmodule R T := {
119+
norm_valE : forall x , @Num.norm _ M ((val : T -> M) x) = @Num.norm _ T x
120+
}.
121+
122+
#[short(type="subNormedZmodType")]
123+
HB.structure Definition SubNormedZmodule (R : numDomainType)
124+
(V : normedZmodType R) (S : pred V) :=
125+
{ U of SubChoice V S U & Num.NormedZmodule R U & GRing.SubZmodule V S U
126+
& Zmodule_isSubNormed R V S U }.

classical/unstable.v

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -369,6 +369,13 @@ Qed.
369369
Lemma onemV (F : numFieldType) (x : F) : x != 0 -> x^-1.~ = (x - 1) / x.
370370
Proof. by move=> ?; rewrite mulrDl divff// mulN1r. Qed.
371371

372+
Lemma divD_onem (R : realFieldType) (s t : R) (s0 : 0 < s) (t0 : 0 < t) :
373+
(s / (s + t)).~ = t / (s + t).
374+
Proof.
375+
rewrite /onem.
376+
by rewrite -(@divff _ (s + t)) ?gt_eqF ?addr_gt0// -mulrBl (addrC s) addrK.
377+
Qed.
378+
372379
Lemma lez_abs2 (a b : int) : 0 <= a -> a <= b -> (`|a| <= `|b|)%N.
373380
Proof. by case: a => //= n _; case: b. Qed.
374381

theories/Make

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ normedtype_theory/urysohn.v
5555
normedtype_theory/vitali_lemma.v
5656
normedtype_theory/normedtype.v
5757

58-
hahn_banach_theorem.v
58+
functional_analysis/hahn_banach_theorem.v
5959

6060
realfun.v
6161
sequences.v

0 commit comments

Comments
 (0)