From fb87f83292d8588d18f8088561e99f8e755b6413 Mon Sep 17 00:00:00 2001 From: lecopivo Date: Wed, 6 Dec 2023 06:16:19 +0100 Subject: [PATCH] fix test --- test/basic_gradients.lean | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/basic_gradients.lean b/test/basic_gradients.lean index 2e2664a1..7d21cb92 100644 --- a/test/basic_gradients.lean +++ b/test/basic_gradients.lean @@ -224,9 +224,9 @@ example (w : K ^ (Idx' (-5) 5 × Idx' (-5) 5)) : (∇ (x : K ^ (Idx 10 × Idx 10)), ⊞ (i : Idx 10 × Idx 10) => ∑ j, w[j] * x[(j.1.1 +ᵥ i.1, j.2.1 +ᵥ i.2)]) = fun _x dy => - -- ⊞ i => ∑ j, w[j] * dy[(-j.fst.1 +ᵥ i.fst, -j.snd.1 +ᵥ i.snd)] := - ⊞ i => ∑ (j : (Idx' (-5) 5 × Idx' (-5) 5)), w[(j.2,j.1)] * dy[(-j.2.1 +ᵥ i.fst, -j.1.1 +ᵥ i.snd)] := + ⊞ i => ∑ j, w[j] * dy[(-j.fst.1 +ᵥ i.fst, -j.snd.1 +ᵥ i.snd)] := + -- ⊞ i => ∑ (j : (Idx' (-5) 5 × Idx' (-5) 5)), w[(j.2,j.1)] * dy[(-j.2.1 +ᵥ i.fst, -j.1.1 +ᵥ i.snd)] := by - conv => lhs; unfold gradient; ftrans + conv => lhs; unfold SciLean.gradient; ftrans