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 <abdoo8080@outlook.com>
  • Loading branch information
mhk119 and abdoo8080 authored Aug 12, 2024
1 parent 0e9566d commit a91c734
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 @@ -68,11 +68,9 @@ variable {op : α → α → α} (assoc : ∀ a b c, op (op a b) c = op a (op b
theorem foldl_assoc {g : β → α} (z1 z2 : α) :
List.foldl (fun z a => op z (g a)) (op z1 z2) l =
op z1 (List.foldl (fun z a => op z (g a)) 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.foldl_cons, ih, assoc]

theorem foldr_assoc {g : β → α} (z1 z2 : α) :
Expand Down

0 comments on commit a91c734

Please sign in to comment.