aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar David Aspinall <da@inf.ed.ac.uk>2009-12-01 11:02:19 +0000
committerGravatar David Aspinall <da@inf.ed.ac.uk>2009-12-01 11:02:19 +0000
commita1aef043973c8cf7456f7104abf448dc2bd9e3dd (patch)
tree32a4f9afd8c5d4424dd24bbea897ad3d5bf4029c
parent5ceef45ab14985583c4da9b4627aaf1104b938e6 (diff)
Point to Trac #313
-rw-r--r--coq/README3
-rw-r--r--coq/example-tokens.v17
2 files changed, 14 insertions, 6 deletions
diff --git a/coq/README b/coq/README
index 934ec0cd..d977f485 100644
--- a/coq/README
+++ b/coq/README
@@ -65,6 +65,9 @@ Grammar for Unicode Tokens:
See example-tokens.v in this directory for examples.
+ See trac ticket http://proofgeneral.inf.ed.ac.uk/trac/ticket/313
+ to suggest fixes/changes/adjustments.
+
========================================
$Id$
diff --git a/coq/example-tokens.v b/coq/example-tokens.v
index ba5939fc..773c326c 100644
--- a/coq/example-tokens.v
+++ b/coq/example-tokens.v
@@ -1,24 +1,29 @@
(*
Example uses of X-Symbol symbols in Coq.
See README.
+ Trac this at http://proofgeneral.inf.ed.ac.uk/trac/ticket/313
Pierre Courtieu
$Id$
*)
-Fixpoint toto (x:nat) {struct x} : nat := (* nat should appear as |N *)
+Fixpoint toto (x:nat) {struct x} : nat := (* n a t should appear as |N *)
match x with
| O => O (* double arrow here *)
| S y => toto y (* double arrow here *)
end.
-Lemma titi : forall x:nat,x=x. (* symbolique for-all and nat *)
+Lemma titi : forall x:nat,x=x. (* symbolique for-all and n at *)
Admitted.
-(* this should appear like foo'a'1_B_3 where a and B are greek *)
-Variable foo'alpha'1_beta_3 : Set.
-
+(* X-Symbol: this previously appeared as foo'a'1_B_3 where a and B are greek.
+ Unicode Tokens: this doesn't happen because the regexp used to match
+ is matching on sequences limited by word.
+ Syntax table matters here: try (modify-syntax-entry ?\' ".")
+ (modify-syntax-entry ?\_ ".")
+ *)
+Variable foo'alpha'1__beta__3 : Set.
Fixpoint pow (n m:nat) {struct n} : nat :=
match n with
| O => 0
@@ -65,4 +70,4 @@ Variable alpha_ : Set.
Lemma gamma__neqn : forall n__i:nat, n__i=n__i.
-alpha lhd rhd lambda forall exists exists exist
+alpha lhd rhd lambda forall exists exists exist foral