SwePub
Sök i LIBRIS databas

  Utökad sökning

WFRF:(Taddeo F.)
 

Sökning: WFRF:(Taddeo F.) > Extensional equalit...

Extensional equality preservation and verified generic programming

Botta, Nicola, 1961 (författare)
Potsdam-Institut für Klimafolgenforschung (PIK),Potsdam Institute for Climate Impact Research
Brede, Nuria (författare)
Potsdam-Institut für Klimafolgenforschung (PIK),Potsdam Institute for Climate Impact Research
Jansson, Patrik, 1972 (författare)
Chalmers tekniska högskola,Chalmers University of Technology
visa fler...
Richter, Tim (författare)
Universität Potsdam,University of Potsdam
visa färre...
 (creator_code:org_t)
2021
2021
Engelska.
Ingår i: Journal of Functional Programming. - 1469-7653 .- 0956-7968. ; 31
  • Tidskriftsartikel (refereegranskat)
Abstract Ämnesord
Stäng  
  • In verified generic programming, one cannot exploit the structure of concrete data types but has to rely on well chosen sets of specifications or abstract data types (ADTs). Functors and monads are at the core of many applications of functional programming. This raises the question of what useful ADTs for verified functors and monads could look like. The functorial map of many important monads preserves extensional equality. For instance, if f, g : A → B are extensionally equal, that is, ∀x ∈ A, f x = g x , then map f : List A → List B and map g are also extensionally equal. This suggests that preservation of extensional equality could be a useful principle in verified generic programming. We explore this possibility with a minimalist approach: we deal with (the lack of) extensional equality in Martin-Löf’s intensional type theories without extending the theories or using full-fledged setoids. Perhaps surprisingly, this minimal approach turns out to be extremely useful. It allows one to derive simple generic proofs of monadic laws but also verified, generic results in dynamical systems and control theory. In turn, these results avoid tedious code duplication and ad-hoc proofs. Thus, our work is a contribution towards pragmatic, verified generic programming.

Ämnesord

NATURVETENSKAP  -- Data- och informationsvetenskap -- Datavetenskap (hsv//swe)
NATURAL SCIENCES  -- Computer and Information Sciences -- Computer Sciences (hsv//eng)

Publikations- och innehållstyp

art (ämneskategori)
ref (ämneskategori)

Hitta via bibliotek

Till lärosätets databas

Sök utanför SwePub

Kungliga biblioteket hanterar dina personuppgifter i enlighet med EU:s dataskyddsförordning (2018), GDPR. Läs mer om hur det funkar här.
Så här hanterar KB dina uppgifter vid användning av denna tjänst.

 
pil uppåt Stäng

Kopiera och spara länken för att återkomma till aktuell vy