Debian Codegraph @

test-suite/bugs/bug_3892.v

raw
1 (* Check that notation variables do not capture names hidden behind
2 another notation. *)
3 Notation "A <-> B" := ((A -> B) * (B -> A))%type : type_scope.
4 Notation compose := (fun g f x => g (f x)).
5 Notation "g 'o' f" := (compose g f) (at level 40, left associativity).
6 Definition iff_compose {A B C : Type} (g : B <-> C) (f : A <-> B) : A <-> C :=
7 (fst g o fst f , snd f o snd g).
8 (* Used to fail with: This expression should be a name. *)