Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

eliminate sorries when generating the typechecking expression #283

Merged
merged 1 commit into from
Nov 7, 2024

Conversation

arthurpaulino
Copy link
Member

No description provided.

Comment on lines +20 to +25
/-- (= (tc decl) 1) ; tc being a commitment -/
def mkCommTypecheckingExpr (tc decl : Digest) : Expr :=
Expr.op₂ .numEq
(.app (.atom $ .commit tc)
(.atom $ .commit decl))
(.atom $ .num $ .ofNat 1)
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using commitments as callable objects is supported since Lurk Beta:

lurk-user> (commit (lambda (x) (+ x 1)))
[2 iterations] => #c0x1f4971f046cd9b037eadbc3fcde177431a712e8cef82fcec9e010fc5a65891
lurk-user> (#c0x1f4971f046cd9b037eadbc3fcde177431a712e8cef82fcec9e010fc5a65891 9)
[6 iterations] => 10

@arthurpaulino arthurpaulino merged commit dd545c2 into v4.12.0 Nov 7, 2024
1 check failed
@arthurpaulino arthurpaulino deleted the mk-tc-expr branch November 7, 2024 18:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants