I have a problem with an if-statement within a sum.
I checked the solution in another question on if statements in isabelle but it did not help.
Here is an example:
theorem dummy:
fixes a :: "('a::comm_ring_1 poly)"
and B :: "(('a::comm_ring_1 poly)^'n∷finite^'n∷finite)"
shows "1=1"
proof-
{ fix i j
have "(∑k∈UNIV. if i = k then (B $ i $ j) else 0) = B $ i $ j" sorry
}
How can I prove the lemma where the "sorry" is?