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
1bbe31fe
There was a problem fetching the pipeline mini graph.
Commit
1bbe31fe
authored
7 years ago
by
Robbert Krebbers
Browse files
Options
Downloads
Patches
Plain Diff
Add Or type class.
parent
88e31976
No related branches found
No related tags found
No related merge requests found
Pipeline
#
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
theories/base.v
+10
-0
10 additions, 0 deletions
theories/base.v
with
10 additions
and
0 deletions
theories/base.v
+
10
−
0
View file @
1bbe31fe
...
@@ -25,6 +25,16 @@ Arguments unseal {_ _} _.
...
@@ -25,6 +25,16 @@ Arguments unseal {_ _} _.
Arguments
seal_eq
{_
_}
_
.
Arguments
seal_eq
{_
_}
_
.
Unset
Primitive
Projections
.
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
(** Throughout this development we use [C_scope] for all general purpose
notations that do not belong to a more specific scope. *)
notations that do not belong to a more specific scope. *)
Delimit
Scope
C_scope
with
C
.
Delimit
Scope
C_scope
with
C
.
...
...
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