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

Cswb #591

Open
wants to merge 15 commits into
base: master
Choose a base branch
from
Open

Cswb #591

wants to merge 15 commits into from

Conversation

Tragicus
Copy link
Contributor

@Tragicus Tragicus commented Feb 8, 2024

No description provided.

@@ -591,6 +594,38 @@ let infer_conv_noticing_evars ~pb ~ts env sigma t1 t2 =
if !has_evar then None
else Some (UnifFailure (sigma, UnifUnivInconsistency e))

let pr_econstr = ref (fun _ _ _ -> Pp.str "unable to print econstr")

(* TODO: move to a proper place *)
Copy link
Contributor

Choose a reason for hiding this comment

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

Look at the CList module (coq has an extended lib)

MLCode(Pred("coq.reduction.lazy.whd_betaiota_deltazeta_for_iota_state",
CIn(term,"T",
COut(term,"Tred",
Read(proof_context, {|Puts T in weak head normal form.
Copy link
Contributor

Choose a reason for hiding this comment

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

I have no clue what it does, but it does not do "just whd" ;-)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Indeed, thank you. Is there a difference between "weak head normal form" and "head normal form"? If so, the documentation of whd_betaiota_deltazeta_for_iota_state in reductionops.ml states "head normal form", while the function name starts with "whd", is that a typo?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also, would you like for me to PR this commit (after fixing the doc) to coq-elpi now?

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.

4 participants