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
79d33509
Commit
79d33509
authored
4 years ago
by
gabrielhdt
Browse files
Options
Downloads
Patches
Plain Diff
ad hoc poly, equality
parent
76758785
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
encodings/ad_hoc.lp
+7
-0
7 additions, 0 deletions
encodings/ad_hoc.lp
encodings/equality.lp
+7
-0
7 additions, 0 deletions
encodings/equality.lp
encodings/lhol.lp
+3
-0
3 additions, 0 deletions
encodings/lhol.lp
encodings/subtype.lp
+2
-0
2 additions, 0 deletions
encodings/subtype.lp
with
19 additions
and
0 deletions
encodings/ad_hoc.lp
0 → 100644
+
7
−
0
View file @
79d33509
require open personoj.encodings.lhol
personoj.encodings.pvs_cert
personoj.encodings.subtype
personoj.encodings.equality
symbol forall_sub: Set ⇒ (Set ⇒ Set) ⇒ Set
rule η (forall_sub &T &C) → ∀U: Set, ε (U ⊑ &T) ⇒ η (&C U)
This diff is collapsed.
Click to expand it.
encodings/equality.lp
0 → 100644
+
7
−
0
View file @
79d33509
require open personoj.encodings.lhol
symbol equal {T: Set}: η T ⇒ η T ⇒ Bool
set infix left 6 "=" ≔ equal
set builtin "T" ≔ η
set builtin "P" ≔ ε
set builtin "eq" ≔ equal
This diff is collapsed.
Click to expand it.
encodings/lhol.lp
+
3
−
0
View file @
79d33509
...
...
@@ -27,3 +27,6 @@ rule ε (forall {&X} &P) → ∀x: η &X, ε (&P x)
symbol arr: Set ⇒ Set ⇒ Set
rule η (arr &X &Y) → (η &X) ⇒ (η &Y)
set infix right 6 "~>" ≔ arr
set builtin "T" ≔ η
set builtin "P" ≔ ε
This diff is collapsed.
Click to expand it.
encodings/subtype.lp
+
2
−
0
View file @
79d33509
...
...
@@ -13,6 +13,8 @@ symbol Arr (t u1 u2: Set): ε (u1 ⊑ u2) ⇒ ε ((t ~> u1) ⊑ (t ~> u2))
symbol Darr (d: Set) (r1: η d ⇒ Set) (r2: η d ⇒ Set)
: ε (forall (λx, (r1 x) ⊑ (r2 x))) ⇒ ε ((arrd r1) ⊑ (arrd r2))
symbol upcast {A: Set} {B: Set}: ε (A ⊑ B) ⇒ η A ⇒ η B
symbol root: Set ⇒ Set
rule root (psub {&T} _) → root &T
...
...
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