Skip to content

Commit 1abd5cc

Browse files
committed
chore: add simp option unfoldPartialApp
It is not being used yet, but we need to add it before solving issue #2042. Reason: bootstrapping.
1 parent 08c47b2 commit 1abd5cc

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/Init/Meta.lean

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1230,6 +1230,9 @@ structure Config where
12301230
/-- If `failIfUnchanged := true`, then calls to `simp`, `dsimp`, or `simp_all`
12311231
will fail if they do not make progress. -/
12321232
failIfUnchanged : Bool := true
1233+
/-- If `unfoldPartialApp := true`, then calls to `simp`, `dsimp`, or `simp_all`
1234+
will unfold even partial applications of `f` when we request `f` to be unfolded. -/
1235+
unfoldPartialApp : Bool := false
12331236
deriving Inhabited, BEq, Repr
12341237

12351238
end DSimp
@@ -1265,6 +1268,9 @@ structure Config where
12651268
it does not contain free or meta variables. Reduction is interrupted at a function application `f ...`
12661269
if `f` is marked to not be unfolded. -/
12671270
ground : Bool := false
1271+
/-- If `unfoldPartialApp := true`, then calls to `simp`, `dsimp`, or `simp_all`
1272+
will unfold even partial applications of `f` when we request `f` to be unfolded. -/
1273+
unfoldPartialApp : Bool := false
12681274
deriving Inhabited, BEq, Repr
12691275

12701276
-- Configuration object for `simp_all`

0 commit comments

Comments
 (0)