diff options
| author | Gaëtan Gilbert | 2020-02-14 11:38:15 +0100 |
|---|---|---|
| committer | Gaëtan Gilbert | 2020-02-17 13:23:44 +0100 |
| commit | 509d958342764e4a676e735a3896f6ff77c07ff9 (patch) | |
| tree | 8fc8349eae181211920cb90d83179b3a24cdddc4 /test-suite | |
| parent | 4165cce72347466fbaa565247ae040a873b46694 (diff) | |
New syntax [Inductive Acc A R | x : Prop := ...]
to control uniform parameters.
This replaces the attribute.
Diffstat (limited to 'test-suite')
| -rw-r--r-- | test-suite/success/uniform_inductive_parameters.v | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test-suite/success/uniform_inductive_parameters.v b/test-suite/success/uniform_inductive_parameters.v index 42236a5313..e2b4694fff 100644 --- a/test-suite/success/uniform_inductive_parameters.v +++ b/test-suite/success/uniform_inductive_parameters.v @@ -11,3 +11,12 @@ Inductive list2 (A : Type) (A' := prod A A) := | cons2 : A' -> list2 -> list2. Check (list2 : Type -> Type). Check (cons2 : forall A (A' := prod A A), A' -> list2 A -> list2 A). + +Inductive list3 | A := nil3 | cons3 : A -> list3 (A * A)%type -> list3 A. + +Unset Uniform Inductive Parameters. + +Inductive list4 A | := nil4 | cons4 : A -> list4 -> list4. + +Inductive Acc {A:Type} (R:A->A->Prop) | (x:A) : Prop + := Acc_in : (forall y, R y x -> Acc y) -> Acc x. |
