-
Notifications
You must be signed in to change notification settings - Fork 637
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Reviewed-by: SkySkimmer Co-authored-by: SkySkimmer <SkySkimmer@users.noreply.github.com>
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
(* -*- mode: coq; coq-prog-args: ("-indices-matter") -*- *) | ||
Axiom proof_admitted : False. | ||
Tactic Notation "admit" := case proof_admitted. | ||
Inductive paths {A : Type} (a : A) : A -> Type := idpath : paths a a where "x = y" := (@ paths _ x y) : type_scope. | ||
Inductive String : Set := | ||
| empty : String | ||
| string (c : bool) (cs : String) : String. | ||
Definition head_type (s : String) : Set := | ||
match s with | ||
| empty => unit | ||
| string _ _ => bool | ||
end. | ||
Definition head (s : String) : head_type s := | ||
match s return head_type s with | ||
| empty => tt | ||
| string c _ => c | ||
end. | ||
Definition ne_head (x y : bool) (xs ys: String) | ||
: string x xs = string y ys -> head (string x xs) = head (string y ys). | ||
Proof. | ||
intro H. | ||
Fail destruct H. | ||
Abort. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Inductive paths {A : Set} (a : A) : forall _ : A, Set := idpath : paths a a. | ||
Inductive bool := B. | ||
Inductive String : Set := string (c : bool) : String. | ||
Definition head_type (s : String) : Set := | ||
match s with string _ => bool end. | ||
Axiom head : forall s : String, head_type s. | ||
Definition ne_head (x y : bool) (H : paths (string x) (string y)) : | ||
paths (head (string x)) (head (string y)). | ||
Proof. | ||
Fail case H. | ||
Abort. |