From f69c037f642fab03437e196af41da5a6f7178b2a Mon Sep 17 00:00:00 2001 From: David Aspinall Date: Thu, 24 Jan 2008 23:46:46 +0000 Subject: New files. --- coq/example-utf8.v | 26 ++++++++++++++++++++++++ coq/utf8.v | 59 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 coq/example-utf8.v create mode 100644 coq/utf8.v diff --git a/coq/example-utf8.v b/coq/example-utf8.v new file mode 100644 index 00000000..f6dfd3c6 --- /dev/null +++ b/coq/example-utf8.v @@ -0,0 +1,26 @@ +(* -*- coding: utf-8; -*- *) + +(* utf8 notations: You can (re)use the version here, + or a compiled version distributed with Coq IDE: + Add LoadPath "/usr/lib/coq/ide". + Require Import utf8. +*) +Load "utf8". + +(* Printing of unicode notation, in *goals* *) +Lemma test : forall A:Prop, A -> A. +auto. +Qed. + +(* Parsing of unicode notation, in *goals* *) +Lemma test2 : ∀ A:Prop, A → A. +intro. +intro. +auto. +Qed. + +(* Printing of unicode notation, in *response* *) +Check (fun (X:Set)(x:X) => x). + +(* Parsing of unicode notation, in *response* *) +Check (∀A, A→A). \ No newline at end of file diff --git a/coq/utf8.v b/coq/utf8.v new file mode 100644 index 00000000..af319fda --- /dev/null +++ b/coq/utf8.v @@ -0,0 +1,59 @@ +(* -*- coding:utf-8 -* *) + +(* This file is copied from coqide-8.1pl3-1 *) + +(************************************************************************) +(* v * The Coq Proof Assistant / The Coq Development Team *) +(* y) (at level 90, right associativity): type_scope. +Notation "x ↔ y" := (x <-> y) (at level 95, no associativity): type_scope. +Notation "⌉ x" := (~x) (at level 75, right associativity) : type_scope. + + +(* Abstraction *) +(* Not nice +Notation "'λ' x : T , y" := ([x:T] y) (at level 1, x,T,y at level 10). +Notation "'λ' x := T , y" := ([x:=T] y) (at level 1, x,T,y at level 10). +*) + +(* Arithmetic *) +Notation "x ≤ y" := (le x y) (at level 70, no associativity). +Notation "x ≥ y" := (ge x y) (at level 70, no associativity). + +(* test *) +(* +Goal ∀ x, True -> (∃ y , x ≥ y + 1) ∨ x ≤ 0. +*) + +(* Integer Arithmetic *) +(* TODO +Notation "x ≤ y" := (Zle x y) (at level 1, y at level 10). +*) -- cgit v1.2.3