File: bug_19702.v

package info (click to toggle)
rocq-stdlib 9.0.0-3
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 11,828 kB
  • sloc: python: 2,928; sh: 444; makefile: 319; javascript: 24; ml: 2
file content (30 lines) | stat: -rw-r--r-- 582 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
From Stdlib Require Import Utf8.

Axiom T : nat -> Type.
Axiom default : forall n, T n.

Definition f1 {n1} n2 (w : T n2) := default n1.
About f1.
(*
f1 : ∀ n1 n2 : nat, T n2 → T n1 // wrong

f1 is not universe polymorphic
Arguments f1 {n1}%nat_scope n2%nat_scope w // correct
f1 is transparent
Expands to: Constant Top.f1
*)


Arguments f1 {_} [_].
About f1.
(*
f1 : ∀ [n1 n2 : nat], T n2 → T n1 // wrong

f1 is not universe polymorphic
Arguments f1 {n1}%nat_scope [n2]%nat_scope w // correct
f1 is transparent
Expands to: Constant Top.f1
*)

Arguments f1 {_ _}.
About f1.