diff --git a/examples/c++/example.cpp b/examples/c++/example.cpp
index 05018df10..0e2cab37e 100644
--- a/examples/c++/example.cpp
+++ b/examples/c++/example.cpp
@@ -570,7 +570,7 @@ void tactic_example3() {
- 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.
- repeat(t) Keep applying the given tactic until no subgoal is modified by it.
- repeat(t, n) Keep applying the given tactic until no subgoal is modified by it, or the number of iterations is greater than n.
- - try_for(t, ms) Apply tactic t to the input goal, if it does not return in ms millisenconds, it fails.
+ - try_for(t, ms) Apply tactic t to the input goal, if it does not return in ms milliseconds, it fails.
- with(t, params) Apply the given tactic using the given parameters.
*/
std::cout << "tactic example 3\n";
diff --git a/examples/python/hamiltonian/hamiltonian.py b/examples/python/hamiltonian/hamiltonian.py
index 350205a65..6906ee477 100644
--- a/examples/python/hamiltonian/hamiltonian.py
+++ b/examples/python/hamiltonian/hamiltonian.py
@@ -64,7 +64,7 @@ def examples():
print(sdodec.model())
# =======================================================
# See http://en.wikipedia.org/wiki/Hamiltonian_path for the Herschel graph
- # being the smallest possible polyhdral graph that does not have a Hamiltonian
+ # being the smallest possible polyhedral graph that does not have a Hamiltonian
# cycle.
#
grherschel = { 0: [1, 9, 10, 7],
diff --git a/examples/python/mus/mss.py b/examples/python/mus/mss.py
index c7b44c8a4..9156c3095 100644
--- a/examples/python/mus/mss.py
+++ b/examples/python/mus/mss.py
@@ -118,11 +118,11 @@ class MSSSolver:
# Given a current satisfiable state
# Extract an MSS, and ensure that currently
- # encoutered cores are avoided in next iterations
+ # encountered cores are avoided in next iterations
# by weakening the set of literals that are
# examined in next iterations.
# Strengthen the solver state by enforcing that
- # an element from the MCS is encoutered.
+ # an element from the MCS is encountered.
def grow(self):
self.mss = []
diff --git a/examples/python/rc2.py b/examples/python/rc2.py
index 1a07b3bf2..c4e811eb1 100644
--- a/examples/python/rc2.py
+++ b/examples/python/rc2.py
@@ -74,7 +74,7 @@ class RC2:
def get_cost(self):
return sum(self.Ws0[c] for c in self.Ws0 if not tt(self.solver, c))
- # Retrieve independendent cores from Ws
+ # Retrieve independent cores from Ws
def get_cores(self, Ws):
cores = []
while unsat == self.check(Ws):
diff --git a/examples/python/socrates.py b/examples/python/socrates.py
index 8d44b41ea..bd7c1f7c4 100644
--- a/examples/python/socrates.py
+++ b/examples/python/socrates.py
@@ -26,7 +26,7 @@ axioms = [ForAll([x], Implies(Human(x), Mortal(x))),
s = Solver()
s.add(axioms)
-print(s.check()) # prints sat so axioms are coherents
+print(s.check()) # prints sat so axioms are coherent
# classical refutation
s.add(Not(Mortal(socrates)))
diff --git a/examples/python/tutorial/html/advanced-examples.htm b/examples/python/tutorial/html/advanced-examples.htm
index e578aade8..d154461b2 100644
--- a/examples/python/tutorial/html/advanced-examples.htm
+++ b/examples/python/tutorial/html/advanced-examples.htm
@@ -505,7 +505,7 @@ 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.
+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.
@@ -603,7 +603,7 @@ Z3 fails to show that the formula is unsatisfiable.