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
88d56a02
Commit
88d56a02
authored
4 years ago
by
gabrielhdt
Browse files
Options
Downloads
Patches
Plain Diff
pred as a definition, nothing more
parent
ecfe02b1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
prelude/logic.lp
+7
-9
7 additions, 9 deletions
prelude/logic.lp
with
7 additions
and
9 deletions
prelude/logic.lp
+
7
−
9
View file @
88d56a02
...
...
@@ -29,9 +29,8 @@ require open personoj.encodings.builtins
// boolean_props
// Slightly modified from the prelude
constant symbol bool_exclusive: ε (neq {bool} false true)
constant
symbol bool_inclusive
: ε (∀ {bool} (λa, ((eq {bool} a false) ∨ (λ_, eq {bool} a true))))
constant symbol bool_inclusive:
ε (∀ {bool} (λa, ((eq {bool} a false) ∨ (λ_, eq {bool} a true))))
theorem excluded_middle: ε (∀ {bool} (λa, a ∨ (λ_, ¬ a)))
proof
...
...
@@ -46,9 +45,9 @@ definition xor (a b: η bool) ≔ neq {bool} a b
// PVS solves that kind of things thanks to the (bddsimp) tactic which uses an
// external C program
theorem xor_def
:
ε (∀ {bool} (λa, ∀ {bool} (λb, eq {bool} (xor a b)
(if {bool} a (λ_, ¬ b) (λ_, b)))))
theorem xor_def
:
ε (∀ {bool} (λa, ∀ {bool} (λb, eq {bool} (xor a b)
(if {bool} a (λ_, ¬ b) (λ_, b)))))
proof
set prover "Alt-Ergo"
set prover_timeout 12
...
...
@@ -61,9 +60,8 @@ admit
//
// Defined types
//
// FIXME: needs another prenex polymorphism to be encoded,
require open personoj.encodings.pvs_more
definition pred : ι ({|set|} *> {|set|}) ≔ λt: θ {|set|}, t ~> bool
// NOTE ‘pred’ cannot be typed in the encoding
definition pred (t: θ {|set|}) ≔ t ~> bool
definition PRED ≔ pred
definition predicate ≔ pred
definition PREDICATE ≔ pred
...
...
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