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
6c54a423
There was a problem fetching the pipeline mini graph.
Commit
6c54a423
authored
7 years ago
by
Ralf Jung
Browse files
Options
Downloads
Patches
Plain Diff
coqdocify some comments
parent
93b4ec70
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
theories/base.v
+4
-4
4 additions, 4 deletions
theories/base.v
theories/tactics.v
+8
-9
8 additions, 9 deletions
theories/tactics.v
with
12 additions
and
13 deletions
theories/base.v
+
4
−
4
View file @
6c54a423
...
...
@@ -10,8 +10,8 @@ Set Default Proof Using "Type".
Export
ListNotations
.
From
Coq
.
Program
Require
Export
Basics
Syntax
.
(** Enable implicit generalization. *)
(* This option enables implicit generalization in arguments of the form
(**
*
Enable implicit generalization. *)
(*
*
This option enables implicit generalization in arguments of the form
`{...} (i.e., anonymous arguments). Unfortunately, it also enables
implicit generalization in `Instance`. We think that the fact taht both
behaviors are coupled together is a [bug in
...
...
@@ -63,13 +63,13 @@ Class NoBackTrack (P : Prop) := { no_backtrack : P }.
Hint
Extern
0
(
NoBackTrack
_)
=>
constructor
;
apply
_
:
typeclass_instances
.
(** * Typeclass opaque definitions *)
(* The constant [tc_opaque] is used to make definitions opaque for just type
(*
*
The constant [tc_opaque] is used to make definitions opaque for just type
class search. Note that [simpl] is set up to always unfold [tc_opaque]. *)
Definition
tc_opaque
{
A
}
(
x
:
A
)
:
A
:=
x
.
Typeclasses
Opaque
tc_opaque
.
Arguments
tc_opaque
{_}
_
/.
(* Below we define type class versions of the common logical operators. It is
(*
*
Below we define type class versions of the common logical operators. It is
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:
...
...
This diff is collapsed.
Click to expand it.
theories/tactics.v
+
8
−
9
View file @
6c54a423
...
...
@@ -35,11 +35,10 @@ is rather efficient when having big hint databases, or expensive [Hint Extern]
declarations as the ones above. *)
Tactic
Notation
"intuition"
:=
intuition
auto
.
(* [done] can get slow as it calls "trivial". [fast_done] can solve way less
goals, but it will also always finish quickly.
We do 'reflexivity' last because for goals of the form ?x = y, if
we have x = y in the context, we will typically want to use the
assumption and not reflexivity *)
(** [done] can get slow as it calls "trivial". [fast_done] can solve way less
goals, but it will also always finish quickly. We do 'reflexivity' last because
for goals of the form ?x = y, if we have x = y in the context, we will typically
want to use the assumption and not reflexivity *)
Ltac
fast_done
:=
solve
[
eassumption
...
...
@@ -321,7 +320,7 @@ Ltac f_equiv :=
try
simple
apply
reflexivity
.
Tactic
Notation
"f_equiv"
"/="
:=
csimpl
in
*
;
f_equiv
.
(* The tactic [solve_proper_unfold] unfolds the first head symbol, so that
(*
*
The tactic [solve_proper_unfold] unfolds the first head symbol, so that
we proceed by repeatedly using [f_equiv]. *)
Ltac
solve_proper_unfold
:=
(* Try unfolding the head symbol, which is the one we are proving a new property about *)
...
...
@@ -335,9 +334,9 @@ Ltac solve_proper_unfold :=
|
|
-
?R
(
?f
_
_)
(
?f
_
_)
=>
unfold
f
|
|
-
?R
(
?f
_)
(
?f
_)
=>
unfold
f
end
.
(* [solve_proper_prepare] does some preparation work before the main
[solve_proper] loop. Having this as a separate tactic is useful for
debugging
[solve_proper] failure. *)
(*
*
[solve_proper_prepare] does some preparation work before the main
[solve_proper] loop. Having this as a separate tactic is useful for
debugging
[solve_proper] failure. *)
Ltac
solve_proper_prepare
:=
(* Introduce everything *)
intros
;
...
...
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