Basics: Functional Programming in Rocq

This chapter teaches functional programming and basic proofs in the Rocq proof assistant.

Author
Not stated
Published
Undated (the page foot shows a 2026-08-24 timestamp)
Kind
Textbook chapter with exercises, from Software Foundations Volume 1
Original
softwarefoundations.cis.upenn.edu/lf-current/Basics.html
Subject
Formal methods and proof

What it is

The page is a chapter of an online course text, rendered from Rocq source. It sets out to teach Rocq's small functional language, called Gallina. The second half introduces tactics for proving properties of Gallina programs.

What it says

What evidence it gives

The chapter offers worked code, checked examples and proofs, and starred exercises with hints. Each chapter comes with test scripts that grade the exercises. The late-policy exercise applies the tools to a small, concrete rule set.

Interests and limits

Only the prose was read closely; code listings and some exercise text were skimmed. The page is a teaching text, so it makes few claims that could be tested. It teaches one tool, and its remarks on the wider field are brief.