coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Joshua Gancher <jrg358 AT cornell.edu>
- To: coq-club AT inria.fr
- Subject: [Coq-Club] Line numbers in list printing?
- Date: Sat, 15 Jun 2019 15:28:45 -0400
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=jrg358 AT cornell.edu; spf=Pass smtp.mailfrom=jrg358 AT cornell.edu; spf=None smtp.helo=postmaster AT mail-io1-f54.google.com
- Ironport-phdr: 9a23:0gNGGhYFh+vfTsiULThEHoT/LSx+4OfEezUN459isYplN5qZoMy6bnLW6fgltlLVR4KTs6sC17OP9fm+AidZusfJmUtBWaQEbwUCh8QSkl5oK+++Imq/EsTXaTcnFt9JTl5v8iLzG0FUHMHjew+a+SXqvnYdFRrlKAV6OPn+FJLMgMSrzeCy/IDYbxlViDanbr5+MQi6oR/MusQXj4ZuJbs9xxXNr3BVZ+lY2GRkKE6JkR3h/Mmw5plj8ypRu/Il6cFNVLjxcro7Q7JFEjkoKng568L3uxbNSwuP/WYcXX4NkhVUGQjF7Qr1UYn3vyDnq+dywiiaPcnxTbApRTSv6rpgRRH0hCsbMTMy7WfagdFygq1GuhKsvxNwzY7abo+WKfRwYL/ScMgASmZdRMtcTTBNDp++YoYJEuEPPfxYr474p1YWqRW+AhKsBOPyyjBSm3T43Lc10+I9HgHGwgMgBc8FvXPWrNXvO6cfX+C4warTwDrfaPNWwzH955bMchAlu/2DQ69/cdfIxEQpCgjLjU2QpJT7Mz+J0ukBqWuW4up6We6yimMqqht9rzigy8oql4LHnJgaykre+iV82Is1JcO3SEp8YdO8FZtfrSCaN49vTsMjRGFkpT82yrMGtJO0ZiQKx5MnxxnQa/yDbYeE+A7sVOGUITtghXJlfqywhwqq/ES+1uHxUtO43VVKoyZfj9XBt3EA2wbT58WIUvd9+12u2TeL1wDd8OFEJkU0mLLZK547zb49mJoevEfYEyDqn0X2lqmWeVsg+uis8ejofKjppoKEO49ulg7+KrgumtC4AekgLgcOWHGb9f2g273n4E32W65HjuY2k6ncqJDVP94Xpq+/Aw9P04Ys8QyzDzm80IdQoX5SJ1VcPRmDkoLBOlfUIfm+A+3srU6rlWJJwOvGI7SpLZzLJXjOiv+1f6xysBMM4AE019ZS45YSB70cdqGgEnTtvcDVW0dqeze/xPzqXY0kh9EuHFmXC6rcC5v89FqB5+YhOe6JPdRHszHnLfUh47jjgWJrwAZAL5ns5oMebTWDJtojI0idZiCx0NIIEGNPvw1nCeK31BuNVjlcY3v0VKU5tGliVNCWSLzbT4Xou4SvmT+hF8QNNGtBEFaBFXOueomZCa8B
Hi all,
I am mechanizing a program logic, and have an equivalence judgement (written as an Inductive) of the form Equiv xs xs', where xs and xs' are of the type list Cmd.
My current way of displaying this goal looks something like [:: p1; p2; p3; p4] <~~> [:: p5; p6; p7] (using ssreflect's notation for lists.) I would like to instead display something like:
0 : p1;
1 : p2;
2 : p3;
4 : p4
<~~>
0 : p5;
1 : p6;
2 : p7.
Is there a simple programmatic way of doing this, akin to defining a pprint_equiv : forall xs xs', Equiv xs xs' -> string? I think I could also achieve this by zipping each list with an increasing sequence of nats, and doing something special with this list of pairs, but this seems overkill if there is a more natural solution.
Thanks,
Joshua
- [Coq-Club] Line numbers in list printing?, Joshua Gancher, 06/15/2019
- Re: [Coq-Club] Line numbers in list printing?, Samuel Gruetter, 06/21/2019
- Re: [Coq-Club] Line numbers in list printing?, Ralf Jung, 06/21/2019
- Re: [Coq-Club] Line numbers in list printing?, Joshua Gancher, 06/23/2019
- Re: [Coq-Club] Line numbers in list printing?, Ralf Jung, 06/21/2019
- Re: [Coq-Club] Line numbers in list printing?, Samuel Gruetter, 06/21/2019
Archive powered by MHonArc 2.6.18.