I'm working on a proof and I'm currently stuck at this. I have a hypothesis which reads:
T1E : tree1 = EmptyTree -> isEmpty (leftChild (Node tree1 tree2)) = true
I also have a hypothesis:
H2 : isEmpty (leftChild (Node tree1 tree2)) = true
and my current sub-goal is
tree1 = EmptyTree
It seems like I should be able to do
rewrite <- T1E
in order to change the subgoal to
isEmpty (leftChild (Node tree1 tree2)) = true
but when I try that, Coq says
Error: Found no subterm matching "true" in the current goal.
How can I prove my current subgoal using T1E and H2?