Subject: Ssreflect Users Discussion List
List archive
- From: Felipe Cerqueira <>
- To: "" <>
- Subject: [ssreflect] Running computations inside Coq
- Date: Fri, 5 Feb 2016 21:49:13 +0100
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None ; spf=Pass ; spf=None
- Ironport-phdr: 9a23:IsJukB3ggxoOV1SSsmDT+DRfVm0co7zxezQtwd8ZsegeL/ad9pjvdHbS+e9qxAeQG96LtLQe0aGP6fqocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC0ILtjavrocebSj4LrQT+SIs6FA+xowTVu5teqqpZAYF19CH0pGBVcf9d32JiKAHbtR/94sCt4MwrqHwI6Lpyv/JHBO/hZL41Q7hVBygONnsvocztrxjKCwqJ/HoVFGsM2FIcGBPf4R/+U5ztmi7hrK983jObNIv3S6o1UHKs9fE4ZgXvjXIpOjo46GyfocFqlb9WoQio70hxzorVeIyeHP9mf+bGYshcQnBOCJUCHxddC5+xOtNcR9EKOvxV+tHw
Hi,
Today I was trying to instantiate concrete types in my specification to make sure the hypotheses are correct.
I was able to run 'Eval compute in ...' with simple list functions, but my specification is full of big operators.
I tried code extraction to Haskell and it seems to work fine.
But is it possible to test the computation inside Coq so that I could run small examples more easily?
Currently I get a very long output like this:
if (fix all (s : seq (concrete_task * nat)) : bool :=
match s with
| [::] => true
| x :: s' =>
if let (tsk, R) := x in
(fix eqn (m n : nat) {struct m} : bool :=
match m with
| 0 => match n with
| 0 => true
| _.+1 => false
end
| m'.+1 =>
match n with
| 0 => false
| n'.+1 => eqn m' n'
end
end)
((fix minus (n m : nat) {struct n} : nat :=
match n with
| 0 => n
| k.+1 =>
match m with
| 0 => n
| l.+1 => minus k l
end
end) R
(let (_, _, task_deadline) := tsk in task_deadline))
...
Thanks,
Felipe
- [ssreflect] Running computations inside Coq, Felipe Cerqueira, 02/05/2016
- Re: [ssreflect] Running computations inside Coq, Emilio Jesús Gallego Arias, 02/06/2016
- Re: [ssreflect] Running computations inside Coq, Felipe Cerqueira, 02/06/2016
- Re: [ssreflect] Running computations inside Coq, Laurent Thery, 02/06/2016
- Re: [ssreflect] Running computations inside Coq, Ralf Jung, 02/10/2016
- Re: [ssreflect] Running computations inside Coq, Enrico Tassi, 02/10/2016
- Re: [ssreflect] Running computations inside Coq, Ralf Jung, 02/10/2016
- Re: [ssreflect] Running computations inside Coq, Emilio Jesús Gallego Arias, 02/06/2016
- Re: [ssreflect] Running computations inside Coq, Laurent Thery, 02/06/2016
- Re: [ssreflect] Running computations inside Coq, Felipe Cerqueira, 02/06/2016
- Re: [ssreflect] Running computations inside Coq, Emilio Jesús Gallego Arias, 02/06/2016
Archive powered by MHonArc 2.6.18.