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
66664b37
Commit
66664b37
authored
4 years ago
by
Michael Sammler
Browse files
Options
Downloads
Patches
Plain Diff
another try
parent
6c604e56
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!144
Another try at removing strings.length
Pipeline
#26486
passed
4 years ago
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/base.v
+6
-8
6 additions, 8 deletions
theories/base.v
theories/strings.v
+5
-0
5 additions, 0 deletions
theories/strings.v
with
11 additions
and
8 deletions
theories/base.v
+
6
−
8
View file @
66664b37
...
...
@@ -3,19 +3,17 @@ that are used throughout the whole development. Most importantly it contains
abstract interfaces for ordered structures, sets, and various other data
structures. *)
(** The order of this [Require Export] is important: The definition of [length]
in [List] should shadow the definition of [length] in [String]. We also need
to export [Datatypes] because [List] contains a [parsing only] notation for
[length], not the actual definition of [length], which is in [Datatypes]. *)
From
Coq
Require
Export
String
Datatypes
List
.
From
Coq
Require
Export
Morphisms
RelationClasses
Bool
Utf8
Setoid
.
From
Coq
Require
Export
Morphisms
RelationClasses
List
Bool
Utf8
Setoid
.
From
Coq
Require
Import
Permutation
.
Set
Default
Proof
Using
"Type"
.
Export
ListNotations
.
From
Coq
.
Program
Require
Export
Basics
Syntax
.
(** TODO: This hack should be removed once we drop support for Coq 8.10. It is
needed for the transitive export/import bug that is fixed in Coq 8.11. *)
(** This notation is necessary to prevent [length] from being printed
as [strings.length] if strings.v is imported and later base.v. See
also strings.v and
https://gitlab.mpi-sws.org/iris/stdpp/-/merge_requests/144 and
https://gitlab.mpi-sws.org/iris/stdpp/-/merge_requests/129. *)
Notation
length
:=
Datatypes
.
length
.
(** * Enable implicit generalization. *)
...
...
This diff is collapsed.
Click to expand it.
theories/strings.v
+
5
−
0
View file @
66664b37
From
Coq
Require
Import
Ascii
.
From
Coq
Require
Export
String
.
From
stdpp
Require
Export
list
.
From
stdpp
Require
Import
countable
.
Set
Default
Proof
Using
"Type"
.
(* To avoid randomly ending up with String.length because this module is
imported hereditarily somewhere. *)
Notation
length
:=
List
.
length
.
(** * Fix scopes *)
Open
Scope
string_scope
.
(* Make sure [list_scope] has priority over [string_scope], so that
...
...
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