Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
stdpp
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Arthur Azevedo de Amorim
stdpp
Commits
07d34651
Commit
07d34651
authored
5 years ago
by
Jacques-Henri Jourdan
Browse files
Options
Downloads
Plain Diff
Merge branch 'jh/fix_scopes' into 'master'
Fix Open/Close scope See merge request
!94
parents
c579b46c
a64bf2f0
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
theories/countable.v
+1
-1
1 addition, 1 deletion
theories/countable.v
theories/numbers.v
+7
-7
7 additions, 7 deletions
theories/numbers.v
theories/strings.v
+2
-0
2 additions, 0 deletions
theories/strings.v
with
10 additions
and
8 deletions
theories/countable.v
+
1
−
1
View file @
07d34651
...
@@ -269,7 +269,7 @@ Next Obligation.
...
@@ -269,7 +269,7 @@ Next Obligation.
Qed
.
Qed
.
(** ** Generic trees *)
(** ** Generic trees *)
Close
Scope
positive
.
Local
Close
Scope
positive
.
Inductive
gen_tree
(
T
:
Type
)
:
Type
:=
Inductive
gen_tree
(
T
:
Type
)
:
Type
:=
|
GenLeaf
:
T
→
gen_tree
T
|
GenLeaf
:
T
→
gen_tree
T
...
...
This diff is collapsed.
Click to expand it.
theories/numbers.v
+
7
−
7
View file @
07d34651
...
@@ -7,7 +7,7 @@ From Coq Require Export EqdepFacts PArith NArith ZArith NPeano.
...
@@ -7,7 +7,7 @@ From Coq Require Export EqdepFacts PArith NArith ZArith NPeano.
From
Coq
Require
Import
QArith
Qcanon
.
From
Coq
Require
Import
QArith
Qcanon
.
From
stdpp
Require
Export
base
decidable
option
.
From
stdpp
Require
Export
base
decidable
option
.
Set
Default
Proof
Using
"Type"
.
Set
Default
Proof
Using
"Type"
.
Open
Scope
nat_scope
.
Local
Open
Scope
nat_scope
.
Coercion
Z
.
of_nat
:
nat
>->
Z
.
Coercion
Z
.
of_nat
:
nat
>->
Z
.
Instance
comparison_eq_dec
:
EqDecision
comparison
.
Instance
comparison_eq_dec
:
EqDecision
comparison
.
...
@@ -124,7 +124,7 @@ Definition max_list_with {A} (f : A → nat) : list A → nat :=
...
@@ -124,7 +124,7 @@ Definition max_list_with {A} (f : A → nat) : list A → nat :=
Notation
max_list
:=
(
max_list_with
id
)
.
Notation
max_list
:=
(
max_list_with
id
)
.
(** * Notations and properties of [positive] *)
(** * Notations and properties of [positive] *)
Open
Scope
positive_scope
.
Local
Open
Scope
positive_scope
.
Typeclasses
Opaque
Pos
.
le
.
Typeclasses
Opaque
Pos
.
le
.
Typeclasses
Opaque
Pos
.
lt
.
Typeclasses
Opaque
Pos
.
lt
.
...
@@ -289,7 +289,7 @@ Proof.
...
@@ -289,7 +289,7 @@ Proof.
-
reflexivity
.
-
reflexivity
.
Qed
.
Qed
.
Close
Scope
positive_scope
.
Local
Close
Scope
positive_scope
.
(** * Notations and properties of [N] *)
(** * Notations and properties of [N] *)
Typeclasses
Opaque
N
.
le
.
Typeclasses
Opaque
N
.
le
.
...
@@ -334,7 +334,7 @@ Proof. repeat intro; lia. Qed.
...
@@ -334,7 +334,7 @@ Proof. repeat intro; lia. Qed.
Hint
Extern
0
(_
≤
_)
%
N
=>
reflexivity
:
core
.
Hint
Extern
0
(_
≤
_)
%
N
=>
reflexivity
:
core
.
(** * Notations and properties of [Z] *)
(** * Notations and properties of [Z] *)
Open
Scope
Z_scope
.
Local
Open
Scope
Z_scope
.
Typeclasses
Opaque
Z
.
le
.
Typeclasses
Opaque
Z
.
le
.
Typeclasses
Opaque
Z
.
lt
.
Typeclasses
Opaque
Z
.
lt
.
...
@@ -474,7 +474,7 @@ Lemma Z_succ_pred_induction y (P : Z → Prop) :
...
@@ -474,7 +474,7 @@ Lemma Z_succ_pred_induction y (P : Z → Prop) :
(
∀
x
,
P
x
)
.
(
∀
x
,
P
x
)
.
Proof
.
intros
H0
HS
HP
.
by
apply
(
Z
.
order_induction'
_
_
y
)
.
Qed
.
Proof
.
intros
H0
HS
HP
.
by
apply
(
Z
.
order_induction'
_
_
y
)
.
Qed
.
Close
Scope
Z_scope
.
Local
Close
Scope
Z_scope
.
(** * Injectivity of casts *)
(** * Injectivity of casts *)
Instance
N_of_nat_inj
:
Inj
(
=
)
(
=
)
N
.
of_nat
:=
Nat2N
.
inj
.
Instance
N_of_nat_inj
:
Inj
(
=
)
(
=
)
N
.
of_nat
:=
Nat2N
.
inj
.
...
@@ -488,7 +488,7 @@ Instance Z_of_N_inj: Inj (=) (=) Z.of_N := N2Z.inj.
...
@@ -488,7 +488,7 @@ Instance Z_of_N_inj: Inj (=) (=) Z.of_N := N2Z.inj.
Typeclasses
Opaque
Qcle
.
Typeclasses
Opaque
Qcle
.
Typeclasses
Opaque
Qclt
.
Typeclasses
Opaque
Qclt
.
Open
Scope
Qc_scope
.
Local
Open
Scope
Qc_scope
.
Delimit
Scope
Qc_scope
with
Qc
.
Delimit
Scope
Qc_scope
with
Qc
.
Notation
"1"
:=
(
Q2Qc
1
)
:
Qc_scope
.
Notation
"1"
:=
(
Q2Qc
1
)
:
Qc_scope
.
Notation
"2"
:=
(
1
+
1
)
:
Qc_scope
.
Notation
"2"
:=
(
1
+
1
)
:
Qc_scope
.
...
@@ -648,7 +648,7 @@ Proof.
...
@@ -648,7 +648,7 @@ Proof.
apply
Qc_is_canon
;
simpl
.
apply
Qc_is_canon
;
simpl
.
by
rewrite
!
Qred_correct
,
<-
inject_Z_opp
,
<-
inject_Z_plus
.
by
rewrite
!
Qred_correct
,
<-
inject_Z_opp
,
<-
inject_Z_plus
.
Qed
.
Qed
.
Close
Scope
Qc_scope
.
Local
Close
Scope
Qc_scope
.
(** * Positive rationals *)
(** * Positive rationals *)
(** The theory of positive rationals is very incomplete. We merely provide
(** The theory of positive rationals is very incomplete. We merely provide
...
...
This diff is collapsed.
Click to expand it.
theories/strings.v
+
2
−
0
View file @
07d34651
...
@@ -12,6 +12,8 @@ Notation length := List.length.
...
@@ -12,6 +12,8 @@ Notation length := List.length.
(** * Fix scopes *)
(** * Fix scopes *)
Open
Scope
string_scope
.
Open
Scope
string_scope
.
(* Make sure [list_scope] has priority over [string_scope], so that
the "++" notation designates list concatenation. *)
Open
Scope
list_scope
.
Open
Scope
list_scope
.
Infix
"+:+"
:=
String
.
append
(
at
level
60
,
right
associativity
)
:
stdpp_scope
.
Infix
"+:+"
:=
String
.
append
(
at
level
60
,
right
associativity
)
:
stdpp_scope
.
Arguments
String
.
append
:
simpl
never
.
Arguments
String
.
append
:
simpl
never
.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment