Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
why3
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
Why3
why3
Commits
0ddf15a5
Commit
0ddf15a5
authored
7 years ago
by
Jean-Christophe Filliâtre
Browse files
Options
Downloads
Patches
Plain Diff
doc: updated section 6.6
parent
dce89196
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
doc/syntaxref.tex
+16
-7
16 additions, 7 deletions
doc/syntaxref.tex
with
16 additions
and
7 deletions
doc/syntaxref.tex
+
16
−
7
View file @
0ddf15a5
...
...
@@ -707,20 +707,29 @@ file. If a theory is supposed to be reused from other files, be they
\section
{
The
\why
Standard Library
}
\label
{
sec:library
}
\index
{
standard library
}
\index
{
library
}
The
\why
standard library provides general-purpose
theories and
The
\why
standard library provides general-purpose
modules, to be used in logic and/or programs.
It can be browsed on-line at
\url
{
http://why3.lri.fr/stdlib/
}
.
Each file contains one or several
theories and/or
modules.
To
\texttt
{
use
}
or
\texttt
{
clone
}
a
theory/
module
\texttt
{
T
}
from file
\texttt
{
file
}
, use the syntax
\texttt
{
file.
T
}
, since
\texttt
{
file
}
is
available in
\why
's default load path. For instance, the
theory
of
Each file contains one or several modules.
To
\texttt
{
use
}
or
\texttt
{
clone
}
a module
\texttt
{
M
}
from file
\texttt
{
file
}
, use the syntax
\texttt
{
file.
M
}
, since
\texttt
{
file
}
is
available in
\why
's default load path. For instance, the
module
of
integers and the module of references are imported as follows:
\begin{whycode}
use import int.Int
use import ref.Ref
\end{whycode}
A sub-directory
\texttt
{
mach/
}
provides various modules to model
machine arithmetic.
For instance, the module of 63-bit integers and the module of arrays
indexed by 63-bit integers are imported as follows:
\begin{whycode}
use import mach.int.Int63
use import mach.array.Array63
\end{whycode}
In particular, the types and operations from these modules are mapped
to native OCaml's types and operations when
\why
code is extracted to
OCaml (see Sec.~
\ref
{
sec:extract
}
).
%%% Local Variables:
%%% mode: latex
...
...
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