Skip to content

Commit 70f2cc7

Browse files
authored
Merge pull request #169 from Seasawher/auto-update-branch
2 parents fbd6166 + d803a2c commit 70f2cc7

File tree

5 files changed

+52
-6
lines changed

5 files changed

+52
-6
lines changed

docs/attributes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Attributes
22

3-
Mathlib version: `955e8f97a6372ceeeb97f4acc87f71ae1fea7d85`
3+
Mathlib version: `0e836d6e1a3c5ed008688622e261e19fbef05e0e`
44

55
## aesop
66
Register a declaration as an Aesop rule.

docs/commands.md

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Commands
22

3-
Mathlib version: `955e8f97a6372ceeeb97f4acc87f71ae1fea7d85`
3+
Mathlib version: `0e836d6e1a3c5ed008688622e261e19fbef05e0e`
44

55
## \#adaptation_note
66
Defined in: `adaptationNoteCmd`
@@ -771,6 +771,24 @@ Unlike `norm_num`, this command does not fail when no simplifications are made.
771771

772772
`#norm_num` understands local variables, so you can use them to introduce parameters.
773773

774+
## \#parse
775+
Defined in: `Mathlib.GuardExceptions.parseCmd`
776+
777+
`#parse parserFnId => str` allows to capture parsing exceptions.
778+
`parserFnId` is the identifier of a `ParserFn` and `str` is the string that
779+
`parserFnId` should parse.
780+
781+
If the parse is successful, then the output is logged;
782+
if the parse is successful, then the output is captured in an exception.
783+
784+
In either case, `#guard_msgs` can then be used to capture the resulting parsing errors.
785+
786+
For instance, `#parse` can be used as follows
787+
```lean
788+
/-- error: <input>:1:3: Stacks tags must be exactly 4 characters -/
789+
#guard_msgs in #parse Mathlib.Stacks.stacksTagFn => "A05"
790+
```
791+
774792
## \#print
775793
Defined in: `Batteries.Tactic.printPrefix`
776794

@@ -843,6 +861,34 @@ theorem bar' : 1 = 1 ∨ 1 ≠ 1 := foo
843861
Defined in: `Lean.Parser.Command.print`
844862

845863

864+
## \#print_fun_prop_theorems
865+
Defined in: `Mathlib.Meta.FunProp.«command#print_fun_prop_theorems__»`
866+
867+
Command that printins all function properties attached to a function.
868+
869+
For example
870+
```
871+
#print_fun_prop_theorems HAdd.hAdd
872+
```
873+
might print out
874+
```
875+
Continuous
876+
continuous_add, args: [4,5], priority: 1000
877+
continuous_add_left, args: [5], priority: 1000
878+
continuous_add_right, args [4], priority: 1000
879+
...
880+
Diferentiable
881+
Differentiable.add, args: [4,5], priority: 1000
882+
Differentiable.add_const, args: [4], priority: 1000
883+
Differentiable.const_add, args: [5], priority: 1000
884+
...
885+
```
886+
887+
You can also see only theorems about a concrete function property
888+
```
889+
#print_fun_prop_theorems HAdd.hAdd Continuous
890+
```
891+
846892
## \#push_neg
847893
Defined in: `Mathlib.Tactic.PushNeg.pushNeg`
848894

docs/options.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Options
22

3-
Mathlib version: `955e8f97a6372ceeeb97f4acc87f71ae1fea7d85`
3+
Mathlib version: `0e836d6e1a3c5ed008688622e261e19fbef05e0e`
44

55
## Mathlib.Tactic.TFAE.useDeprecated
66
type: `Bool`

docs/tactics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Tactics
22

3-
Mathlib version: `955e8f97a6372ceeeb97f4acc87f71ae1fea7d85`
3+
Mathlib version: `0e836d6e1a3c5ed008688622e261e19fbef05e0e`
44

55
## \#adaptation_note
66
Defined in: `«tactic#adaptation_note_»`

lake-manifest.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"type": "git",
66
"subDir": null,
77
"scope": "leanprover-community",
8-
"rev": "01f4969b6e861db6a99261ea5eadd5a9bb63011b",
8+
"rev": "485efbc439ee0ebdeae8afb0acd24a5e82e2f771",
99
"name": "batteries",
1010
"manifestFile": "lake-manifest.json",
1111
"inputRev": "main",
@@ -85,7 +85,7 @@
8585
"type": "git",
8686
"subDir": null,
8787
"scope": "",
88-
"rev": "955e8f97a6372ceeeb97f4acc87f71ae1fea7d85",
88+
"rev": "0e836d6e1a3c5ed008688622e261e19fbef05e0e",
8989
"name": "mathlib",
9090
"manifestFile": "lake-manifest.json",
9191
"inputRev": "master",

0 commit comments

Comments
 (0)