Subject: Ssreflect Users Discussion List
List archive
- From: Emilio Jesús Gallego Arias <>
- To: Florent Hivert <>
- Cc: "ssreflect\@msr-inria.inria.fr" <>
- Subject: Re: [ssreflect] fingraph and finset of pairs
- Date: Fri, 13 Sep 2019 18:18:56 +0200
- Authentication-results: mail3-smtp-sop.national.inria.fr; spf=None ; spf=Pass ; spf=Pass
- Ironport-phdr: 9a23:vzOSPB+XJW3TZf9uRHKM819IXTAuvvDOBiVQ1KB30O0cTK2v8tzYMVDF4r011RmVBN6ds60P2rWe8/i5HzBZu9DZ6DFKWacPfidNsd8RkQ0kDZzNImzAB9muURYHGt9fXkRu5XCxPBsdMs//Y1rPvi/6tmZKSV3wOgVvO+v6BJPZgdip2OCu4Z3TZBhDiCagbb9oIxi6sAvcutMKjYZgJao8zhnEqWZMd+hK2G9kP12ekwvi6suq4JJv7yFcsO89+sBdVqn3Y742RqFCAjQ8NGA16szrtR3dQgaK+3ARTGYYnAdWDgbc9B31UYv/vSX8tupmxSmVJtb2QqwuWTSj9KhkVhnlgzoaOjEj8WHXjstwjL9HoB+kuhdyzZLYbJ2TOfFjZa7WY88USnRdUcZQTyxBA52zb40TD+oaIO1Uq5Dxq0YSoReiAAWhAv7kxD1ViX/sxaA00/ovHxzB3AwuEdwBsnfao9v6O6gOSu210LXEwC/fY/9Kwzrw6o7FeQ0hr/GWWrJwdNLcx0YqFwPEilWQqIvlMCuR2OsTqGiD9fFgWvquhWE9rwFxpiagxsgriobRmo8V0FHE+j9iwI0oItC3VlV2YNGnHZdMrS2aMJF2Qsw7TmxupS00xLoGuZuhcygLzpQq3xHfa/2bc4iI/xLsT/ydLit/hHJgfr+0mhW88VC4x+HhVcS500xGojRbntTNrHwByh7e5tWdRvdg8Eqtxy6D2x3d5+xGO0w4iK7WJpE7zrMymZcfq1nPEjH1lUjwkaSYbF8r+vKy5OTierjmpoGTN4tzigzmPaUjmdCzDf4/MggUUGiX4eW81Lv98k3lWLhGk/47n6rDvJzEO8gWp7S1DxJX34o+8RqzEjmr3MoAkXkCNl1FeRaHj4bzO1HJJfD1Femwjk+jkTpo2/zKJLrhAo/CLnTbirfuYa5961JAyAo01d1f/IlUCqsfL/L9Xk/+qsDXDgMiPgyvw+fnDc192ZkEVWKOBK+ZKqLSvkWS6uIhOenfLLMS7Rj5LOIo4eKmrX4nlEUBNf2H2ZwNZXakWNRnPUiDfVLomNZHH31c7SQkS+m/pViDVT9UUFS/RDAn0R4yDIarAoD0b5qsiafJiCqTDs0OIGdcBQbfQj/Ta4yYVqJUO2qpKch7n2lBDOD5EtNz5VSVrAb/joFfAK/M4CRJ54KzjJ5y/eKBzUhvpwwxNNyU1iS2d08xnm4MQG5kzPAn50tnxQXaiPkqs7ljDdVWoshxfEI/PJ/YwfZ9DoGgSlKZONCTRwT/Tw==
- Organization: X80 Heavy Industries
Hi Florent,
Florent Hivert
<>
writes:
> Therefore, I find it easier to use a third encoding:
>
> - r : {set T * T}
>
> Aside from the full finset possibilities, this encoding has the advantage of
> being fully extensional. Indeed, one can use r1 = r2 and r1 == r2 in place
> of
> e1 =2 e2... From r, one can easily recover e by
>
> e = prod_curry (mem r)
>
> It could even be made a coercion {set T * T} -> rel T
>
> Is there anyone else using the same trick ? Do you think it is a good way to
> do ? Is there a problem with such a coercion ? Should fingraph.v be
> extended
> accordingly ? Any suggestion ?
Indeed we used that encoding in:
https://github.com/VerDILog/VerDILog/blob/iclp-2018/vup.v#L876
I guess it seemed natural both to extract to an OCaml set implementation
[which is a natural fit for that algoritmm] and to get some nicer
extensions [such as labelled graphs] in an easier way.
But AFAICT, revisiting the choice was still on our minds [as the
comments in the file point out :)] , so I am not sure if we can
contribute any insight other than the above code.
E.
- [ssreflect] fingraph and finset of pairs, Florent Hivert, 09/09/2019
- Re: [ssreflect] fingraph and finset of pairs, Emilio Jesús Gallego Arias, 09/13/2019
- Re: [ssreflect] fingraph and finset of pairs, Florent Hivert, 09/14/2019
- Re: [ssreflect] fingraph and finset of pairs, Emilio Jesús Gallego Arias, 09/13/2019
Archive powered by MHonArc 2.6.18.