Debian Codegraph @

test-suite/success/eta.v

raw
1 (* Kernel test (head term is a constant) *)
2 Check (fun a : S = S => a : S = fun x => S x).
3
4 (* Kernel test (head term is a variable) *)
5 Check (fun (f:nat->nat) (a : f = f) => a : f = fun x => f x).
6
7 (* Test type inference (head term is syntactically rigid) *)
8 Check (fun (a : list = list) => a : list = fun A => _ A).
9
10 (* Test type inference (head term is a variable) *)
11 (* This one is still to be done...
12 Check (fun (f:nat->nat) (a : f = f) => a : f = fun x => _ x).
13 *)
14
15 (* Test tactic unification *)
16 Goal (forall f:nat->nat, (fun x => f x) = (fun x => f x)) -> S = S.
17 intro H; apply H.
18 Qed.
19