Skip to content

Instantly share code, notes, and snippets.

@sudgy
sudgy / bundled_unbundled.v
Created October 18, 2023 23:26
Using Bundled and Unbundled Typeclasses Simultaneously in Coq
Require Import Utf8.
Require Import Coq.Program.Tactics.
(* When using typeclasses in Coq, people often debate over whether you should
use them bundled or unbundled. Each has their own benefits in particular
situations. However, you can actually use them both at the same time to get the
best of both worlds! *)
(* We start with defining several unbundled typeclasses for the sake of defining
groups. *)