Lesson plan
PlusCal
PlusCal (formerly called +CAL) is a formal specification language created by Leslie Lamport, which transpiles to TLA + . In contrast to TLA + 's action-oriented focus on distributed systems, PlusCal most resembles an imperative programming language and is better-suited when specifying sequential algorithms. PlusCal was designed to replace pseudocode, retaining its simplicity while providing a formally defined and verifiable language. A one-bit clock is written in PlusCal as follows: -- fair algorithm OneBitClock { variable clock \in {0, 1}; { while (TRUE) { if (clock = 0) clock := 1 else clock := 0 } } }
Article summary
PlusCal (formerly called +CAL) is a formal specification language created by Leslie Lamport, which transpiles to TLA + . In contrast to TLA + 's action-oriented focus on distributed systems, PlusCal most resembles an imperative programming language and is better-suited when specifying sequential algorithms. PlusCal was designed to replace pseudocode, retaining its simplicity while providing a formally defined and verifiable language. A one-bit clock is written in PlusCal as follows: -- fair algorithm OneBitClock { variable clock \in {0, 1}; { while (TRUE) { if (clock = 0) clock := 1 else clock := 0 } } }
Key claims
No claims recorded.
Discussion questions
- Summarise the article in your own words. Which single claim would you verify first, and why?
- Which claim in this article is most likely to be revised as the sources update? How would you check its current status?
- If two sources disagreed about one of these facts, what would you need in order to trust one over the other?
Bibliography
No sources recorded.
Key claims and bibliography are generated from the same tracked claims and sources as the article page.