Skip to content

Conversation

@Tragicus
Copy link
Contributor

@Tragicus Tragicus commented Feb 8, 2024

No description provided.


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