Sökning: onr:"swepub:oai:research.chalmers.se:c4acf907-692a-4666-b2e7-cf3a178fe53e" >
Fast and Loose Reas...
Fast and Loose Reasoning is Morally Correct
-
- Danielsson, Nils Anders, 1979 (författare)
- Chalmers tekniska högskola,Chalmers University of Technology
-
- Hughes, John, 1958 (författare)
- Chalmers tekniska högskola,Chalmers University of Technology
-
- Jansson, Patrik, 1972 (författare)
- Chalmers tekniska högskola,Chalmers University of Technology
-
visa fler...
-
Gibbons, Jeremy (författare)
-
visa färre...
-
(creator_code:org_t)
- ISBN 1595930272
- 2006
- 2006
- Engelska.
-
Ingår i: Conference record of the 33rd ACM SIGPLAN-SIGACT symposium on Principles of programming languages (POPL 2006). - 1595930272 ; , s. 206-217
- Relaterad länk:
-
https://research.cha...
Abstract
Ämnesord
Stäng
- Functional programmers often reason about programs as if they were written in a total language, expecting the results to carry over to non-total (partial) languages. We justify such reasoning.Two languages are defined, one total and one partial, with identical syntax. The semantics of the partial language includes partial and infinite values, and all types are lifted, including the function spaces. A partial equivalence relation (PER) is then defined, the domain of which is the total subset of the partial language. For types not containing function spaces the PER relates equal values, and functions are related if they map related values to related values.It is proved that if two closed terms have the same semantics in the total language, then they have related semantics in the partial language. It is also shown that the PER gives rise to a bicartesian closed category which can be used to reason about values in the domain of the relation.
Ämnesord
- NATURVETENSKAP -- Data- och informationsvetenskap -- Datavetenskap (hsv//swe)
- NATURAL SCIENCES -- Computer and Information Sciences -- Computer Sciences (hsv//eng)
Nyckelord
- non-strict and strict languages
- partial and infinite values
- inductive and coinductive types
- partial and total languages
- lifted types
- Equational reasoning
Publikations- och innehållstyp
- kon (ämneskategori)
- ref (ämneskategori)
Hitta via bibliotek
Till lärosätets databas