Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Implementing OCaml APIs in Coq

ACM SIGPLAN via YouTube

Overview

FLASH SALE: Ends May 22!
Udemy online courses up to 85% off.
Get Deal
Learn about a lightweight design pattern for implementing OCaml APIs in Coq in this 19-minute conference talk from CoqPL 2025 by Joshua M. Cohen of Princeton University. The presentation addresses the challenge of preserving exact types and behaviors when implementing stateful, exception-throwing OCaml APIs through extraction. Discover how carefully modified extraction can support features like exceptions and mutable state, resulting in programs that are executable both within Coq and in OCaml while maintaining complete compatibility with client expectations. The talk demonstrates this approach through three examples: a subset of OCaml's List library, a mutable counter, and a stateful term API for generating unique variable names for α-conversion and safe substitution. This research was presented at the CoqPL 2025 workshop on January 25, 2025, sponsored by ACM SIGPLAN.

Syllabus

[CoqPL'25] Implementing OCaml APIs in Coq

Taught by

ACM SIGPLAN

Reviews

Start your review of Implementing OCaml APIs in Coq

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.