Skip to content

Instantly share code, notes, and snippets.

@konn
Last active March 15, 2023 11:52
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 konn/f352e4e5f71cad43638ad101b3414516 to your computer and use it in GitHub Desktop.
Save konn/f352e4e5f71cad43638ad101b3414516 to your computer and use it in GitHub Desktop.
η-Reduction / Expansion makes SATySFi confused
let const a _ = a
let always-zero = const 0
let _ = always-zero (always-zero true) % Error!
% ^~~~~~~~~~~~~~~~~
% Type Error
% this expression has type
% int,
% but is expected of type
% bool.
let const a _ = a
let always-zero x = const 0 x
let _ = always-zero (always-zero true)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment