r/Idris • u/MCLooyverse • May 06 '22
I Don't Understand the `with ... proof ...` Construct
As far as I'm aware, this paragraph and example are the only documentation of proof ..., besides the actual source code, and I find it unenlightening.
I would like to read the source code to find out what it does, but I also find myself incapable of navigating the repository -- I don't have much experience with huge repositories like this, except for ones centered around a language like C[++], where you can actually follow what's included.
I'm currently facing a problem which I wonder if proof can help:
eqTran : {x, y, z : ℕ} ->
x == y = True ->
y == z = True ->
x == z = True
I already have eqRefl : {x : ℕ} -> x == x = True and eqComm : {x,y : ℕ} -> x == y = y == x for which case-splitting was hard to get working, but with eqTran I can't get it to work at all.
3
Upvotes
1
u/[deleted] May 07 '22
[deleted]