Re: Distance in Denotational Semantics?
- From: sasha <REMOVEIThleba@xxxxxxxxxxxxxxxxxxxxx>
- Date: Fri, 19 Aug 2005 17:27:12 +0200
nobrow@xxxxxxxxx wrote:
> Is there a notion of distance in denotational semeantics? I have made
> cursory readings on the subject in the past, and all the talk of
> lattices and CPOs made me wonder if it was possible to define a
> semantic distance between two arbitary programs ... with the intention
> of using a distance d to define a region of similarity for a given
> program P (you know, P is considered similar to Q if |P Q| < d). Its a
> very vague question I know, but your feedback would be appreciated.
>
> Thanks.
>
> PS If theres a better place to post general question about den. sem.
> then please tell me.
>
If you want to argue about the behaviour abstractly, then you have to
compare the functions
f: omega -> omega union {divergence}
g: omega -> omega union {divergence}
as sets of pairs (or simply as two sequences indexed by omega) by some
distance on the set of functions. Here, P computes f and Q computes g.
If you want to argue about the textual form of the programs, construct
some distance function on finite texts modulo whitespace, variable
renaming, procedure calls, whiles (e.g transform everything to program
with gotos and ifs only. or to lambda-calculus and compare P them as
graphs in de-bruin form).
If you want to argue about transition systems, construct the process X
which branches nondeterministically to the P'=bisimulation quotient of P
and Q'=bisimulation quotient of Q and compute the bisimulation quotient
X' of X. You can consider states with different variable valuations as
different, for example. Then work with something like (2|X'|-|X|)/|X|.
Everyhting IMHO.
.
- References:
- Distance in Denotational Semantics?
- From: nobrow
- Distance in Denotational Semantics?
- Prev by Date: Re: Minimum Memory Requirements
- Next by Date: Re: separating context-free languages by simpler languages
- Previous by thread: Distance in Denotational Semantics?
- Next by thread: Re: Distance in Denotational Semantics?
- Index(es):
Relevant Pages
|