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
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Monitor
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
Iris
stdpp
Commits
420bd785
Commit
420bd785
authored
9 months ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
CHANGELOG.
parent
560412f0
No related branches found
No related tags found
1 merge request
!570
Better use of modules / less global polution for strings
Pipeline
#106853
passed
9 months ago
Stage: build
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
CHANGELOG.md
+20
-2
20 additions, 2 deletions
CHANGELOG.md
with
20 additions
and
2 deletions
CHANGELOG.md
+
20
−
2
View file @
420bd785
...
@@ -43,14 +43,26 @@ API-breaking change is listed.
...
@@ -43,14 +43,26 @@ API-breaking change is listed.
strengthened to only require commutativity w.r.t. the operation being
strengthened to only require commutativity w.r.t. the operation being
pulled out of the accumulator, not commutativity of
pulled out of the accumulator, not commutativity of
the folded function itself.
the folded function itself.
-
Add string literal notation "my string" to
`std_scope`
, and no longer globally
open
`string_scope`
.
-
Add lemmas
`Sorted_unique_strong`
and
`StronglySorted_unique_strong`
that only
-
Add lemmas
`Sorted_unique_strong`
and
`StronglySorted_unique_strong`
that only
require anti-symmetry for the elements that are in the list.
require anti-symmetry for the elements that are in the list.
-
Rename
`foldr_cons_permute`
into
`foldr_cons_permute_strong`
and strengthen
-
Rename
`foldr_cons_permute`
into
`foldr_cons_permute_strong`
and strengthen
(a) from function
`f : A → A → A`
to
`f : A → B → B`
, and (b) to only require
(a) from function
`f : A → A → A`
to
`f : A → B → B`
, and (b) to only require
associativity/commutativity for the elements that are in the list.
associativity/commutativity for the elements that are in the list.
-
Rename
`foldr_cons_permute_eq`
into
`foldr_cons_permute`
.
-
Rename
`foldr_cons_permute_eq`
into
`foldr_cons_permute`
.
-
Various improvements to the support of strings:
+
Add string literal notation "my string" to
`std_scope`
, and no longer
globally open
`string_scope`
.
+
Move all definitions and lemmas about strings/ascii into the modules
`String`
/
`Ascii`
, i.e., rename
`string_rev_app`
into
`String.rev_app`
,
`string_rev`
into
`String.rev`
,
`is_nat`
into
`Ascii.is_nat`
,
`is_space`
into
`Ascii.is_space`
and
`words`
into
`String.words`
.
+
The file
`std.strings`
no longer exports the
`String`
module, it only
exports the
`string`
type, its constructors, induction principles, and
notations (in
`string_scope`
). Similar to the number types (
`nat`
,
`N`
,
`Z`
), importing the
`String`
module yourself is discouraged, rather use
`String.function`
and
`String.lemma`
.
+
Add
`String.le`
and some theory about it (decidability, proof irrelevance,
total order).
The following
`sed`
script should perform most of the renaming
The following
`sed`
script should perform most of the renaming
(on macOS, replace
`sed`
by
`gsed`
, installed via e.g.
`brew install gnu-sed`
).
(on macOS, replace
`sed`
by
`gsed`
, installed via e.g.
`brew install gnu-sed`
).
...
@@ -109,6 +121,12 @@ s/\bmap_fold_ind2\b/map_fold_weak_ind/g
...
@@ -109,6 +121,12 @@ s/\bmap_fold_ind2\b/map_fold_weak_ind/g
# foldr_cons_permute
# foldr_cons_permute
s/\bfoldr_cons_permute\b/foldr_cons_permute_strong/g
s/\bfoldr_cons_permute\b/foldr_cons_permute_strong/g
s/\bfoldr_cons_permute_eq\b/foldr_cons_permute/g
s/\bfoldr_cons_permute_eq\b/foldr_cons_permute/g
# strings
s/\bstring_rev_app\b/String.rev_app/g
s/\bstring_rev\b/String.rev/g
s/\bis_nat\b/Ascii.is_nat/g
s/\bis_space\b/Ascii.is_space/g
s/\bwords\b/String.words/g
EOF
EOF
```
```
...
...
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