refactor: remove unnecessary simp call in simpAppFn and update cbv_eval attribute usage in tests (#12589)
This PR removes unnecessary `simp` call in `simpAppFn` in `cbv` tactic and updates the usage of `cbv_eval` attribute in `tests/lean.run/cbv1.lean` to follow the new syntax that does not require an explicit name of the function for which we are registering the unfold lemma.
This commit is contained in:
parent
953b60c894
commit
d035efbb87
2 changed files with 3 additions and 3 deletions
|
|
@ -135,7 +135,7 @@ def simplifyAppFn : Simproc := fun e => do
|
|||
return .rfl
|
||||
else
|
||||
let res ← simp fn
|
||||
match (← simp fn) with
|
||||
match res with
|
||||
| .rfl _ => return res
|
||||
| .step e' proof _ =>
|
||||
let newType ← Sym.inferType e'
|
||||
|
|
|
|||
|
|
@ -176,8 +176,8 @@ attribute [cbv_opaque] Std.DHashMap.emptyWithCapacity
|
|||
attribute [cbv_opaque] Std.DHashMap.insert
|
||||
attribute [cbv_opaque] Std.DHashMap.getEntry
|
||||
attribute [cbv_opaque] Std.DHashMap.contains
|
||||
attribute [cbv_eval Std.DHashMap.contains] Std.DHashMap.contains_emptyWithCapacity
|
||||
attribute [cbv_eval Std.DHashMap.contains] Std.DHashMap.contains_insert
|
||||
attribute [cbv_eval] Std.DHashMap.contains_emptyWithCapacity
|
||||
attribute [cbv_eval] Std.DHashMap.contains_insert
|
||||
|
||||
example : ((Std.DHashMap.emptyWithCapacity : Std.DHashMap Nat (fun _ => Nat)).insert 5 3).contains 5 = true := by
|
||||
conv =>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue