File tree Expand file tree Collapse file tree
Mathlib/LinearAlgebra/Multilinear Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -285,15 +285,14 @@ def constOfIsEmpty [IsEmpty ι] (m : M₂) : MultilinearMap R M₁ M₂ where
285285
286286end
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`
290289of these variables, one gets a new multilinear map on `Fin k` by varying these variables, and fixing
291290the other ones equal to a given value `z`. It is denoted by `f.restr s hk z`, where `hk` is a
292291proof that the cardinality of `s` is `k`. The implicit identification between `Fin k` and `s` that
293292we use is the canonical (increasing) bijection. -/
294293def 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
You can’t perform that action at this time.
0 commit comments