Skip to content

Conversation

@mtzguido
Copy link
Member

@mtzguido mtzguido commented Dec 8, 2025

The current check is going via norm_st_typing which ends up doing a
syntactic check over a normalized version of the computed type and
annotation. This is needlessly brittle, and breaks in everparse in some
fancy function types. This can just be replaced by a call to
t_check_equiv.

I couldn't easily write a test for this though... Even in everparse,
the two terms that fail to be syntactically equal appear exactly the
same when printed. Using --ugly, I see differently-nested arrows, but
going via the reflection API should make that not be a problem.

The current check is going via norm_st_typing which ends up doing a
syntactic check over a normalized version of the computed type and
annotation. This is needlessly brittle, and breaks in everparse in some
fancy function types. This can just be replaced by a call to
t_check_equiv.

I couldn't easily write a test for this though... Even in everparse,
the two terms that fail to be syntactically equal appear exactly the
same when printed. Using --ugly, I see differently-nested arrows, but
going via the reflection API should make that not be a problem.
@mtzguido mtzguido enabled auto-merge December 8, 2025 19:52
@mtzguido mtzguido merged commit 085e970 into FStarLang:main Dec 8, 2025
2 checks passed
@mtzguido mtzguido deleted the fix branch December 8, 2025 19:59
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.

1 participant