Let a, b and d be given.
Assume H1.
Assume Ha Hb Hd.
Let m be given.
Assume Hm.
Let n be given.
Assume Hn.
We use n to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hn.
We use m to witness the existential quantifier.
Apply andI to the current goal.
An exact proof term for the current goal is Hm.
We will
prove n * b + m * a = d.
An exact proof term for the current goal is H2.
∎