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
733dfb48
Commit
733dfb48
authored
5 years ago
by
gabrielhdt
Browse files
Options
Downloads
Patches
Plain Diff
excluded middle and cast transitivity
parent
b9937891
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
prelude/cert_f/logic.lp
+16
-2
16 additions, 2 deletions
prelude/cert_f/logic.lp
with
16 additions
and
2 deletions
prelude/cert_f/logic.lp
+
16
−
2
View file @
733dfb48
require open encodings.cert_f
adlib.cert_f.booleans
require adlib.cert_f.induction as I
require adlib.cert_f.subtype as S
//
// Booleans
...
...
@@ -11,12 +12,17 @@ require adlib.cert_f.induction as I
//
symbol eq {T: Term uType}: Term T ⇒ Term T ⇒ Term uProp
// NOTE not in the prelude
constant symbol cast_trans (A B C: Term uType) (prab: Term (A ⊑ B)) (prbc: Term (B ⊑ C))
(x: Term A):
Term (eq (↑ {B} C prbc (↑ {A} B prab x))
(↑ {A} C (S.trans A B C prab prbc) x))
//
// Notequal
//
definition neq {T: Term uType} (x y: Term T) ≔ bnot (eq x y)
set infix left 6 "/=" ≔ neq
set declared "≠"
set infix left 6 "≠" ≔ neq
//
...
...
@@ -28,12 +34,20 @@ symbol if {T: Term uType} : Term uProp ⇒ Term T ⇒ Term T ⇒ Term T
//
// boolean_props
// Slightly modified from the prelude
// FIXME explicitness required
constant symbol bool_exclusive: Term (@neq bool false true)
constant symbol bool_inclusive A: Term ((@eq bool A false) ∨ (@eq bool A true))
theorem excluded_middle (A: Term bool): Term (A ∨ ¬ A)
proof
admit
refine I.disjunction
(λA, A ∨ (¬ A))
?Ct ?Cf
assume F1 F2
refine F2
assume F1 F2
refine F1 F2
qed
//
// xor_def
...
...
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