6,206 research outputs found
Specifying and Verifying Concurrent Algorithms with Histories and Subjectivity
We present a lightweight approach to Hoare-style specifications for
fine-grained concurrency, based on a notion of time-stamped histories that
abstractly capture atomic changes in the program state. Our key observation is
that histories form a partial commutative monoid, a structure fundamental for
representation of concurrent resources. This insight provides us with a
unifying mechanism that allows us to treat histories just like heaps in
separation logic. For example, both are subject to the same assertion logic and
inference rules (e.g., the frame rule). Moreover, the notion of ownership
transfer, which usually applies to heaps, has an equivalent in histories. It
can be used to formally represent helping---an important design pattern for
concurrent algorithms whereby one thread can execute code on behalf of another.
Specifications in terms of histories naturally abstract granularity, in the
sense that sophisticated fine-grained algorithms can be given the same
specifications as their simplified coarse-grained counterparts, making them
equally convenient for client-side reasoning. We illustrate our approach on a
number of examples and validate all of them in Coq.Comment: 17 page
Quasiclassical Coarse Graining and Thermodynamic Entropy
Our everyday descriptions of the universe are highly coarse-grained,
following only a tiny fraction of the variables necessary for a perfectly
fine-grained description. Coarse graining in classical physics is made natural
by our limited powers of observation and computation. But in the modern quantum
mechanics of closed systems, some measure of coarse graining is inescapable
because there are no non-trivial, probabilistic, fine-grained descriptions.
This essay explores the consequences of that fact. Quantum theory allows for
various coarse-grained descriptions some of which are mutually incompatible.
For most purposes, however, we are interested in the small subset of
``quasiclassical descriptions'' defined by ranges of values of averages over
small volumes of densities of conserved quantities such as energy and momentum
and approximately conserved quantities such as baryon number. The
near-conservation of these quasiclassical quantities results in approximate
decoherence, predictability, and local equilibrium, leading to closed sets of
equations of motion. In any description, information is sacrificed through the
coarse graining that yields decoherence and gives rise to probabilities for
histories. In quasiclassical descriptions, further information is sacrificed in
exhibiting the emergent regularities summarized by classical equations of
motion. An appropriate entropy measures the loss of information. For a
``quasiclassical realm'' this is connected with the usual thermodynamic entropy
as obtained from statistical mechanics. It was low for the initial state of our
universe and has been increasing since.Comment: 17 pages, 0 figures, revtex4, Dedicated to Rafael Sorkin on his 60th
birthday, minor correction
- …