Skip to content

Instantly share code, notes, and snippets.

@petermarks
Created July 4, 2018 10:06
Show Gist options
  • 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