Subject: Ssreflect Users Discussion List
List archive
- From: Beta Ziliani <>
- To: "" <>
- Subject: apply:
- Date: Thu, 8 Aug 2013 14:05:26 +0200
Hi list,
Someone asked me in the #coq irc channel how to build some particular algorithm using canonical structures, and besides some particular problems with the original formulation, I found out that apply: is not succeeding where refine is.getPos : forall (T : Type) (position : nat) (h : T) (f : find_seq position h)
(default : T), h = nth default (untag_seq (seq_of f)) position
to the goal
1 = nth n mySeq ?229 (* [] *)
(notice the existential). What I was expecting is apply: to unify (in this order)
T with nat
h with 1
default with n
untag_seq (seq_of f) with mySeq (defined as [:: 1; 2; 3])
this last step should trigger the canonical structures resolution and obtain a value for position, which should in turn be unified with ?229.
Why is apply: not allowing such applications?
Thanks,
Beta
Beta
- apply:, Beta Ziliani, 08/08/2013
- Re: apply:, Laurent Théry, 08/08/2013
- RE: apply:, Georges Gonthier, 08/08/2013
- Re: apply:, Laurent Théry, 08/08/2013
Archive powered by MHonArc 2.6.18.