Skip to content

Conversation

gares
Copy link
Member

@gares gares commented Apr 28, 2025

No description provided.

Co-Authored-by: ptorrx <ptorrx@gmail.com>
@gares gares marked this pull request as ready for review April 29, 2025 20:41
HB/structures.v Outdated
Comment on lines 729 to 732

% hack
std.forall {std.iota 20} (x\begin-section "x",end-section),

Copy link
Member

Choose a reason for hiding this comment

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

what is this hack for??

Copy link
Member Author

Choose a reason for hiding this comment

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

We have to announce the sections we open/close. And statically I don't know.

Unfortunately coq lacks the notion of irrelevant synterp actions, even if our sections don't interfere with parsing they could.

@gares
Copy link
Member Author

gares commented May 16, 2025

@CohenCyril commit 64966fd is not wrapper specific and seems to fix a limitation of HB.saturate, that was always applying the key to too many arguments.

gares added 2 commits May 18, 2025 13:02
"Foo.Build T extra" is like "Foo.Axioms T _ extra" but
before typing "extra" it ensures/infers that T has the
needed structue, eg "Foo.Axioms T T__hasThis extra"
In turn this can make the typing of "extra" simpler since
the _ could occur in the expected type of "extra".
gares and others added 9 commits May 19, 2025 23:00
When we build the wrapped we infer the subject.
If the subject has deps, it is inferred as the
sort projection of its canon instance satisfying
all deps.

For now I do a whd, but one should probably be less aggressive.

This needs discussion since subject are GIVEN not inferred, usually.
apparently something is off is deps are mixed between
the subject and its lifted variants
factories on the wrapper subjects do not trigger both the instances on
the wrapped subject. The beahviour when not using the factory is the expected
one
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.

3 participants