Zulip Chat Archive

Stream: mathlib4

Topic: duplicate lemmas


Johan Commelin (Feb 24 2024 at 14:35):

docs#LinearMap.toMatrix_apply' seems to be a verbatim duplicate of docs#LinearMap.toMatrix_apply
Does anyone know if I'm missing something, or whether there was an intended difference in the past?

Riccardo Brasca (Feb 24 2024 at 14:39):

I don't know why we have both, but I agree they look exactly the same.

Riccardo Brasca (Feb 24 2024 at 14:42):

import Mathlib.LinearAlgebra.Matrix.ToLin

example : @LinearMap.toMatrix_apply = @LinearMap.toMatrix_apply' := rfl

confirms this.

Eric Wieser (Feb 24 2024 at 14:49):

Strictly you should use by with_reducible rfl to test that

Eric Wieser (Feb 24 2024 at 14:50):

Were they different in Lean 3?

Kevin Buzzard (Feb 24 2024 at 14:54):

That check would also not check binder types, right?

Riccardo Brasca (Feb 24 2024 at 15:03):

They're identical in the latest mathlib3

Riccardo Brasca (Feb 24 2024 at 15:07):

I think it's just an accident, introduced in mathlib#4345


Last updated: May 02 2025 at 03:31 UTC