The notion of Courant–Dorfman algeba is a generalization of the notion of Lie–Rinehart algebra from Lie algebroids to Courant algebroids.