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
b2035631
Commit
b2035631
authored
5 years ago
by
gabrielhdt
Browse files
Options
Downloads
Patches
Plain Diff
misc
parent
fcd7b825
No related branches found
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
adlib/subtype.lp
+1
-1
1 addition, 1 deletion
adlib/subtype.lp
prelude/logic.lp
+2
-2
2 additions, 2 deletions
prelude/logic.lp
sandbox/nat.lp
+14
-2
14 additions, 2 deletions
sandbox/nat.lp
sandbox/rat.lp
+0
-2
0 additions, 2 deletions
sandbox/rat.lp
with
17 additions
and
7 deletions
adlib/subtype.lp
+
1
−
1
View file @
b2035631
require open personoj.encodings.cert_f
personoj.adlib.bootstrap
personoj.adlib.bootstrap
// A la rewriting logic
rule Psub {&A} _ ⊑ &A → true
...
...
This diff is collapsed.
Click to expand it.
prelude/logic.lp
+
2
−
2
View file @
b2035631
...
...
@@ -106,10 +106,10 @@ symbol reflexivity_of_equal T (x: Term T) : Term (eq x x)
// set builtin "refl" ≔ reflexivity_of_equal
symbol transitivity_of_equal T (x y z: Term T) :
Term ((
eq x
y) ∧ (
eq y
z)) ⇒ Term (eq x z)
Term ((
x =
y) ∧ (
y =
z)) ⇒ Term (eq x z)
symbol symmetry_of_equal T (x y: Term T):
Term (
eq x
y) ⇒ Term (
eq y
x)
Term (
x =
y) ⇒ Term (
y =
x)
//
// if_props
...
...
This diff is collapsed.
Click to expand it.
sandbox/nat.lp
+
14
−
2
View file @
b2035631
...
...
@@ -62,7 +62,10 @@ qed
symbol surjective_pairing T (p: Term T ⇒ Term bool):
∀x: Term (Psub p), Term (pair p (fst x) (snd x) = x)
theorem prf_irrelevance: ∀x y: Term Even, Term (fst x = fst y) ⇒ Term (x = y)
//symbol app_thm (D R: Term uType) (f: Term (D ~> R))
// : ∀x y: Term D, Term (x = y) ⇒ Term (f x = f y)
theorem fst_injective: ∀x y: Term Even, Term (fst x = fst y) ⇒ Term (x = y)
proof
assume x y h
refine transitivity_of_equal Even x (pair even (fst x) (snd x)) y _
...
...
@@ -79,5 +82,14 @@ proof
focus 1
refine surjective_pairing _ even y
simpl //FIXME
abort
rule &x = &x → true
theorem prf_irrelevance T (p: Term T ⇒ Term bool)
: ∀(x: Term T) (pr: Term (p x)) (pr': Term (p x)), Term (pair p x pr = pair p x pr')
proof
assume T p x pr0 pr1
simpl
assume h
refine h
qed
This diff is collapsed.
Click to expand it.
sandbox/rat.lp
+
0
−
2
View file @
b2035631
...
...
@@ -16,8 +16,6 @@ set infix 8 "/" ≔ rat
symbol times : Term Rat ⇒ Term Rat ⇒ Term Rat
type λx: Term N.Nznat, fst x
rule times (rat &a &b) (rat &c &d) →
let bv ≔ fst &b in
let dv ≔ fst &d in
...
...
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