Skip to content
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

Custom block is unexpectedly complicated #135

Open
tekhnus opened this issue Nov 5, 2022 · 5 comments
Open

Custom block is unexpectedly complicated #135

tekhnus opened this issue Nov 5, 2022 · 5 comments

Comments

@tekhnus
Copy link

tekhnus commented Nov 5, 2022

Hi! I have a problem with creating custom blocks.

What did I do: I completed a task and I would like to represent the whole theorem as a custom block for later usage.
Expectations: I hit Ctrl+A, and I expect to get an option to create a custom block which exactly represents the whole theorem.
Reality: the proposed custom block is weird, it has more premises and more variables than the theorem.

Screenshot from 2022-11-05 14-23-53

@nomeata
Copy link
Owner

nomeata commented Nov 5, 2022

You can't really include an assumption in the custom block (it wouldn't exist in other tasks), so it's as if it wasn't selected, and you get the more general custom block you see

If you want a single input, maybe try adding a helper block right after the assumption and include that in your custom block?

@tekhnus
Copy link
Author

tekhnus commented Nov 5, 2022

I did what you proposed and indeed managed to get the desired block; but when I try to use it, it doesn't seem to work:
Screenshot from 2022-11-05 15-42-03

@nomeata
Copy link
Owner

nomeata commented Nov 5, 2022

Hmm, it seems it doesn't generalize the variables enough. Probably the helper block ties the variables down.

You could try to work around it by constructing an identity block first (X->X), and using that instead of the helper block.

@nomeata
Copy link
Owner

nomeata commented Nov 5, 2022

custom
This is what I have in mind

@tekhnus
Copy link
Author

tekhnus commented Nov 7, 2022

Yeah, that works for me, thanks for the advice!
I hope it will eventually work properly without workarounds.

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

No branches or pull requests

2 participants