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
c3b4c18b
Commit
c3b4c18b
authored
4 years ago
by
gabrielhdt
Browse files
Options
Downloads
Patches
Plain Diff
Introducing pairs
parent
55ab7d64
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
encodings/pairs.lp
+16
-0
16 additions, 0 deletions
encodings/pairs.lp
tests/pairs.lp
+15
-0
15 additions, 0 deletions
tests/pairs.lp
with
31 additions
and
0 deletions
encodings/pairs.lp
0 → 100644
+
16
−
0
View file @
c3b4c18b
require open personoj.encodings.lhol
require open personoj.encodings.pvs_cert
require open personoj.encodings.bool_hol
require open personoj.encodings.tuple
require open personoj.encodings.prenex
set declared "Σ"
constant symbol Σ (t: Set): (η t → Set) → Set
symbol pair_ss {t: Set} {u: η t → Set} (m: η t): η (u m) → η (Σ t u)
symbol fst_ss {t: Set} {u: η t → Set}: η (Σ t u) → η t
symbol snd_ss {t: Set} {u: η t → Set} (m: η (Σ t u)): η (u (fst_ss m))
rule fst_ss (pair_ss $m _) ↪ $m
rule snd_ss (pair_ss _ $n) ↪ $n
This diff is collapsed.
Click to expand it.
tests/pairs.lp
0 → 100644
+
15
−
0
View file @
c3b4c18b
require open personoj.encodings.lhol
require open personoj.encodings.pvs_cert
require open personoj.encodings.deptype
require open personoj.encodings.prenex
require open personoj.encodings.pairs
symbol nat: Set
symbol plus: η ((Σ nat (λ_, nat)) ~> nat)
symbol z: η nat
symbol s: η (nat ~> nat)
set builtin "0" ≔ z
set builtin "+1" ≔ s
assert plus (pair_ss 3 4): η nat
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