Skip to content

Commit 0edd587

Browse files
waywardmonkeysNikolajBjorner
authored andcommitted
Fix typos in examples.
1 parent ec5b148 commit 0edd587

File tree

9 files changed

+12
-12
lines changed

9 files changed

+12
-12
lines changed

examples/c++/example.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -570,7 +570,7 @@ void tactic_example3() {
570570
- The choice combinator t | s first applies t to the given goal, if it fails then returns the result of s applied to the given goal.
571571
- repeat(t) Keep applying the given tactic until no subgoal is modified by it.
572572
- repeat(t, n) Keep applying the given tactic until no subgoal is modified by it, or the number of iterations is greater than n.
573-
- try_for(t, ms) Apply tactic t to the input goal, if it does not return in ms millisenconds, it fails.
573+
- try_for(t, ms) Apply tactic t to the input goal, if it does not return in ms milliseconds, it fails.
574574
- with(t, params) Apply the given tactic using the given parameters.
575575
*/
576576
std::cout << "tactic example 3\n";

examples/python/hamiltonian/hamiltonian.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ def examples():
6464
print(sdodec.model())
6565
# =======================================================
6666
# See http://en.wikipedia.org/wiki/Hamiltonian_path for the Herschel graph
67-
# being the smallest possible polyhdral graph that does not have a Hamiltonian
67+
# being the smallest possible polyhedral graph that does not have a Hamiltonian
6868
# cycle.
6969
#
7070
grherschel = { 0: [1, 9, 10, 7],

examples/python/mus/mss.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,11 @@ def resolve_core(self, core):
118118

119119
# Given a current satisfiable state
120120
# Extract an MSS, and ensure that currently
121-
# encoutered cores are avoided in next iterations
121+
# encountered cores are avoided in next iterations
122122
# by weakening the set of literals that are
123123
# examined in next iterations.
124124
# Strengthen the solver state by enforcing that
125-
# an element from the MCS is encoutered.
125+
# an element from the MCS is encountered.
126126

127127
def grow(self):
128128
self.mss = []

examples/python/rc2.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def compare(fw):
7474
def get_cost(self):
7575
return sum(self.Ws0[c] for c in self.Ws0 if not tt(self.solver, c))
7676

77-
# Retrieve independendent cores from Ws
77+
# Retrieve independent cores from Ws
7878
def get_cores(self, Ws):
7979
cores = []
8080
while unsat == self.check(Ws):

examples/python/socrates.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
s = Solver()
2727
s.add(axioms)
2828

29-
print(s.check()) # prints sat so axioms are coherents
29+
print(s.check()) # prints sat so axioms are coherent
3030

3131
# classical refutation
3232
s.add(Not(Mortal(socrates)))

examples/python/tutorial/html/advanced-examples.htm

+2-2
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ <h2>Quantifiers</h2>
505505
This is a "trick" for simplifying the construction of quantified
506506
formulas in Z3Py. Internally, these constants are replaced by
507507
bounded variables. The next example demonstrates that. The method
508-
<tt>body()</tt> retrives the quantified expression.
508+
<tt>body()</tt> retrieves the quantified expression.
509509
In the resultant formula the bounded variables are free.
510510
The function <tt>Var(index, sort)</tt> creates a bounded/free variable
511511
with the given index and sort.
@@ -603,7 +603,7 @@ <h3>Patterns</h3>
603603
</body></html></example>
604604

605605
<p>When the more permissive pattern <tt>g(x)</tt> is used. Z3 proves the formula
606-
to be unsatisfiable. More restrive patterns minimize the number of
606+
to be unsatisfiable. More restrictive patterns minimize the number of
607607
instantiations (and potentially improve performance), but they may
608608
also make Z3 "less complete".
609609
</p>

examples/python/tutorial/html/strategies-examples.htm

+1-1
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ <h2>Tactics</h2>
118118
the number of iterations is greater than <tt>n</tt>.
119119
</li>
120120
<li> <tt>TryFor(t, ms)</tt> Apply tactic <tt>t</tt> to the input goal, if it does not return in
121-
<tt>ms</tt> millisenconds, it fails.
121+
<tt>ms</tt> milliseconds, it fails.
122122
</li>
123123
<li> <tt>With(t, params)</tt> Apply the given tactic using the given parameters.
124124
</li>

examples/python/tutorial/jupyter/advanced.ipynb

+2-2
Original file line numberDiff line numberDiff line change
@@ -527,7 +527,7 @@
527527
"source": [
528528
"Nevertheless, Z3 is often able to handle formulas involving quantifiers. It uses several approaches to handle quantifiers. The most prolific approach is using pattern-based quantifier instantiation. This approach allows instantiating quantified formulas with ground terms that appear in the current search context based on pattern annotations on quantifiers. Z3 also contains a model-based quantifier instantiation component that uses a model construction to find good terms to instantiate quantifiers with; and Z3 also handles many decidable fragments.\n",
529529
"\n",
530-
"Note that in the previous example the constants x and y were used to create quantified formulas. This is a \"trick\" for simplifying the construction of quantified formulas in Z3Py. Internally, these constants are replaced by bounded variables. The next example demonstrates that. The method body() retrives the quantified expression. In the resultant formula the bounded variables are free. The function Var(index, sort) creates a bounded/free variable with the given index and sort."
530+
"Note that in the previous example the constants x and y were used to create quantified formulas. This is a \"trick\" for simplifying the construction of quantified formulas in Z3Py. Internally, these constants are replaced by bounded variables. The next example demonstrates that. The method body() retrieves the quantified expression. In the resultant formula the bounded variables are free. The function Var(index, sort) creates a bounded/free variable with the given index and sort."
531531
]
532532
},
533533
{
@@ -626,7 +626,7 @@
626626
"cell_type": "markdown",
627627
"metadata": {},
628628
"source": [
629-
"When the more permissive pattern g(x) is used. Z3 proves the formula to be unsatisfiable. More restrive patterns minimize the number of instantiations (and potentially improve performance), but they may also make Z3 \"less complete\"."
629+
"When the more permissive pattern g(x) is used. Z3 proves the formula to be unsatisfiable. More restrictive patterns minimize the number of instantiations (and potentially improve performance), but they may also make Z3 \"less complete\"."
630630
]
631631
},
632632
{

examples/python/tutorial/jupyter/strategies.ipynb

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
{
3434
"metadata": {},
3535
"cell_type": "markdown",
36-
"source": "Tactics\nZ3 comes equipped with many built-in tactics. The command describe_tactics() provides a short description of all built-in tactics.\n\n describe_tactics()\nZ3Py comes equipped with the following tactic combinators (aka tacticals):\n\n* Then(t, s) applies t to the input goal and s to every subgoal produced by t.\n* OrElse(t, s) first applies t to the given goal, if it fails then returns the result of s applied to the given goal.\n* Repeat(t) Keep applying the given tactic until no subgoal is modified by it.\n* Repeat(t, n) Keep applying the given tactic until no subgoal is modified by it, or the number of iterations is greater than n.\n* TryFor(t, ms) Apply tactic t to the input goal, if it does not return in ms millisenconds, it fails.\n* With(t, params) Apply the given tactic using the given parameters.\n\nThe following example demonstrate how to use these combinators."
36+
"source": "Tactics\nZ3 comes equipped with many built-in tactics. The command describe_tactics() provides a short description of all built-in tactics.\n\n describe_tactics()\nZ3Py comes equipped with the following tactic combinators (aka tacticals):\n\n* Then(t, s) applies t to the input goal and s to every subgoal produced by t.\n* OrElse(t, s) first applies t to the given goal, if it fails then returns the result of s applied to the given goal.\n* Repeat(t) Keep applying the given tactic until no subgoal is modified by it.\n* Repeat(t, n) Keep applying the given tactic until no subgoal is modified by it, or the number of iterations is greater than n.\n* TryFor(t, ms) Apply tactic t to the input goal, if it does not return in ms milliseconds, it fails.\n* With(t, params) Apply the given tactic using the given parameters.\n\nThe following example demonstrate how to use these combinators."
3737
},
3838
{
3939
"metadata": {

0 commit comments

Comments
 (0)