Coq: How to prove if statements involving strings?
问题 I have a string a and on comparison with string b , if equals has an string c , else has string x . I know in the hypothesis that fun x <= fun c . How do I prove this below statement? fun is some function which takes in string and returns nat . fun (if a == b then c else x) <= S (fun c) The logic seems obvious but I am unable to split the if statements in coq. Any help would be appreciated. Thanks! 回答1: If you can write an if-then-else statement, it means that the test expression a == b is in