Skip to content

Commit e31ab85

Browse files
committed
chore(Multilinear/Basic): address a porting note
1 parent 5483f1c commit e31ab85

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

Mathlib/LinearAlgebra/Multilinear/Basic.lean

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,15 +285,14 @@ def constOfIsEmpty [IsEmpty ι] (m : M₂) : MultilinearMap R M₁ M₂ where
285285

286286
end
287287

288-
-- Porting note: Included `DFunLike.coe` to avoid strange CoeFun instance for Equiv
289288
/-- Given a multilinear map `f` on `n` variables (parameterized by `Fin n`) and a subset `s` of `k`
290289
of these variables, one gets a new multilinear map on `Fin k` by varying these variables, and fixing
291290
the other ones equal to a given value `z`. It is denoted by `f.restr s hk z`, where `hk` is a
292291
proof that the cardinality of `s` is `k`. The implicit identification between `Fin k` and `s` that
293292
we use is the canonical (increasing) bijection. -/
294293
def restr {k n : ℕ} (f : MultilinearMap R (fun _ : Fin n => M') M₂) (s : Finset (Fin n))
295294
(hk : #s = k) (z : M') : MultilinearMap R (fun _ : Fin k => M') M₂ where
296-
toFun v := f fun j => if h : j ∈ s then v ((DFunLike.coe (s.orderIsoOfFin hk).symm) ⟨j, h⟩) else z
295+
toFun v := f fun j => if h : j ∈ s then v ((s.orderIsoOfFin hk).symm ⟨j, h⟩) else z
297296
/- Porting note: The proofs of the following two lemmas used to only use `erw` followed by `simp`,
298297
but it seems `erw` no longer unfolds or unifies well enough to work without more help. -/
299298
map_update_add' v i x y := by

0 commit comments

Comments
 (0)