aboutsummaryrefslogtreecommitdiffhomepage
path: root/coq/example-utf8.v
blob: 4cba17c8ac3c14ba85c46fd0e9813180c6d6cde0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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 : ∀ A:Prop, A -> A.
auto.
Qed.

(* Parsing of unicode notation here, printing 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 here, printing in *response* *)
Check (∀A, A→A).