11# Tactics
22
3- Mathlib version: ` c6541c05ebd2fc0f106db01858adaf8e7a783a79 `
3+ Mathlib version: ` 0a052585de2cfc95e94c373033fe24df36ca7c0e `
44
55## \# adaptation_note
66Defined in: ` «tactic#adaptation_note_» `
@@ -3890,6 +3890,8 @@ optional arguments:
38903890 disequality hypotheses. (` false ` by default.)
38913891* If ` exfalso ` is ` false ` , ` linarith ` will fail when the goal is neither an inequality nor ` False ` .
38923892 (` true ` by default.)
3893+ * If ` minimize ` is ` false ` , ` linarith? ` will report all hypotheses appearing in its initial
3894+ proof without attempting to drop redundancies. (` true ` by default.)
38933895* ` restrict_type ` (not yet implemented in mathlib4)
38943896 will only use hypotheses that are inequalities over ` tp ` . This is useful
38953897 if you have e.g. both integer- and rational-valued inequalities in the local context, which can
@@ -3950,6 +3952,8 @@ optional arguments:
39503952 disequality hypotheses. (` false ` by default.)
39513953* If ` exfalso ` is ` false ` , ` linarith ` will fail when the goal is neither an inequality nor ` False ` .
39523954 (` true ` by default.)
3955+ * If ` minimize ` is ` false ` , ` linarith? ` will report all hypotheses appearing in its initial
3956+ proof without attempting to drop redundancies. (` true ` by default.)
39533957* ` restrict_type ` (not yet implemented in mathlib4)
39543958 will only use hypotheses that are inequalities over ` tp ` . This is useful
39553959 if you have e.g. both integer- and rational-valued inequalities in the local context, which can
@@ -3960,6 +3964,24 @@ A variant, `nlinarith`, does some basic preprocessing to handle some nonlinear g
39603964The option ` set_option trace.linarith true ` will trace certain intermediate stages of the ` linarith `
39613965routine.
39623966
3967+ ## linarith?
3968+ Defined in: ` Mathlib.Tactic.linarith? `
3969+
3970+ ` linarith? ` behaves like ` linarith ` but, on success, it prints a suggestion of
3971+ the form ` linarith only [...] ` listing a minimized set of hypotheses used in the
3972+ final proof. Use ` linarith?! ` for the higher-reducibility variant and set the
3973+ ` minimize ` flag in the configuration to control whether greedy minimization is
3974+ performed.
3975+
3976+ ## linarith?!
3977+ Defined in: ` Mathlib.Tactic.tacticLinarith?!_ `
3978+
3979+ ` linarith? ` behaves like ` linarith ` but, on success, it prints a suggestion of
3980+ the form ` linarith only [...] ` listing a minimized set of hypotheses used in the
3981+ final proof. Use ` linarith?! ` for the higher-reducibility variant and set the
3982+ ` minimize ` flag in the configuration to control whether greedy minimization is
3983+ performed.
3984+
39633985## linear_combination
39643986Defined in: ` Mathlib.Tactic.LinearCombination.linearCombination `
39653987
0 commit comments