Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Iris
stdpp
Commits
5c857c01
Commit
5c857c01
authored
Sep 02, 2017
by
Robbert Krebbers
Browse files
Prefix logical operators on the type class level with TC.
parent
fa6ff9d1
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
)
:
=
|
TC
Or_l
:
P1
→
TC
Or
P1
P2
|
TC
Or_r
:
P2
→
TC
Or
P1
P2
.
Existing
Class
TC
Or
.
Existing
Instance
TC
Or_l
|
9
.
Existing
Instance
TC
Or_r
|
10
.
Inductive
TC
And
(
P1
P2
:
Type
)
:
=
TC
And_intro
:
P1
→
P2
→
TC
And
P1
P2
.
Existing
Class
TC
And
.
Existing
Instance
TC
And_intro
.
Inductive
TC
Unit
:
=
TC
Unit_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
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment