Functional Programming & Proofs


I. Introduction

  1. What are the main characteristics of all the Functional Programming Languages (F#, Javascript, Python, (CA)ML, Lisp, Haskell,...) ?

Ex. What is the "factorial" function ? What is the derivative of a function ?

$$ (fun\ x\to y)\ v \Leftrightarrow y[x/v] $$

NB. A common syntactic sugar of the preceding expression is: "let x=v in y"

  1. Different from imperative (e.g. computing factorial):
Declare what is the result not how to compute it !

1 - 8