| 1 |
(* -*- mode: coq; coq-prog-args: ("-allow-rewrite-rules") -*- *) |
| 2 |
|
| 3 |
Inductive STrue : SProp := SI. |
| 4 |
Inductive Box (A : SProp) : A -> Set := box a : Box A a. |
| 5 |
|
| 6 |
Symbol S: bool -> Type -> Set. |
| 7 |
|
| 8 |
Rewrite Rule S_rew := |
| 9 |
S _ (forall (a : ?A), Box STrue ?b) => Box _ (fun a => ?b). |
| 10 |
|
| 11 |
Check fun (x : STrue) => |
| 12 |
(eq_refl : S true (unit -> Box STrue x) = S false (unit -> Box STrue x)). |
| 13 |
|
| 14 |
Definition error (x : STrue) := |
| 15 |
(eq_refl : S true (unit -> Box STrue x) = S false (unit -> Box STrue x)). |