Skip to content

Commit

Permalink
Update Smt/Reconstruct/Int/Polynorm.lean
Browse files Browse the repository at this point in the history
Co-authored-by: Abdalrhman Mohamed <[email protected]>
  • Loading branch information
mhk119 and abdoo8080 authored Aug 12, 2024
1 parent 1188519 commit 69967d4
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Smt/Reconstruct/Int/Polynorm.lean
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,9 @@ theorem foldl_assoc {g : β → α} (z1 z2 : α) :
theorem foldr_assoc {g : β → α} (z1 z2 : α) :
List.foldr (fun z a => op a (g z)) (op z1 z2) l =
op z1 (List.foldr (fun z a => op a (g z)) z2 l) := by
revert z1 z2
induction l with
| nil => simp
induction l generalizing z1 z2 with
| nil => rfl
| cons y ys ih =>
intro z1 z2
simp only [List.foldr_cons, ih, assoc]


Expand Down

0 comments on commit 69967d4

Please sign in to comment.