Commit c8dbb063 authored by Ralf Jung's avatar Ralf Jung

Infinite docs: mention the generic constructions that should usually be used

parent 84fd0660
Pipeline #17124 passed with stage
in 8 minutes and 23 seconds
......@@ -1226,7 +1226,10 @@ to pick fresh elements from other data structure like sets. See the file
[FinSet C A].
Note: we require [fresh] to respect permutations, which is needed to define the
aforementioned [fresh] function on finite sets that respects set equality. *)
aforementioned [fresh] function on finite sets that respects set equality.
Instead of instantiating [Infinite] directly, consider using [max_infinite] or
[inj_infinite] from the [infinite] module. *)
Class Fresh A C := fresh: C A.
Hint Mode Fresh - ! : typeclass_instances.
Instance: Params (@fresh) 3 := {}.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment