This PR speeds up auto-completion by a factor of ~3.5x through various performance improvements in the language server. On one machine, with `import Mathlib`, completing `i` used to take 3200ms and now instead yields a result in 920ms. Specifically, the following improvements are made: - The watchdog process no longer de-serializes and re-serializes most messages from the file worker before passing them on to the user - a fast partial de-serialization procedure is now used to determine whether the message needs to be de-serialized in full or not. - `escapePart` is optimized to perform better on ASCII strings that do not need escaping. - `Json.compress` is optimized to allocate fewer objects. - A faster JSON compression specifically for completion responses is implemented that skips allocating `Json` altogether. - The JSON compression has been moved to the task where we convert a request response to `Json` so that converting to a string won't block the output task of the FileWorker and so the `Json` value is not marked as multi-threaded when we compress is, which drastically increases the cost of reference-counting. - The JSON representation of the `data?` field of each completion item is optimized. - Both the completion kind and the set of completion tags for each imported completion item is now cached. - The filtering of duplicate completion items is optimized. Other adjustments: - `LT UInt8` and `LE UInt8` are moved to Prelude so that they can be used in `Init.Meta` for the name part escaping fast path. - `Array.usize` is exposed since it was marked as `@[simp]`.
840 lines
45 KiB
Text
840 lines
45 KiB
Text
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 20, "character": 20}}
|
|
{"items": [], "isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 23, "character": 21}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 23, 21, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 23, 21, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 23, 21, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 23, 21, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 23, 21, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 23, 21, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 23, 21, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 23, 21, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 26, "character": 24}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 26, 24, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 26, 24, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 26, 24, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 26, 24, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 26, 24, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 26, 24, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 26, 24, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 26, 24, 0]}],
|
|
"isIncomplete": false}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 29, "character": 25}}
|
|
{"items": [], "isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 32, "character": 26}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 32, 26, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 32, 26, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 32, 26, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 32, 26, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 32, 26, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 32, 26, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 32, 26, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 32, 26, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 35, "character": 27}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 35, 27, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 35, 27, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 35, 27, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 35, 27, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 35, 27, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 35, 27, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 35, 27, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 35, 27, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 40, "character": 7}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 40, 7, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 40, 7, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 40, 7, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 40, 7, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 40, 7, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 40, 7, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 40, 7, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 40, 7, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 44, "character": 2}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 44, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 44, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 44, 2, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 44, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 44, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 44, 2, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 44, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 44, 2, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 49, "character": 2}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 49, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 49, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 49, 2, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 49, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 49, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 49, 2, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 49, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 49, 2, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 53, "character": 2}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 53, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 53, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 53, 2, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 53, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 53, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 53, 2, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 53, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 53, 2, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 59, "character": 4}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 59, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 59, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 59, 4, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 59, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 59, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 59, 4, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 59, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 59, 4, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 64, "character": 2}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 64, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 64, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 64, 2, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 64, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 64, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 64, 2, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 64, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 64, 2, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 70, "character": 4}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 70, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 70, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 70, 4, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 70, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 70, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 70, 4, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 70, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 70, 4, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 76, "character": 2}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 76, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 76, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 76, 2, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 76, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 76, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 76, 2, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 76, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 76, 2, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 81, "character": 4}}
|
|
{"items": [], "isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 86, "character": 2}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 86, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 86, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 86, 2, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 86, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 86, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 86, 2, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 86, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 86, 2, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 91, "character": 4}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 91, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 91, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 91, 4, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 91, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 91, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 91, 4, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 91, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 91, 4, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 96, "character": 2}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 96, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 96, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 96, 2, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 96, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 96, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 96, 2, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 96, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 96, 2, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 102, "character": 4}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 102, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 102, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 102, 4, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 102, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 102, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 102, 4, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 102, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 102, 4, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 108, "character": 2}}
|
|
{"items": [], "isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 112, "character": 2}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 112, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 112, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 112, 2, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 112, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 112, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 112, 2, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 112, 2, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 112, 2, 0]}],
|
|
"isIncomplete": true}
|
|
{"textDocument": {"uri": "file:///completionTactics.lean"},
|
|
"position": {"line": 118, "character": 4}}
|
|
{"items":
|
|
[{"label": "Lean.Parser.Tactic.open",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`open Foo in tacs` (the tactic) acts like `open Foo` at command level,\nbut it opens a namespace only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 118, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.match",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`match` performs case analysis on one or more expressions.\nSee [Induction and Recursion][tpil4].\nThe syntax for the `match` tactic is the same as term-mode `match`, except that\nthe match arms are tactics instead of expressions.\n```\nexample (n : Nat) : n = n := by\n match n with\n | 0 => rfl\n | i+1 => simp\n```\n\n[tpil4]: https://lean-lang.org/theorem_proving_in_lean4/induction_and_recursion.html\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 118, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.set_option",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"`set_option opt val in tacs` (the tactic) acts like `set_option opt val` at the command level,\nbut it sets the option only within the tactics `tacs`. ",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 118, 4, 0]},
|
|
{"label": "skip",
|
|
"kind": 14,
|
|
"documentation": {"value": "A docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 118, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.nestedTactic",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 118, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.unknown",
|
|
"kind": 14,
|
|
"data": ["«external:file:///completionTactics.lean»", 118, 4, 0]},
|
|
{"label": "exact",
|
|
"kind": 14,
|
|
"documentation": {"value": "Another docstring ", "kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 118, 4, 0]},
|
|
{"label": "Lean.Parser.Tactic.introMatch",
|
|
"kind": 14,
|
|
"documentation":
|
|
{"value":
|
|
"The tactic\n```\nintro\n| pat1 => tac1\n| pat2 => tac2\n```\nis the same as:\n```\nintro x\nmatch x with\n| pat1 => tac1\n| pat2 => tac2\n```\nThat is, `intro` can be followed by match arms and it introduces the values while\ndoing a pattern match. This is equivalent to `fun` with match arms in term mode.\n",
|
|
"kind": "markdown"},
|
|
"data": ["«external:file:///completionTactics.lean»", 118, 4, 0]}],
|
|
"isIncomplete": true}
|