forked from leanprover-community/mathlib4
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFindSyntax.lean
More file actions
54 lines (46 loc) · 1.27 KB
/
FindSyntax.lean
File metadata and controls
54 lines (46 loc) · 1.27 KB
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
module
public import Mathlib.Tactic.FindSyntax
infix:65 " #find_syntax_add " => Nat.add
/--
In `MathlibTest.FindSyntax`:
«term_#find_syntax_add_»: '#find_syntax_add'
In `Mathlib.Tactic.FindSyntax`:
Mathlib.FindSyntax.«command#find_syntax_Approx»: '#find_syntax _ approx'
-/
#guard_msgs (substring := true) in
#find_syntax "#find_syntax" approx -- an `infix` in two files, one being the current one
/--
In `Init.Notation`:
«term_∘_»: '∘'
-/
#guard_msgs (substring := true) in
#find_syntax "∘" approx -- an `infixr`
/--
In `Init.Notation`:
«term_∣_»: '∣'
-/
#guard_msgs (substring := true) in
#find_syntax "∣" approx -- an `infix`
/--
In `Init.Notation`:
«stx_,*»: ',*'
«stx_,*,?»: ',*,?'
-/
#guard_msgs (substring := true) in
#find_syntax ",*" approx -- generated by a `macro`
/--
In `Init.Notation`:
«term~~~_»: '~~~'
-/
#guard_msgs (substring := true) in
#find_syntax "~~~" approx -- a `prefix`
/--
In `Init.Tactics`:
Lean.Parser.Tactic.mrefineMacro: 'mrefine'
Lean.Parser.Tactic.refine: 'refine'
Lean.Parser.Tactic.refine': 'refine''
Lean.Parser.Tactic.tacticRefine_lift'_: 'refine_lift''
Lean.Parser.Tactic.tacticRefine_lift_: 'refine_lift'
-/
#guard_msgs (substring := true) in
#find_syntax "refine" approx -- a `nonReservedSymbol`