Talk:Beta normal form
| This article is rated Start-class on Wikipedia's content assessment scale. It is of interest to the following WikiProjects: | ||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||
Definition of head normal form
I disagree with the definition of head normal form namely: "A term is in head normal form if there is no beta-redex in head position". For me, this is more subtle: "A term is in head normal form if it does not reduce to a term which is a beta-redex in head position". Am I right? --PIerre.Lescanne (talk) 08:32, 24 November 2015 (UTC)
Definition of normal form, head normal form, and weak head normal form
I feel like the definitions given, could be made precise and simpler by making them inductive on the structure of terms.
- NF(x) holds for any atom x. Or plainly, a variable x or literal is in normal form.
- If NF(m) holds for a term m, then NF(λx . m) holds. Or plainly, if a term m is in normal form, then λ x . m is in normal form.
- If NF(m) and NF(n) hold and m n is not a redex, then NF(m n). Alternatively, NF(m) and NF(n) and m is not structurally equivalent to λx . m' then NF(m n). Or plainly, if m and n are normal forms and m is not an abstraction, i.e. of the form λx.m', then m n is in normal form.
Head normal form can be done similarly.
- HNF(x) holds for any atom x.
- If HNF(m) then HNF(λx. m).
- If HNF(m) and m ≠ λx.m' then for any n HNF(m n).
Under this definition, there is no confusion as to what to do with a term like (e ((λx . m)t)) n.
Also WHNF can be done similarly.
- WHNF(x) holds for any atom x.
- For any term m, WHNF(λ x.m).
- If WHNF(m) and m ≠ λ.m' then for any n WHNF(m n).
For example, under the current definition that there is no redex in head position, could be mistakenly read as no redex in the head term, the head term is simply the left branch of the top most application node, and this could lead to confusion about a term like (e ((λx . m)t)) n .-- User:2604:3D09:E82:5A00:FCC1:1F27:209B:1B63
- I took the liberty of casting your contribution in wiki markup. Please tell us if I have misrepresented it. Regards, --Ancheta Wis (talk | contribs) 04:02, 1 August 2021 (UTC)
Content Disclaimer
Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.
- The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
- There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
- It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
- Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
- Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.