Skip to content
This repository has been archived by the owner on Oct 14, 2023. It is now read-only.

Commit

Permalink
chore(library/init/meta/simp_tactic): use mfoldl
Browse files Browse the repository at this point in the history
  • Loading branch information
leodemoura committed Jul 1, 2017
1 parent 9504c9c commit 5882d51
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions library/init/meta/simp_tactic.lean
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,8 @@ simp_lemmas.add_simp_core reducible
meta def simp_lemmas.add_congr : simp_lemmas → name → tactic simp_lemmas :=
simp_lemmas.add_congr_core reducible

meta def simp_lemmas.append : simp_lemmas → list expr → tactic simp_lemmas
| sls [] := return sls
| sls (l::ls) := do
new_sls ← simp_lemmas.add sls l,
simp_lemmas.append new_sls ls
meta def simp_lemmas.append (s : simp_lemmas) (hs : list expr) : tactic simp_lemmas :=
hs.mfoldl simp_lemmas.add s

/-- `simp_lemmas.rewrite_core m s prove R e` apply a simplification lemma from 's'
Expand Down

0 comments on commit 5882d51

Please sign in to comment.