Zulip Chat Archive
Stream: maths
Topic: Easy simplification of linear equation
Anirudh Suresh (Mar 30 2025 at 16:39):
import Mathlib
open scoped Matrix
theorem ha (a b c d:ℂ) (m00 m01 m10 m11:Matrix (Fin (4)) (Fin (1)) ℂ) : (4:ℤ) • a • (2:ℂ)⁻¹ • (2:ℂ)⁻¹ • m00 +
((4:ℤ) • b • (2:ℂ)⁻¹ • (2:ℂ)⁻¹ • m01 + ((4:ℤ) • c • (2:ℂ)⁻¹ • (2:ℂ)⁻¹ • m11 + (4:ℤ) • d • (2:ℂ)⁻¹ • (2:ℂ)⁻¹ • m10)) =
a • m00 + (b • m01 + (c • m11 + d • m10)):= by {
}
Is there some way in Lean where we can directly prove linear equations like this easily without using a bunch of rewrites?
Bhavik Mehta (Mar 30 2025 at 17:34):
Yes, use module
Last updated: May 02 2025 at 03:31 UTC