| 1 |
(* Outside a section, Hypothesis, Variable, Axiom all obey implicit binders *) |
| 2 |
Axiom foo1 : forall {n : nat}, True. |
| 3 |
Parameter foo1' : forall {n : nat}, True. |
| 4 |
Axiom foo1'' : forall {n : nat}, True. |
| 5 |
Check foo1 (n := 1). |
| 6 |
Check foo1' (n := 1). |
| 7 |
Check foo1'' (n := 1). |
| 8 |
|
| 9 |
Section bar. |
| 10 |
(* Inside a section, Hypothesis and Variable do not, but they should *) |
| 11 |
Hypothesis foo2 : forall {n : nat}, True. |
| 12 |
Variable foo2' : forall {n : nat}, True. |
| 13 |
Axiom foo2'' : forall {n : nat}, True. |
| 14 |
Check foo2 (n := 1). |
| 15 |
Check foo2' (n := 1). |
| 16 |
Check foo2'' (n := 1). |
| 17 |
End bar. |