You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
RFC: Extend get_elem_tactic_trivial to handle [a]'h.2 #3032
and it it is used in a few places (ok, quite a few written by me):
~/build/lean $ grep -F "]'h.2" **/*.lean
aesop/Aesop/BuiltinRules/Subst.lean: let (.fvar fvarId) := fvarSubst.get $ fvarIds[i]'h.2 | throwError
aesop/Aesop/Script.lean: let step := script[i]'h.2
lean4/src/Lean/Elab/PreDefinition/WF/Fix.lean: a' := a'.push (a[i]'h.2)
lean4/src/Lean/Elab/PreDefinition/WF/GuessLex.lean: let n ← (xs[i]'h.2).fvarId!.getUserName
lean4/src/Lean/Elab/PreDefinition/WF/GuessLex.lean: let measure := measures[measureIdx]'h.2
lean4/src/Lean/Elab/PreDefinition/WF/GuessLex.lean: let vars := (varNamess[funIdx]'h.2).map mkIdent
mathlib4/Mathlib/Tactic/Linarith/Frontend.lean: let (k', vs) := self[i]'h.2
mathlib4/Mathlib/Tactic/Linarith/Frontend.lean: if ← isDefEq (self[i]'h.2).1 k then
std4/Std/Lean/Meta/AssertHypotheses.lean: let h := hs[i]'h.2
std4/Std/Tactic/TryThis.lean: let .ok newText := (suggestions[i]'h.2).getObjValAs? String "suggestion" | panic! "bad type"
It would be nice if this worked out of the box. Here is one way of implementing that:
Activity
feat: let get_elem_tactic_trivial handle [a]'h.2
feat: let get_elem_tactic_trivial handle [a]'h.2 (leanprover#3132)