Skip to content

Zhou Chaochen and Duration Calculus

Abstract

Zhou Chaochen (周巢尘, born 1937) is a Chinese computer scientist who spent much of his career between Beijing, Oxford, Lyngby, and Macau. In 1981, as a visitor in Tony Hoare’s group at Oxford, he co-wrote one of the first proof systems for Hoare’s Communicating Sequential Processes. A decade later, with Hoare and the Danish computer scientist Anders P. Ravn, he introduced the Duration Calculus, an interval logic that lets an engineer state how long a system may spend in a state, such as how many seconds a gas burner may leak, and prove a design meets that bound. He was director of the United Nations University’s software institute in Macau from 1997 to 2002.

UNU IIST Macau
The United Nations University building on Guia Hill in Macau, home of UNU-IIST, 2024. Image: LN9267, CC BY-SA 4.0, via Wikimedia Commons.

Beijing

Zhou was born in Shanghai on 1 November 1937. He graduated from the Department of Mathematics and Mechanics of Peking University in 1958 and completed graduate studies at the Institute of Computing Technology of the Chinese Academy of Sciences in 1967, under the logician Hu Shihua (胡世华). Mathematical logic, which he learned there, stayed the tool of his working life.

Oxford, 1981

By 1981 Zhou was working at the Programming Research Group in Oxford, where Tony Hoare had published Communicating Sequential Processes (CSP) in 1978, a notation for programs made of parallel processes that talk to each other over channels. The notation said how such programs behave. It did not yet say how to prove anything about them.

Zhou and Hoare supplied a first answer: a set of inference rules for proving partial correctness of communicating processes, together with a denotational semantics showing that the rules were sound. Their paper was presented at the Second International Conference on Distributed Computing Systems in Paris on 8 April 1981. A companion paper, given at a workshop at Teddington on 28 May 1981, applied the method to communication protocols and worked through the HDLC data-link protocol level by level. Both carry Zhou’s double affiliation, Oxford and the Institute of Computing Technology in Peking, and both appeared that May as Oxford technical monograph PRG-20. The China Computer Federation later counted this compositional verification method for distributed systems among his main results. Back in Beijing, his work on distributed programming earned a second-class National Natural Science Award in 1987, and from June 1986 he was a research professor at the Academy’s Institute of Software.

Lyngby

In 1981 the Danish computer scientist Dines Bjørner gave a three-week lecture tour at the Institute of Computing Technology. Hoare had told him to look out for a young researcher named Zhou, and Bjørner carried an invitation letter for him in his pocket. On the first day, seated in a row of armchairs at the official reception, he asked where Zhou could be found. The answer was that Zhou was sitting next to him.

Through the 1980s Zhou spent three months every other winter at the Technical University of Denmark in Lyngby. For the 1989 visit Bjørner had arranged for him to bring his family, three months in Lyngby and three in Oxford. The events in Beijing in early June put the plan in doubt, but the family arrived on 1 July. Bjørner then telephoned Hoare from his office with Zhou beside him and announced a three-year appointment he had not actually offered yet: eight months a year in Lyngby, four in Oxford. Hoare replied that he had pictured it the other way around. Zhou chose Bjørner’s version. His wife Zhang Yiping and their children lived in Oxford, and Zhou commuted.

The Duration Calculus

The setting was ProCoS (“Provably Correct Systems”), a European ESPRIT basic research project that ran from May 1989 to February 1992, coordinated from Lyngby, with partners including Oxford and Kiel. At a ProCoS meeting in Viborg, the Danish engineer E. V. Sørensen gave a talk on signal transitions in electrical circuits that mentioned the idea of a duration. Bjørner remembered afterwards finding Zhou, Ravn, and Hoare in an adjacent room, standing at a whiteboard.

The result was “A calculus of durations,” published by Zhou, Hoare, and Ravn in Information Processing Letters in December 1991. The calculus treats time as the real numbers and each state of a system as a Boolean function of time. Its basic term is the integral of a state over an interval, written ∫S, which measures how long S was true during that interval; ℓ stands for the length of the interval itself. Formulas are built on interval temporal logic, so a requirement can say something about every interval of a given kind. The China Computer Federation’s citation describes it as the first time the integral, a concept of continuous mathematics, was brought into computer science in this way.

The test case came from ProCoS too. Sørensen had presented a gas burner controller as a case study, and Ravn, Hans Rischel, and Kirsten M. Hansen used it to show the new logic at work. In their version gas must never leak for more than 4 seconds in any period of at most 30 seconds. With Leak as the state “gas on, no flame”, that becomes a short formula: every interval with ℓ ≤ 30 satisfies ∫Leak ≤ 4. Design decisions are written as formulas in the same way, and showing that they imply the requirement is a proof in the logic. The burner was reused well beyond ProCoS; in 1993 Leslie Lamport specified the same burner in his TLA+ to compare the two approaches.

Macau

In May 1991 Bjørner, who had been asked to become director of the United Nations University International Institute for Software Technology (UNU-IIST) in Macau, decided on the flight home to ask Zhou to join him. The institute opened a year later, with Bjørner in charge of engineering and Zhou of theory. Zhou was elected to the Chinese Academy of Sciences in 1993. After Bjørner’s five years he served as director from August 1997 to September 2002, then returned to the Institute of Software in Beijing.

Work on the calculus went on in Lyngby and then at UNU-IIST. Zhou and Michael R. Hansen gave its formal semantics and a completeness result (1992); with Peter Sestoft they studied which fragments could be decided by machine (1993). Extensions followed for hybrid systems, which mix discrete control with continuous physics, and for probabilistic behaviour. Zhou and Hansen collected the theory in Duration Calculus: A Formal Approach to Real-Time Systems (Springer, 2004). By the China Computer Federation’s count, researchers from more than twenty countries joined the work.

Limits

Expressiveness had a price. The 1993 study with Hansen and Sestoft found that some fragments of the calculus can be decided by machine and others cannot, so automatic checking covers only part of the logic. Lamport put the trade-off bluntly in his 1993 comparison: the Duration Calculus “seems to work well for real-time properties; but it cannot express simple liveness properties”. The competing line of work, timed automata, was built for automatic model checking (see Formal Methods and Model Checking), and the China Computer Federation lists the two as the main approaches to formal design of real-time systems.

Honours

Zhou became a fellow of the Third World Academy of Sciences in 2000. In 2007 he and Bjørner were honoured together for their 70th birthdays with a symposium in Macau and the volume Formal Methods and Hybrid Real-Time Systems. At his 80th birthday celebration in Changsha in October 2017, Bjørner retold the story of the armchairs. The China Computer Federation gave him its Lifetime Achievement Award for 2018, calling him one of the pioneers of distributed programming theory in China.


📚 Sources