Files
why3/examples/prover/Choice.mlw
Andrei Paskevich 7b0929a761 WhyML: "use/clone T" imports by default (in absence of "as")
For the previous behaviour (no import), write "use/clone T as T".

This shortens the most used "use/clone import" to simply "use/clone".
2018-06-15 16:45:58 +02:00

17 lines
291 B
Plaintext

module Choice
(* no why3 type is empty. *)
constant default : 'a
(* Axiom of choice : we can explicitely pick an element whom
existence is proven. *)
function choice (p: 'a -> bool) : 'a
axiom choice_behaviour : forall p: 'a -> bool, x: 'a.
p x -> p (choice p)
end