Extending unification logic #38
Labels
A-generic-exprs
Generic const expressions
A-unification
Unifying constants in the type system
C-design-docs
Category: This is part of our design documentation
K-behavior
Document Kind: regarding user visible behavior
P-optional
Priority: not strictly required
S-active
What is this
This is a design document for const generics. Any discussions about its content should be on zulip. The conclusions of these discussions should then be edited back into this issue. Please do not post any comments directly in this issue.
Content
There are quite a few possible ways to extend our unification logic for generic constants.
It is still unclear which if these possible extensions we are going to add, but at least
some of these feel necessary to sensibly unify generic constants.
Evaluating subtrees
Given
N + (1 + 3)
andN + 4
, we have to evaluate1 + 3
for this to unifyAssociativity
Given
(N + 1) + M
andN + (1 + M)
, we have to deal with associativity for this to unifyCommutativity
Given
1 + N
andN + 1
, we have to deal with commutativity for this to unifyThe text was updated successfully, but these errors were encountered: