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
f654bb4e
Commit
f654bb4e
authored
3 years ago
by
hondet
Browse files
Options
Downloads
Patches
Plain Diff
preserving order in chainprops
parent
9c03c4c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
proofs/chainprops/chainprops.ml
+2
-2
2 additions, 2 deletions
proofs/chainprops/chainprops.ml
proofs/chainprops/chainprops.opam
+1
-0
1 addition, 0 deletions
proofs/chainprops/chainprops.opam
proofs/chainprops/test/run.t
+6
-6
6 additions, 6 deletions
proofs/chainprops/test/run.t
with
9 additions
and
8 deletions
proofs/chainprops/chainprops.ml
+
2
−
2
View file @
f654bb4e
...
...
@@ -70,7 +70,7 @@ let propositions (ast : S.ast) : decl list =
"
Invalid
Dedukti
source
file
:
only
symbol
declarations
are
supported
"
in
Stream.iter (fun c -> props := match_decl c.Pos.elt :: !props) ast;
!props
List.rev
!props
(** [merge imp deps props] transform each proposition of [props] into
implications (the implication is defined by [imp]) from its
...
...
@@ -142,7 +142,7 @@ let cmd =
`Pre "
symbol
tgt
:
P
;
\
nsymbol
hyp0
:
H0
;
\
nsymbol
hyp1
:
H1
;
";
`P "
$
(
b
,
psnj
-
chainprops
foo
.
dep
)
outputs
";
`Pre
"
symbol
hyp
1
:
H
1
;
\
nsymbol
hyp
0
:
H
0
;
\
nsymbol
tgt
:
@
imp
H0
(
@
imp
H1
P
);
";
"
symbol
hyp
0
:
H
0
;
\
nsymbol
hyp
1
:
H
1
;
\
nsymbol
tgt
:
@
imp
H0
(
@
imp
H1
P
);
";
]
in
( Term.(const chainprops $ deps $ imply $ pp_deps),
...
...
This diff is collapsed.
Click to expand it.
proofs/chainprops/chainprops.opam
+
1
−
0
View file @
f654bb4e
...
...
@@ -6,6 +6,7 @@ depends: [
"dune" {>= "2.9"}
"cmdliner"
"angstrom"
"lambdapi"
"odoc" {with-doc}
]
build: [
...
...
This diff is collapsed.
Click to expand it.
proofs/chainprops/test/run.t
+
6
−
6
View file @
f654bb4e
$
../
chainprops
.
exe
example
.
dep
<
example
.
lp
symbol
hyp1:
H1
;
symbol
hyp0:
H0
;
symbol
tgt:
@imp
H0
(
@imp
H1
P
);
symbol
hyp0:
H0
;
symbol
hyp1:
H1
;
$
../
chainprops
.
exe
foo
.
dep
<
foo
.
lp
symbol
nitz:
Nitz
;
symbol
frob:
Frob
;
symbol
baz:
Baz
;
symbol
bar:
@imp
Frob
(
@imp
Nitz
(
@imp
Baz
Bar
));
symbol
foo:
@imp
Bar
(
@imp
Baz
Foo
);
symbol
bar:
@imp
Frob
(
@imp
Nitz
(
@imp
Baz
Bar
));
symbol
baz:
Baz
;
symbol
frob:
Frob
;
symbol
nitz:
Nitz
;
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