smucclaw / lam4

A functional (and hopefully in the near future, solver-aided) DSL for the law
MIT License
1 stars 0 forks source link

[Semantics] Think more about whether should embed relational logic, a la Alloy, and how to best combine concrete with symbolic evaluation when it comes to the semantics #30

Open ym-han opened 3 months ago

ym-han commented 3 months ago

Questions

Relevant:

Alloy book on scalars

This is a good argument for not having options be a union type for modelling purposes. But not sure it's as persuasive when you're trying to, e.g., write a decision tree like classifier.

p.44-5:

image image
image image

Alloy's semantics of integer expressions and formulas

p277

B.7.7 Integers (p 281)

image

as well as

semantics of integer expressions and formulas

image image
ym-han commented 2 months ago

Papers about Alloy semantics and state:

ym-han commented 2 months ago

TODO: Add docs cataloguing and explaining the differences between Alloy's semantics and Lam4's

EG: