Elm Exactly

Rule 172p-stat-module

Elaboration of ProgramsBSTAT⊢STATprogram⇒(τ,PE)\jstat{\pgBstat}{\program}{(\tau,\PE)}
BSTAT⊢module⇒BSTAT′,EDom (PEofBSTAT′)∩(Dom (PEofBSTAT)∪Managerplat)=∅BSTAT+BSTAT′⊢STATprogram⇒(τ,PE)BSTAT⊢STATmodule program⇒(τ,PE)\frac{\begin{array}{c}\jdg{\pgBstat}{\modm}{\pgBstat',E}\\ \Dom(\PE\of\pgBstat')\cap\big(\Dom(\PE\of\pgBstat)\cup\effMgrPlat\big)=\emptyset\\ \jstat{\pgBstat+\pgBstat'}{\program}{(\tau,\PE)}\end{array}}{\begin{array}{c}\jstat{\pgBstat}{\modm\ \program}{(\tau,\PE)}\end{array}}
(172)
Read it in its chapter·Permanent address: /standard/rules/p-stat-module

Comments

Each module is elaborated in the static basis that the modules before it have built, so it finds there the interface of every module it imports, and the type names it generates are new (rule (46)). The side condition makes port names global to the program: no two ports of a program share a name, even in different modules, and no port has the name of a manager of the platform; a program with such a clash does not elaborate.

Referred to from

TeX source
\defnrule[r:p-stat-module]
  {\jdg{\pgBstat}{\modm}{\pgBstat',E}\\
   \Dom(\PE\of\pgBstat')\cap\big(\Dom(\PE\of\pgBstat)\cup\effMgrPlat\big)=\emptyset\\
   \jstat{\pgBstat+\pgBstat'}{\program}{(\tau,\PE)}}
  {\jstat{\pgBstat}{\modm\ \program}{(\tau,\PE)}}

Tests (2)

Discussions

Discuss this rule·Search the discussions on GitHub

Discussions are on GitHub; one about this rule has [r:p-stat-module] in its title.

A Standard Definition of Elm? (Draft version 0.4) © Rupert Smith. The text is licensed under CC BY 4.0: share and adapt it freely, with credit and a link to the licence.