Debian Codegraph @

test-suite/output/UnexpectedType.v

raw
1
2
3 Notation "'λ' x .. y , t" := (fun x => .. (fun y => t) ..)
4 (at level 200, x binder, y binder, right associativity).
5 (* type this in emacs in agda-input method with \lambda *)
6
7 Notation "x → y" := (x -> y)
8 (at level 99, y at level 200, right associativity): type_scope.
9 (* written \to or \r- in Agda input method *)
10 (* the level comes from sub/coq/theories/Unicode/Utf8_core.v *)
11
12
13 Set Primitive Projections.
14 Set Nonrecursive Elimination Schemes.
15
16 Definition UU := Type.
17
18 Identity Coercion fromUUtoType : UU >-> Sortclass.
19
20 Record total2 { T: UU } ( P: T -> UU ) := tpair { pr1 : T; pr2 : P pr1 }.
21
22 Arguments tpair {_} _ _ _.
23 Arguments pr1 {_ _} _.
24 Arguments pr2 {_ _} _.
25
26 Notation "'∑' x .. y , P" := (total2 (λ x, .. (total2 (λ y, P)) ..))
27 (at level 200, x binder, y binder, right associativity) : type_scope.
28 (* type this in emacs in agda-input method with \sum *)
29
30 Section Test.
31 Variables (A : UU) (P: (A → UU) → UU).
32
33 Fail Check ∑ (F : A → UU), P(F).
34 End Test.