Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
stdpp
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
49
Issues
49
List
Boards
Labels
Service Desk
Milestones
Merge Requests
3
Merge Requests
3
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Iris
stdpp
Commits
5c857c01
Commit
5c857c01
authored
Sep 02, 2017
by
Robbert Krebbers
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Prefix logical operators on the type class level with TC.
parent
fa6ff9d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
+14
-14
theories/base.v
theories/base.v
+14
-14
No files found.
theories/base.v
View file @
5c857c01
...
...
@@ -28,20 +28,20 @@ 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
.
Inductive
And
(
P1
P2
:
Type
)
:
=
And_intro
:
P1
→
P2
→
And
P1
P2
.
Existing
Class
And
.
Existing
Instance
And_intro
.
Inductive
Unit
:
=
Unit_intro
:
Unit
.
Existing
Class
Unit
.
Existing
Instance
Unit_intro
.
Inductive
TC
Or
(
P1
P2
:
Type
)
:
=
|
TCOr_l
:
P1
→
TC
Or
P1
P2
|
TCOr_r
:
P2
→
TC
Or
P1
P2
.
Existing
Class
TC
Or
.
Existing
Instance
TC
Or_l
|
9
.
Existing
Instance
TC
Or_r
|
10
.
Inductive
TCAnd
(
P1
P2
:
Type
)
:
=
TCAnd_intro
:
P1
→
P2
→
TC
And
P1
P2
.
Existing
Class
TC
And
.
Existing
Instance
TC
And_intro
.
Inductive
TCUnit
:
=
TCUnit_intro
:
TC
Unit
.
Existing
Class
TC
Unit
.
Existing
Instance
TC
Unit_intro
.
(** Throughout this development we use [C_scope] for all general purpose
notations that do not belong to a more specific scope. *)
...
...
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