I am trying to write a Coq poof for the following lemma:
Require Export Coq.Structures.OrderedTypeEx.
Require Import FMapAVL.
Module M := FMapAVL.Make(Nat_as_OT).
Fixpoint cc (n: nat) (c: M.t nat):bool :=
match M.find n c with
| None => false
| _ => true
end.
Lemma l: forall (n: nat) (k:nat) (m: M.t nat), cc n m = true -> cc n (M.add k k m) = true.
I'm unable to simplify (M.add k k m)
part.
M
? Can you add necessary imports? Also, what have you tried doing and at what point are you unable to simplify(M.add k k m)
. It would be helpful if you could list all tactics used up to the point that you get stuck. – MattM.add_1
,M.add_2
,M.find_1
,M.find_2
. – larsr