Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Iris
stdpp
Commits
1bbe31fe
Commit
1bbe31fe
authored
Aug 08, 2017
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Or type class.
parent
88e31976
Pipeline
#4300
passed with stage
in 2 minutes and 24 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
theories/base.v
theories/base.v
+10
-0
No files found.
theories/base.v
View file @
1bbe31fe
...
...
@@ -25,6 +25,16 @@ Arguments unseal {_ _} _.
Arguments
seal_eq
{
_
_
}
_
.
Unset
Primitive
Projections
.
(* The [Or] class is useful for efficiency: instead of having two instances
[P → Q1 → R] and [P → Q2 → R] we could have one instance [P → Or Q1 Q2 → R],
which avoids the need to derive [P] twice. *)
Inductive
Or
(
P1
P2
:
Type
)
:
=
|
Or_l
:
P1
→
Or
P1
P2
|
Or_r
:
P2
→
Or
P1
P2
.
Existing
Class
Or
.
Existing
Instance
Or_l
|
9
.
Existing
Instance
Or_r
|
10
.
(** Throughout this development we use [C_scope] for all general purpose
notations that do not belong to a more specific scope. *)
Delimit
Scope
C_scope
with
C
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment