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
f84a48c8
Commit
f84a48c8
authored
5 years ago
by
gabrielhdt
Browse files
Options
Downloads
Patches
Plain Diff
fix in subtype, infix functions
parent
69893807
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
adlib/cert_f/subtype.lp
+1
-1
1 addition, 1 deletion
adlib/cert_f/subtype.lp
prelude/cert_f/functions.lp
+3
-3
3 additions, 3 deletions
prelude/cert_f/functions.lp
with
4 additions
and
4 deletions
adlib/cert_f/subtype.lp
+
1
−
1
View file @
f84a48c8
...
...
@@ -12,7 +12,7 @@ set flag "print_implicits" on
symbol eqroot: Term uType ⇒ Term uType ⇒ Term uProp
rule eqroot &X &X → true // NOTE: non linear
and eqroot (Psub {&T} _) &U → eqroot &T &U
and eqroot &T (Psub &U _) → eqroot &T &U
and eqroot &T (Psub
{
&U
}
_) → eqroot &T &U
symbol eqtype: Term uType ⇒ Term uType ⇒ Term uProp
...
...
This diff is collapsed.
Click to expand it.
prelude/cert_f/functions.lp
+
3
−
3
View file @
f84a48c8
...
...
@@ -9,11 +9,11 @@ definition arrow (D R: Term uType) ≔ prod D (λ_, R)
// functions [D, R: TYPE]
//
definition {|injective?|} {D
: Term uType} {R:Term uType
} (f: Term (arrow D R))
≔ forall (λx1, forall (λx2, imp
(eq
(f x1
) (
f x2)
)
(
eq
x1 x2)))
definition {|injective?|} {D
} {R
} (f: Term (arrow D R))
≔ forall (λx1, forall (λx2, imp (f x1
=
f x2) (x1
=
x2)))
definition {|surjective?|} {D: Term uType} {R: Term uType} (f: Term (arrow D R))
≔ forall (λy, ∃ (λx,
eq
(f x) y))
≔ forall (λy, ∃ (λx, (f x)
=
y))
definition {|bijective?|} {D: Term uType} {R: Term uType} (f: Term (arrow D R))
≔ ({|injective?|} f) ∧ ({|surjective?|} f)
...
...
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