Skip to content

Commit

Permalink
two fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
konnov committed Dec 17, 2024
1 parent 7c99adf commit 8ca7da7
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
8 changes: 8 additions & 0 deletions reports/ref.bib
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,14 @@ @misc{tla-examples
note = {Accessed: 2024-10-25}
}

@misc{tla-paxos,
title = { {TLA}$^+$ specification of {Paxos} },
author = { Leslie Lamport },
howpublished = {\url{https://github.com/tlaplus/Examples/blob/master/specifications/Paxos/Paxos.tla}},
year = 2024,
note = {Accessed: 2024-12-17}
}

@article{DBLP:journals/lmcs/BansalBRT18,
author = {Kshitij Bansal and
Clark W. Barrett and
Expand Down
7 changes: 2 additions & 5 deletions reports/spec4b.tex
Original file line number Diff line number Diff line change
Expand Up @@ -37,18 +37,15 @@ \subsection{Constraints over set cardinalities}
\cdot T + 1$ set elements to show that Equation~(\ref{eq:card-comparison2})
holds true. This gives us a linear number of constraints, instead of a
quadratic one. For example, when $T=1$ and the set may contain up to~$n$
elements, the model checker produces $3 \cdot O(n)$ constraints to check
elements, the model checker produces $O(n)$ constraints to check
Equation~(\ref{eq:card-comparison2}). A similar optimization is used in the
specification of Tendermint~\cite{TendermintSpec2020}.

\subsection{Quorum sets}

To further optimize the constraints over set cardinalities, we have applied the
well-known pattern of replacing cardinality tests with quorum sets. For
example, this approach is used in the specification of Paxos\footnote{%
\tlap{} specification of Paxos:
\url{https://github.com/tlaplus/Examples/blob/master/specifications/Paxos/Paxos.tla}.}

example, this approach is used in the specification of Paxos~\cite{tla-paxos}.
To this end, we introduce quorum sets such as in Figure~\ref{fig:quorum-sets}.

\begin{figure}[!h]
Expand Down

0 comments on commit 8ca7da7

Please sign in to comment.