Skip to content

Commit

Permalink
eraseIdxIfInBounds
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-em committed Nov 20, 2024
1 parent 7453073 commit dadfebc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Mathlib/Tactic/Linarith/Frontend.lean
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def runLinarith (cfg : LinarithConfig) (prefType : Option Expr) (g : MVarId)
if let some t := prefType then
let (i, vs) ← hyp_set.find t
proveFalseByLinarith cfg.transparency cfg.oracle cfg.discharger g vs <|>
findLinarithContradiction cfg g ((hyp_set.eraseIdx! i).toList.map (·.2))
findLinarithContradiction cfg g ((hyp_set.eraseIdxIfInBounds i).toList.map (·.2))
else findLinarithContradiction cfg g (hyp_set.toList.map (·.2))
let mut preprocessors := cfg.preprocessors
if cfg.splitNe then
Expand Down

0 comments on commit dadfebc

Please sign in to comment.