Skip to content

Instantly share code, notes, and snippets.

@petermarks
Created July 4, 2018 10:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petermarks/f8802cc66549226125e4b6a8fee373c5 to your computer and use it in GitHub Desktop.
Save petermarks/f8802cc66549226125e4b6a8fee373c5 to your computer and use it in GitHub Desktop.
Proving record field get and set are an identity for the field value
record R where
constructor MkR
foo : Nat
foo_identity : (foo (set_foo x r)) = x
foo_identity {x} {r} with (foo (set_foo x r))
foo_identity {x} | y = ?rhs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment