Lambda Days 2018 - Maximilian Algehed - QuickSpec: A Lightweight Theory Exploration Tool (...) @ErlangSolutions
Lambda Days 2018 - Maximilian Algehed - QuickSpec: A Lightweight Theory Exploration Tool (...)  @ErlangSolutions
Uploaded March 2018 | Updated November 2026, 2 hours ago
Register to Lambda Days newsletter to receive updates: lambdadays.org/lambdadays2018/#contact


Maximilian Algehed
Functional Programming Fundamentalist at Chalmers

QuickSpec: A Lightweight Theory Exploration Tool for Programmers

QuickSpec is a tool that automatically finds equations for a given signature of Haskell functions. For example, when running QuickSpec on the functions reverse and, the tool automatically finds the following equations:

rev (rev xs) ≡ xs
xs + (ys + zs) ≡ (xs + ys) + zs rev (xs+ys) ≡rev ys+rev xs

When the signature is extended to include the function zip, QuickSpec finds the additional equations:

zip xs (xs + ys) ≡ zip xs xs
zip (xs +ys) xs ≡ zip xs xs
zip (rev xs) (rev xs) ≡ rev (zip xs xs) rev (zip xs (rev xs)) ≡ zip (rev xs) xs

These equations are found by means of random testing, not by theorem proving. QuickSpec thus conjectures equations that could later be proven correct by other means.

QuickSpec’s big success so far has been its use in automated theorem proving by induction. We also believe QuickSpec to be a useful tool for Haskell programmers. Specifications generated by QuickSpec provide a good start for producing manual equational specifications of a module. The fact that QuickSpec is based on testing makes it suitable for use on large and complicated Haskell modules. Our demo will show QuickSpec in action and demonstrate some recent features. We will focus on the recent extension which lets QuickSpec handle conditional equations. We aim to make the demo interactive, for example by letting the audience suggest interesting functions for QuickSpec to explore.

lambdadays.org/lambdadays2018/maximilian-algehed
Lambda Days 2018 - Maximilian Algehed - QuickSpec: A Lightweight Theory Exploration Tool (...)Instrumenting Erlang and Elixir code with open telemetry - Part 2 | Denys GoncharRadu Popescu - Improving Write Scalability of CernVM File System with Erlang OTP - Code Mesh 2017Lambda Days 2018 - Marcin Rzeźnicki - Idris for (im)practical Scala programmersLet’s #TalkConcurrency with Carl HewittInstrumenting mayhem: functional chaos engineering - Szymon Mentel - ElixirConf EU 2018Lambda Days 2018 - Krzysztof Wende - Lightning talk - Progress after one year development of ElchemyElixir in Public Transit  3 case studies from Bostons MBTA | Erlang Solutions webinarBuilding distributed applications: riak_core vs partisan - Mariano Guerra | London Riak Meetup#MyTopdogStatus from the PepsiCo eCommerce teamLambda Days 2018 - Daniel Krzywicki - Scaling functional multi-agent computations (...)OpenErlang Video Series: The OpenErlang Parties
Erlang Solutions |

Lambda Days 2018 - Maximilian Algehed - QuickSpec: A Lightweight Theory Exploration Tool (...)

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER