Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
personoj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
koizel
personoj
Commits
7c729cb3
Commit
7c729cb3
authored
3 years ago
by
hondet
Browse files
Options
Downloads
Patches
Plain Diff
some notes, pair' constant
parent
3fa48957
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
encoding/lhol.lp
+3
-0
3 additions, 0 deletions
encoding/lhol.lp
encoding/pvs_cert.lp
+6
-6
6 additions, 6 deletions
encoding/pvs_cert.lp
with
9 additions
and
6 deletions
encoding/lhol.lp
+
3
−
0
View file @
7c729cb3
...
...
@@ -2,6 +2,7 @@
constant symbol Set: TYPE;
constant symbol Prop: TYPE;
// WARNING: El and Prf are not injective.
injective symbol El: Set → TYPE;
injective symbol Prf: Prop → TYPE;
...
...
@@ -16,6 +17,8 @@ rule Prf ($P ⇒ $Q) ↪ Π h: Prf $P, Prf ($Q h);
constant symbol arrd (x: Set): (El x → Set) → Set;
rule El (arrd $X $T) ↪ Π x: El $X, El ($T x);
// To have injectivity wrt. El, the above rule may be replaced by
// rule El (arrd $X (\x, $T[x])) ↪ Π y: El $X, El ($T[y]);
constant symbol arr: Set → Set → Set;
rule El (arr $X $Y) ↪ (El $X) → (El $Y);
...
...
This diff is collapsed.
Click to expand it.
encoding/pvs_cert.lp
+
6
−
6
View file @
7c729cb3
...
...
@@ -2,13 +2,13 @@
require open personoj.lhol;
constant symbol psub {x: Set}: (El x → Prop) → Set;
protected symbol pair': Π(
t
: Set) (p: El
t
→ Prop), El
t
→ El (psub p);
symbol fst: Π{
t
: Set} {p: El
t
→ Prop}, El (psub p) → El
t
;
protected
constant
symbol pair': Π(
a
: Set) (p: El
a
→ Prop), El
a
→ El (
@
psub
a
p);
symbol fst: Π{
a
: Set} {p: El
a
→ Prop}, El (
@
psub
a
p) → El
a
;
symbol snd {
t
: Set} {p: El
t
→ Prop} (m: El (psub p)): Prf (p (fst m));
symbol snd {
a
: Set} {p: El
a
→ Prop} (m: El (
@
psub
a
p)): Prf (p (
@
fst
a p
m));
// Proof irrelevance
symbol pair {
t
: Set} {p: El
t
→ Prop} (m: El
t
) (_: Prf (p m))
≔ pair'
t
p m;
symbol pair {
a
: Set} {p: El
a
→ Prop} (m: El
a
) (_: Prf (p m))
≔ pair'
a
p m;
rule fst (pair' _ _ $M) ↪ $M;
rule
@
fst
_ _
(pair' _ _ $M) ↪ $M;
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