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
Jan
stdpp
Commits
a82eb791
Commit
a82eb791
authored
4 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
check for missing 'Hint Mode'
parent
aeb449a7
Branches
ralf/hint-mode-check
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
coq-lint.sh
+7
-0
7 additions, 0 deletions
coq-lint.sh
theories/base.v
+2
-2
2 additions, 2 deletions
theories/base.v
with
9 additions
and
2 deletions
coq-lint.sh
+
7
−
0
View file @
a82eb791
...
...
@@ -10,3 +10,10 @@ if egrep -n '^\s*((Existing\s+|Program\s+)Instance|Arguments|Remove|Hint\s+(Exte
echo
exit
1
fi
for
CLASS
in
$(
egrep
-v
'coq-lint-ignore'
"
$FILE
"
| egrep
'Class +[^ ]+\b'
-o
|
tr
-s
' '
|
cut
-f
2
-d
' '
)
;
do
if
!
egrep
"Global +Hint +Mode +
$CLASS
+"
"
$FILE
"
-q
;
then
echo
"No 'Global Hint Mode' for class '
$CLASS
'"
exit
1
fi
done
This diff is collapsed.
Click to expand it.
theories/base.v
+
2
−
2
View file @
a82eb791
...
...
@@ -98,8 +98,8 @@ Global Arguments tc_opaque {_} _ /.
important to note that we duplicate the definitions, and do not declare the
existing logical operators as type classes. That is, we do not say:
Existing Class or.
Existing Class and.
Existing Class or.
(* coq-lint-ignore *)
Existing Class and.
(* coq-lint-ignore *)
If we could define the existing logical operators as classes, there is no way
of disambiguating whether a premise of a lemma should be solved by type class
...
...
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