Repository navigation
Conversation
|
Surprisingly, I know what's going on with CI; Its GHC is linked against icu-69 but msys2 installs icu-71, so the symbols have the wrong version suffix: |
|
@Mergifyio rebase |
✅ Branch has been successfully rebased |
65e1996 to
c996ce1
Compare
|
Rebaseing this onto master to get updated CI to run again. |
| { annLock :: Lock | ||
| -- ^ Fitch-style dependent right adjoints. | ||
| -- See Modal Dependent Type Theory and Dependent Right Adjoints, arXiv:1804.05236. | ||
| , annFinite :: !Bool |
There was a problem hiding this comment.
If I read you right, the reason to move this from Dom to ArgInfo was to have it also in the abstract syntax. Currently, the abstract syntax has no Dom, but:
data TypedBinding
= TBind Range TacticAttr (List1 (NamedArg Binder)) Type
| ...Would it make sense to turn the TacticAttr field to a record containing also the Finite flag? I am a bit worried about blowing up ArgInfo unnecessarily, because it is part of every argument and binder. A unused field there would increase the memory footprint a bit (maybe quite a bit?). If possible, I'd appreciate a more economic placement.
(More radically, refactoring the abstract syntax to have Dom would also be thinkable...)
There was a problem hiding this comment.
Right: the finiteness annotation has to be present in the abstract syntax to differentiate the pretty-printed normal forms of Partial φ A and .(IsOne φ) → A.
I don't think the size of ArgInfo has been significantly affected, though: annFinite is part of the Annotation type, which was already pointed to by ArgInfo before, and since the field isn't strict, it doesn't get unboxed (though maybe it should be made strict/unboxed?)
data ArgInfo = ArgInfo
{ argInfoHiding :: Hiding
, argInfoModality :: Modality
, argInfoOrigin :: Origin
, argInfoFreeVariables :: FreeVariables
, argInfoAnnotation :: Annotation
-- ^ Sometimes we want a different kind of binder/pi-type, without it
-- supporting any of the @Modality@ interface.
} deriving (Data, Eq, Ord, Show)Nonetheless I think it makes sense to store it next to the TacticAttr, since arguments in elimination spines shouldn't particularly care about the finiteness of the function they're being applied to.
a45d680 to
1841722
Compare
| toAbstract (Dom{domInfo = i,unDom = x, domTactic = tac}, name) = do | ||
| toAbstract (Dom{domInfo = i, domIsFinite = isfin, unDom = x, domTactic = tac}, name) = do | ||
| dom <- toAbstract x | ||
| return $ mkTBind noRange (singleton $ unnamedArg i $ mkBinder_ name) dom |
There was a problem hiding this comment.
Anyone know why this discards the tactic attribute?
There was a problem hiding this comment.
Oh.. it's because it's coming from the reflected syntax, and reflection can't make pis with tactic annotations. I guess that makes sense: should we remove the binding for tac, or throw an __IMPOSSIBLE_VERBOSE__ when it's set, or something? Strictly speaking it's impossible for isFinite to be True, here, too
|
@Mergifyio rebase |
❌ Base branch update has failedDetailsGit reported the following error: err-code: 57A15 |
|
Heck here's hoping there's an outlet on the plane |
3e494dc to
d0da68e
Compare
|
Marking this a draft again because literally two days after my github account was cleared of its wrongful ban from actions they've gone and banned me again. |
d0da68e to
2d006f4
Compare
Oh what is that? Never heard of such. Are there any pointers to read up on this? Currently, the actions don't run on this PR. :-( |
|
At this point I've been banned from actions for >3 weeks 😔 After 18 days, I got this message from support:
That was a week ago. For 2 days after they answered me, actions was working, but spotty -- my runs would get cancelled after ~2 minutes unless I was staring at the logs. That's when I marked this PR "ready for review" and made the comment about flying. (side note: my plane did not have a power socket, so moot anyway). Two days after they unbanned me I got flagged again! Now actions doesn't run on any of my PRs, commits, or any commit at all to repositories I own. I thought rebasing using mergify might trick them into running but no: #6053 |
|
Maybe you are too productive, costing them too much CI time. :-D If you want to make a secondary github account, I can add it to the agda community. |
|
@Mergifyio rebase |
Fixes #6015. The finiteness information was moved to the Annotation type, so that we can print "finite Πs" differently from ordinary Π.
✅ Branch has been successfully rebased |
2d006f4 to
4e2b114
Compare
|
Ok, it does not help if I rebase this with Mergify, the rebase it is still attributed to you. I'll try to open a PR in my name instead. P.S.: Or it is simply because GitHub Actions are down. From https://www.githubstatus.com/:
|
|
Gonna close this PR in favour of #6159, then |

Fixes #6015. The finiteness information was moved to the
Annotationtype, so that we can print "finite Πs" differently from ordinary Π — The rest ofDomnever makes it to the abstract syntax, so I smuggle it in theArgInfo.