chore: remove workaround (#10156)

This commit is contained in:
Leonardo de Moura 2025-08-27 08:18:17 -07:00 committed by GitHub
parent 655a39ceb8
commit 2dda33ddb2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -270,17 +270,11 @@ theorem Seq.eraseDup_k_eq_eraseDup (s : Seq) : s.eraseDup_k = s.eraseDup := by
attribute [local simp] Seq.eraseDup_k_eq_eraseDup
-- theorem Seq.denote_eraseDup {α} (ctx : Context α) {inst₁ : Std.Associative ctx.op} {inst₂ : Std.IdempotentOp ctx.op} (s : Seq)
-- : s.eraseDup.denote ctx = s.denote ctx := by
-- fun_induction eraseDup s -- FAILED
theorem Seq.denote_eraseDup {α} (ctx : Context α) {inst₁ : Std.Associative ctx.op} {inst₂ : Std.IdempotentOp ctx.op} (s : Seq)
: s.eraseDup.denote ctx = s.denote ctx := by
induction s <;> simp [eraseDup] <;> split <;> split
next ih _ _ h₁ h₂ => simp [← ih, h₁, h₂, Std.IdempotentOp.idempotent]
next ih _ _ h₁ _ => simp [← ih, h₁]
next ih _ _ _ h₁ h₂ => simp [← ih, h₁, h₂, ← Std.Associative.assoc (self := inst₁), Std.IdempotentOp.idempotent]
next ih _ _ _ h₁ _ => simp [← ih, h₁]
fun_induction eraseDup s <;> simp_all +zetaDelta
next ih => simp [← ih, Std.IdempotentOp.idempotent]
next ih => simp [← ih, ← Std.Associative.assoc (self := inst₁), Std.IdempotentOp.idempotent]
attribute [local simp] Seq.denote_eraseDup