Skip to content

Commit fb97275

Browse files
committed
feat: add Simp.Config.implicitDefEqProofs
This commit does **not** implement this feature.
1 parent d4d7c72 commit fb97275

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/Init/MetaTypes.lean

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,14 @@ structure Config where
218218
to find candidate `simp` theorems. It approximates Lean 3 `simp` behavior.
219219
-/
220220
index : Bool := true
221+
/--
222+
When `true` (default: `false`), `simp` will **not** create a proof for a rewriting rule associated
223+
with an `rfl`-theorem.
224+
Rewriting rules are provided by users by annotating theorems with the attribute `@[simp]`.
225+
If the proof of the theorem is just `rfl` (reflexivity), and `implicitDefEqProofs := true`, `simp`
226+
will **not** create a proof term which is an application of the annotated theorem.
227+
-/
228+
implicitDefEqProofs : Bool := false
221229
deriving Inhabited, BEq
222230

223231
-- Configuration object for `simp_all`

0 commit comments

Comments
 (0)