categories - Category Theory list
 help / color / mirror / Atom feed
* CATS Categorical model for Floyd-Hoare logic?
@ 1998-02-14  1:40 David Espinosa
  1998-02-14 20:41 ` Vaughan Pratt
  0 siblings, 1 reply; 2+ messages in thread
From: David Espinosa @ 1998-02-14  1:40 UTC (permalink / raw)
  To: categories; +Cc: espinosa



Hopefully this is my last question for a while.

Has there been work on a categorical model for "while programs" (or,
equivalently, assembly language) and Floyd-Hoare logic?

In the obvious model, objects are predicates on a store, and arrows
are code sequences mapping stores to stores that satisfy the
postcondition assuming the precondition.

I'm interested to know:

  (1) What is the structure of this category?
      Does it have products, sums, etc?
      What program constructs do they correspond to?

  (2) What is the correct equality on arrows?  I would think that
      we want the finest equality that yields nice structure.  Then we
      can collapse afterward to obtain coarser categories.

David




^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: CATS Categorical model for Floyd-Hoare logic?
  1998-02-14  1:40 CATS Categorical model for Floyd-Hoare logic? David Espinosa
@ 1998-02-14 20:41 ` Vaughan Pratt
  0 siblings, 0 replies; 2+ messages in thread
From: Vaughan Pratt @ 1998-02-14 20:41 UTC (permalink / raw)
  To: categories


>Has there been work on a categorical model for "while programs" (or,
>equivalently, assembly language) and Floyd-Hoare logic?

The first such was developed by Arbib and Manes in the mid-70's.  Manes
went on to develop the theory in great detail, writing a near-book-length
article on it a decade later, not sure where it appeared.

  (1) What is the structure of this category?

As I recall it was an additive (semiadditive?) category, with sequential
composition represent by composition, and choice by sum within homsets.
The objects were predicates, the arrows were programs (aka predicate
transformers).

      Does it have products, sums, etc?  What program constructs do they
      correspond to?

Not sure about products, but it certainly had sums.  which was how
if-then-else was handled.

  (2) What is the correct equality on arrows?
 
My recollection is that it was fully abstract: the correct equality is
equality.

Vaughan Pratt



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1998-02-14 20:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-02-14  1:40 CATS Categorical model for Floyd-Hoare logic? David Espinosa
1998-02-14 20:41 ` Vaughan Pratt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).