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
a5ccfe2d
Commit
a5ccfe2d
authored
5 years ago
by
gabrielhdt
Browse files
Options
Downloads
Patches
Plain Diff
needs the proof!
parent
7e8e526e
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
adlib/cert_f/subtype.lp
+7
-10
7 additions, 10 deletions
adlib/cert_f/subtype.lp
with
7 additions
and
10 deletions
adlib/cert_f/subtype.lp
+
7
−
10
View file @
a5ccfe2d
...
...
@@ -8,7 +8,8 @@ rule ePsub &A _ ⊑ &A → true
asb ∧
(@forall &A
(λx, imp (&P x)
(&Q (cast &B _ x))))
(&Q (↑ &B _ x))))
// FIXME the rewriting generates a new TCC in the cast
symbol refl eA: Term (eA ⊑ eA)
symbol carrier eA P: Term (ePsub eA P ⊑ eA)
...
...
@@ -16,12 +17,8 @@ symbol carrier eA P: Term (ePsub eA P ⊑ eA)
symbol transitive (eA eB eC: Term uType):
Term (eA ⊑ eB) ⇒ Term (eB ⊑ eC) ⇒ Term (eA ⊑ eC)
symbol restriction (c d: Term uType)
(p: Term c ⇒ Term bool) (q: Term d ⇒ Term bool):
∀ x: Term c, Term (p x) ⇒ Term (q (↑ d _ x))
symbol destruct (c1 c2: Term uType) p1 p2
(ps1: Term (ePsub c1 p1)) (ps2: Term (ePsub c2 p2)):
Term (c1 ⊑ c2) ⇒ ∀x: Term c1, Term (p1 x) ⇒
Term (p2 (↑ c2 _ x)) ⇒
Term (ps1 <| ps2)
symbol destruct {eT eS: Term uType}
(P: Term eT ⇒ Term bool) (Q: Term eS ⇒ Term bool)
(psubt: Term (eT ⊑ eS)): // Proof of eT ⊑ eS
∀ x, Term (P x) ⇒ Term (Q (↑ eS psubt x)) ⇒
Term (ePsub eT P ⊑ ePsub eS Q)
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