diff options
author | Son Ho | 2023-10-17 10:36:15 +0200 |
---|---|---|
committer | Son Ho | 2023-10-17 10:44:20 +0200 |
commit | 61368028027a7c160c33b05ec605c26833212667 (patch) | |
tree | a841ad12878ec4f9314b2af17f1a774b41b6dd7b /backends/lean/Base/Arith/Int.lean | |
parent | 584726e9c4e4378129a35f6cfbbbf934448d10a9 (diff) |
Refold the scalar types when applying progress
Diffstat (limited to 'backends/lean/Base/Arith/Int.lean')
-rw-r--r-- | backends/lean/Base/Arith/Int.lean | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/backends/lean/Base/Arith/Int.lean b/backends/lean/Base/Arith/Int.lean index 2959e245..a57f8bb1 100644 --- a/backends/lean/Base/Arith/Int.lean +++ b/backends/lean/Base/Arith/Int.lean @@ -162,7 +162,7 @@ def introInstances (declToUnfold : Name) (lookup : Expr → MetaM (Option Expr)) -- Add a declaration let nval ← Utils.addDeclTac name e type (asLet := false) -- Simplify to unfold the declaration to unfold (i.e., the projector) - Utils.simpAt [declToUnfold] [] [] (Tactic.Location.targets #[mkIdent name] false) + Utils.simpAt true [declToUnfold] [] [] (Location.targets #[mkIdent name] false) -- Return the new value pure nval @@ -240,7 +240,7 @@ def intTac (splitGoalConjs : Bool) (extraPreprocess : Tactic.TacticM Unit) : Ta -- the goal. I think before leads to a smaller proof term? Tactic.allGoals (intTacPreprocess extraPreprocess) -- More preprocessing - Tactic.allGoals (Utils.tryTac (Utils.simpAt [] [``nat_zero_eq_int_zero] [] .wildcard)) + Tactic.allGoals (Utils.tryTac (Utils.simpAt true [] [``nat_zero_eq_int_zero] [] .wildcard)) -- Split the conjunctions in the goal if splitGoalConjs then Tactic.allGoals (Utils.repeatTac Utils.splitConjTarget) -- Call linarith |