我有一个包含功能:
Fixpoint contains (l: list string) (x: string): bool :=
match l with
| [] => false
| h :: tl => (if (string_dec h x) then true else (contains tl x))
end.
Run Code Online (Sandbox Code Playgroud)
它检查字符串是否在字符串列表中。我想通过对是否contains (vars e) y
成立的案例分析来证明一个定理。但是,当我对这个布尔值进行破坏时,对于不同的子案例,我没有得到任何额外的假设。
我该如何解决这个问题?