You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: tests/lean/interactive/hover.lean.expected.out
+3-3
Original file line number
Diff line number
Diff line change
@@ -407,7 +407,7 @@
407
407
"end": {"line": 206, "character": 13}},
408
408
"contents":
409
409
{"value":
410
-
"```lean\n?m x1✝ x2✝\n```\n***\n`a + b` computes the sum of `a` and `b`.\nThe meaning of this notation is type-dependent. ",
410
+
"```lean\n?m x1✝ x2✝\n```\n***\n`a + b` computes the sum of `a` and `b`.\nThe meaning of this notation is type-dependent. \n\nConventions for notations in identifiers:\n\n * The recommended spelling of `+` in identifiers is `add`.",
411
411
"kind": "markdown"}}
412
412
{"textDocument": {"uri": "file:///hover.lean"},
413
413
"position": {"line": 215, "character": 28}}
@@ -612,7 +612,7 @@
612
612
"end": {"line": 290, "character": 16}},
613
613
"contents":
614
614
{"value":
615
-
"```lean\nList.nil.{u} {α : Type u} : List α\n```\n***\n`[]` is the empty list. \n***\n*import Init.Prelude*",
615
+
"```lean\nList.nil.{u} {α : Type u} : List α\n```\n***\n`[]` is the empty list. \n\nConventions for notations in identifiers:\n\n * The recommended spelling of `[]` in identifiers is `nil`.\n***\n*import Init.Prelude*",
616
616
"kind": "markdown"}}
617
617
{"textDocument": {"uri": "file:///hover.lean"},
618
618
"position": {"line": 292, "character": 13}}
@@ -621,7 +621,7 @@
621
621
"end": {"line": 292, "character": 15}},
622
622
"contents":
623
623
{"value":
624
-
"```lean\nList.cons.{u} {α : Type u} (head : α) (tail : List α) : List α\n```\n***\nIf `a : α` and `l : List α`, then `cons a l`, or `a :: l`, is the\nlist whose first element is `a` and with `l` as the rest of the list. \n***\n*import Init.Prelude*",
624
+
"```lean\nList.cons.{u} {α : Type u} (head : α) (tail : List α) : List α\n```\n***\nIf `a : α` and `l : List α`, then `cons a l`, or `a :: l`, is the\nlist whose first element is `a` and with `l` as the rest of the list. \n\nConventions for notations in identifiers:\n\n * The recommended spelling of `::` in identifiers is `cons`.\n\n * The recommended spelling of `[a]` in identifiers is `singleton`.\n***\n*import Init.Prelude*",
Copy file name to clipboardExpand all lines: tests/lean/run/recommendedSpelling.lean
+9-3
Original file line number
Diff line number
Diff line change
@@ -2,11 +2,10 @@ import Lean
2
2
3
3
/-!
4
4
Test the `recommended_spelling` command.
5
-
6
-
TODO: once we use this command in Init, we can test that recommended spellings from imported
7
-
modules are reported correctly.
8
5
-/
9
6
7
+
recommended_spelling "bland"for"🥤"in [And]
8
+
10
9
/--
11
10
Conjuction
12
11
@@ -56,6 +55,13 @@ info: some
56
55
#guard_msgs in
57
56
#eval findDocString? `«term_☋_»
58
57
58
+
/--
59
+
info: some
60
+
"`And a b`, or `a ∧ b`, is the conjunction of propositions. It can be\nconstructed and destructed like a pair: if `ha : a` and `hb : b` then\n`⟨ha, hb⟩ : a ∧ b`, and if `h : a ∧ b` then `h.left : a` and `h.right : b`.\n\n\nConventions for notations in identifiers:\n\n * The recommended spelling of `∧` in identifiers is `and`.\n\n * The recommended spelling of `/\\` in identifiers is `and` (prefer `∧` over `/\\`).\n\n * The recommended spelling of `🥤` in identifiers is `bland`."
0 commit comments