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
431698ad
Commit
431698ad
authored
3 years ago
by
hondet
Browse files
Options
Downloads
Patches
Plain Diff
Replace impd with unicode infix implication
parent
3d0326d4
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
encoding/examples/rat.lp
+1
-1
1 addition, 1 deletion
encoding/examples/rat.lp
encoding/extra/if.lp
+1
-1
1 addition, 1 deletion
encoding/extra/if.lp
encoding/lhol.lp
+2
-2
2 additions, 2 deletions
encoding/lhol.lp
encoding/logical.lp
+3
-4
3 additions, 4 deletions
encoding/logical.lp
with
7 additions
and
8 deletions
encoding/examples/rat.lp
+
1
−
1
View file @
431698ad
...
...
@@ -2,7 +2,7 @@ require open personoj.lhol;
require open personoj.pvs_cert;
// Prelude with some logics operator
symbol ⇒ P Q ≔
impd {P}
(λ _, Q);
symbol ⇒ P Q ≔
P ⇒
(λ _, Q);
// Use a non dependent implication
notation ⇒ infix right 6;
symbol false ≔ ∀ {prop} (λ x, x);
symbol true ≔ false ⇒ false;
...
...
This diff is collapsed.
Click to expand it.
encoding/extra/if.lp
+
1
−
1
View file @
431698ad
...
...
@@ -4,7 +4,7 @@ require open personoj.lhol
personoj.pvs_cert;
symbol false ≔ ∀ {prop} (λ x, x);
symbol true ≔
impd {
false
}
(λ _, false);
symbol true ≔ false
⇒
(λ _, false);
symbol eq {s: Set}: El s → El s → El prop;
symbol = {s} ≔ @eq s;
...
...
This diff is collapsed.
Click to expand it.
encoding/lhol.lp
+
2
−
2
View file @
431698ad
...
...
@@ -11,8 +11,8 @@ rule El prop ↪ Prop;
constant symbol ∀ {x: Set}: (El x → Prop) → Prop;
rule Prf (∀ {$X} $P) ↪ Π x: El $X, Prf ($P x);
constant symbol
impd {x
: Prop
}
: (Prf
x
→ Prop) → Prop;
rule Prf (
impd {$H}
$
P
) ↪ Π h: Prf $
H
, Prf ($
P
h);
constant symbol
⇒ (p
: Prop
)
: (Prf
p
→ Prop) → Prop;
notation ⇒ infix right 2;
rule Prf (
$P ⇒
$
Q
) ↪ Π h: Prf $
P
, Prf ($
Q
h);
constant symbol arrd (x: Set): (El x → Set) → Set;
rule El (arrd $X $T) ↪ Π x: El $X, El ($T x);
...
...
This diff is collapsed.
Click to expand it.
encoding/logical.lp
+
3
−
4
View file @
431698ad
// Definition based on implication
require open personoj.lhol;
symbol ⇒ P Q ≔ impd {P} Q; notation ⇒ infix right 2;
symbol false ≔ ∀ {prop} (λ x, x);
symbol true ≔ false ⇒ (λ _, false);
symbol ¬ P ≔ impd {P} (λ _, false); notation ¬ prefix 5;
symbol false ≔ ∀ {prop} (λ x: El prop, x);
symbol true ≔ false ⇒ (λ _: Prf false, false);
symbol ¬ P ≔ P ⇒ (λ _, false); notation ¬ prefix 5;
symbol ∧ P Q ≔ ¬ (P ⇒ (λ h, ¬ (Q h))); notation ∧ infix 4;
symbol ∨ P Q ≔ (¬ P) ⇒ Q; notation ∨ infix 3;
...
...
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