Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
28ea9c16
Commit
28ea9c16
authored
10 years ago
by
Viktor Kuncak
Browse files
Options
Downloads
Patches
Plain Diff
doc: tutorial wording
parent
cc8371aa
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/tutorial.rst
+20
-10
20 additions, 10 deletions
doc/tutorial.rst
with
20 additions
and
10 deletions
doc/tutorial.rst
+
20
−
10
View file @
28ea9c16
...
@@ -427,17 +427,27 @@ select `Explore` instead of the automated `Search`. You can
...
@@ -427,17 +427,27 @@ select `Explore` instead of the automated `Search`. You can
then navigate the space of programs interactively. Select
then navigate the space of programs interactively. Select
the `Inequality split` between the two input variables. The
the `Inequality split` between the two input variables. The
system will apply this inference rule, and transform the
system will apply this inference rule, and transform the
program with one choose into a program that performs case
program with one
`
choose
`
into a program that performs case
analysis and then performs `choose` in each branch. For
analysis and then performs `choose` in each branch. For
individual branches try to resolve it using the `CEGIS`
individual branches we can try to resolve them using the
rule, which searches for small expressions and tries to find
`CEGIS` synthesis rule, which searches for small expressions
the one that satisfies the specification. Use `Equivalent
and tries to find the one that satisfies the specification.
Inputs` and `Unused Inputs` as needed, since they are
We can use `Equivalent Inputs` and `Unused Inputs` as
generally a good idea to apply. Once all subgoals are
needed, since they are generally a good idea to apply. Once
resolves, select `Import Code`.
all sub-goals are resolved, select `Import Code`. Note
that you can import any of the intermediate steps in exploration:
**Question:** Use interactive exploration to synthesize `sort3` function
the program with `choose` is valid in Leon, and it can even
by performing inequality splits in the interactive interface.
be executed, thanks to run-time constraint solving for the
cases containing `choose`.
**Question:** Use interactive exploration to synthesize
`sort3` function by performing inequality splits in the
interactive interface. Given three variables, you will
need to perform inequality splits on their pairs until
the tuple to be returned is known thanks to the tests
performed in the code. This is a somewhat tedious process,
but relatively easy, and the result is guaranteed to be
correct.
Defining Lists and Their Properties
Defining Lists and Their Properties
-----------------------------------
-----------------------------------
...
...
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