AFTD Auto-Formalizing Theoretical Domains

MatrixMap.id

defimported Lean

Alias of LinearMap.id, but specifically as a MatrixMap.

Statement

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {A B C D E F R : Type*} [Fintype A] [DecidableEq A] in
variable [Semiring R] in
variable (A R) in
@[reducible]
def MatrixMap.id : MatrixMap A A R
Defined in
QuantumInfo, `MatrixMap.id`
Lean proof
By Alex Meiburg, from github.com/leanprover-community/physlib at e411c6e89692 (Copyright (c) 2025 Alex Meiburg. All rights reserved, Apache-2.0). Compiled here against leanprover/lean4:v4.33.1, Mathlib v4.33.1; written for leanprover/lean4:v4.34.1.
Verified
16 Oct 2026
Axioms
none listed
Built on 1
  • MatrixMapA MatrixMap is a linear map between squares matrices of size A to size B, over R.

Lean source view module on GitHub

set_option autoImplicit true in
set_option relaxedAutoImplicit true in
variable {A B C D E F R : Type*} [Fintype A] [DecidableEq A] in
variable [Semiring R] in
variable (A R) in
/-- Alias of LinearMap.id, but specifically as a MatrixMap. -/
@[reducible]
def MatrixMap.id : MatrixMap A A R := LinearMap.id
See it in the graphDiscuss this resultChallenge it