0

Is there a way to apply a function to a set in Coq using Ensemble?

That is, to define a function that takes a function f : A -> A and a set S : Ensemble A and returns an Ensemble A such that for a , In A S a (i.e. a is an element of S), the output set "contains" f a.

If it is not (which I fear is the case), is there a different way to do this without having to resort to finite sets?

1 Answer 1

1

It's called Im and it's defined in the Image module.

Require Import Ensembles Image.
About Im.
(* Im (X:Ensemble U) (f:U -> V) : Ensemble V *)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.