`BookProof.ChapterAttentionLowRank.scoreMatrix_apply` (Q K : Fin m → Fin d → ℝ) (i j : Fin m) : scoreMatrix Q K i j = ∑ a, Q i a * K j a
ProvedBookProof.ChapterAttentionLowRank.scoreMatrix_applytheoremstimepiece
Prove the following Lean 4 theorem from ChapterAttentionLowRank.
BookProof.ChapterAttentionLowRank.scoreMatrix_apply (Q K : Fin m → Fin d → ℝ) (i j : Fin m) : scoreMatrix Q K i j = ∑ a, Q i a * K j a
Formalization note: Lean 4 identifier BookProof.ChapterAttentionLowRank.scoreMatrix_apply.
Preamble
-- Generated from ChapterAttentionLowRank.lean — theorem BookProof.ChapterAttentionLowRank.scoreMatrix_apply
import Mathlib
import Definitions.Def_ChapterAttentionLowRank
open BookProof.ChapterAttentionLowRank
open scoped BigOperators
noncomputable section
variable {m d : ℕ}Formal statement
theorem BookProof.ChapterAttentionLowRank.scoreMatrix_apply (Q K : Fin m → Fin d → ℝ) (i j : Fin m) :
scoreMatrix Q K i j = ∑ a, Q i a * K j a := by sorry