-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add disjointness reasoning for BbML #260
The head ref may contain hidden characters: "outer\u{1F30C}"
Conversation
BTW, since you are modifying the way forall types are printed. Why not print them like in the source? Eg |
|
||
fun f: ([A] -> ([B] -> A | B -> B | A) -> A) -> ([A] -> ([B] -> A | B -> B | A) -> A) | ||
f | ||
//│ Type: (['A] -> (['B] -> ('A ∨ 'B) ->{⊥} 'B ∨ 'A) ->{⊥} 'A) ->{⊥} ['A] -> (['B] -> ('A ∨ 'B) ->{⊥} 'B ∨ 'A) ->{⊥} 'A |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we please use |
and &
rather than ∨
and ∧
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be done in a future PR, though.
val state = new VarState() | ||
state.upperBounds = ctx.getRegEnv :: Nil | ||
state.lowerBounds = ctx.getRegEnv :: Nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder what's the point of creating a new TV that's equivalent to an underlying type ctx.getRegEnv
. I see freshEnv
is only used in instantiate
. Why can't instantiate
substitute simple types for variables? Instead of just variables for variables?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks!
I've left some comments that can be addressed later. Let's merge this now!
outer
variables forfunctionspolymorphic typesThis PR is still being prepared, e.g., containing redundant code. Such problems will be addressed after the main problems are discussed in the meeting.