Skip to content

feat: query complexity model for algorithms theory#372

Open
Shreyas4991 wants to merge 21 commits intoleanprover:mainfrom
Shreyas4991:query-final-squash
Open

feat: query complexity model for algorithms theory#372
Shreyas4991 wants to merge 21 commits intoleanprover:mainfrom
Shreyas4991:query-final-squash

Conversation

@Shreyas4991
Copy link
Contributor

@Shreyas4991 Shreyas4991 commented Feb 26, 2026

This is a highly squashed version of #275 with a smaller commit an comment history for ease of further reviewing.

Authors: Shreyas Srinivas, Tanner Duve, Eric Wieser.

Author : Shreyas Srinivas
Co-Author : Eric Wieser
Co-Author : Tanner Duve
Copy link
Collaborator

@chenson2018 chenson2018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks in much better shape now, just some relatively minor things from me:

@Shreyas4991
Copy link
Contributor Author

Shreyas4991 commented Feb 26, 2026

This looks in much better shape now, just some relatively minor things from me:

@chenson2018 : I think I have addressed all your review comments so far.

Copy link
Collaborator

@chenson2018 chenson2018 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I pushed one small golf, and my other comments have been addressed. I left the two comments where I'd tagged @eric-wieser unresolved so they can be double checked. As usual, leaving for @fmontesi for final consideration.

@eric-wieser
Copy link
Collaborator

Note that the co-authored-by lines in the first commit are not in a form recognized by git

@Shreyas4991
Copy link
Contributor Author

Note that the co-authored-by lines in the first commit are not in a form recognized by git

I am not a practical git expert. Could you tell me exactly what to do to fix it? The previous commit where I inserted is not the top commit now so I don't know if the commit --amend thing can change this commit's message

A model for comparison sorting on lists with only the comparison operation. This
is used in mergeSort.
-/
inductive SortOpsCmp.{u} (α : Type u) : Type → Type _ where
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I claim that we should reserve the shorter SortOps name for this type, as the other type is neither particularly applicable to most algorithm nor safe for actually counting insertHead operations. I suggest SortOps and SortOpsInsert

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Okay. I will change it.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed it to SortOpsInsertHead I hope that is a better name

@tannerduve
Copy link
Contributor

tannerduve commented Feb 27, 2026

Note that the co-authored-by lines in the first commit are not in a form recognized by git

I am not a practical git expert. Could you tell me exactly what to do to fix it? The previous commit where I inserted is not the top commit now so I don't know if the commit --amend thing can change this commit's message

you could git commit amend with Co-authored-by: First Last <username@users.noreply.github.com> at the bottom, one line per coauthor. when you merge, all the commits get squashed so I dont think it matters which commit you amend, but note that this would mean all coauthors get equal contribution credit on github, up to you if that matters

@Shreyas4991
Copy link
Contributor Author

Shreyas4991 commented Feb 27, 2026

Co-authored-by: First Last username@users.noreply.github.com

Note that the co-authored-by lines in the first commit are not in a form recognized by git

I am not a practical git expert. Could you tell me exactly what to do to fix it? The previous commit where I inserted is not the top commit now so I don't know if the commit --amend thing can change this commit's message

you could git commit amend with Co-authored-by: First Last <username@users.noreply.github.com> at the bottom, one line per coauthor. when you merge, all the commits get squashed so I dont think it matters which commit you amend, but note that this would mean all coauthors get equal contribution credit on github, up to you if that matters

I am not terribly concerned about this. If it ever becomes relevant (let's say this model becomes a paper), there's a long commit trail across two branches and PRs which contains our commit histories, from which we know who contributed what. At least, all I need to do is not delete my branch for this PR, and likewise for all co-authors.

I have pushed the amended commit. Hope it works now.

@tannerduve
Copy link
Contributor

tannerduve commented Feb 28, 2026

https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors looks like you need to add a space before the list of coauthors, also you mistyped Eric's entry. and maybe better to use my official email associated with GitHub, so Co-authored-by: Tanner Duve <tannerduve@gmail.com> not sure if you need to do the same with Eric

Co-authored-by: Shreyas Srinivas  <Shreyas4991@users.noreply.github.com>
Co-authored-by: Eric Wieser <eric-wieser@users.noreply.github.com>
Co-authored-by: Tanner Duve <tannerduve@gmail.com>
@Shreyas4991
Copy link
Contributor Author

Shreyas4991 commented Feb 28, 2026

If the commit co author thing doesn't work now, then I am at my wit's end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants