-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathFirst.lean
78 lines (60 loc) · 1.24 KB
/
First.lean
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
/-
# block comment in top of the file
this is a block comment
-/
-- this is a test of inline comment
-- ignore these line --#
import Lean --#
--#--
def thisIsIgnored : Nat := 0
def thisIsAlsoIgnored : Nat := 0
--#--
/-! ## module comment
this is a module comment
-/
/-! ## markdown content
This is a list
* first
* second
* third
This is a [link](hoge).
This is a **bold text**.
This is a `inline code`.
This is a block code:
```lean
def hoge : Nat := 0
```
This is an *italic text*.
-/
variable (P Q : Prop)
example (hQ : Q) : P → Q := by
-- test of lean codes
intro _
exact hQ
/-- test of doc comment -/
example (h : P) : P ∨ Q := by
/-
test of inner block comments
-/
apply Or.inl
exact h
/-- doc comment
/- test of block comment in doc -/
-/
macro "foo" : term => `(0)
/- ## nested comment
Here is a sample of nested block comment:
/- Hi. I am a nested comment! -/
Here is another example of nested block comment:
```lean
/-! ### sample -/
/- wao. this is another sample!! -/
/-- this is doc comment in comment block -/
def foo : Nat := 0
```
-/
/- ## Uniform Internal Link Syntax
* [link to Second.md](#{root}/Second/Second.md)
* [link to Third.md](#{root}/Third/Third/Third.md)
* [link to Fourth.md](#{root}/Fourth.md)
-/