Skip to content

Consistent clearing of deduced data#253

Merged
ScriptRaccoon merged 4 commits into
mainfrom
deduced-column-for-special-objects
Jun 26, 2026
Merged

Consistent clearing of deduced data#253
ScriptRaccoon merged 4 commits into
mainfrom
deduced-column-for-special-objects

Conversation

@ScriptRaccoon

@ScriptRaccoon ScriptRaccoon commented Jun 26, 2026

Copy link
Copy Markdown
Owner

To make each run of the deduction script independent, all deduced information must be cleared first. This was already done for deduced proofs of properties and implications. However, for deduced proofs of properties, the clearing was performed (probably after some recent refactoring) only after the property dictionary was generated, which was too late. As a result, every second run of the script deduced 0 properties, since all entries were already present. This has now been fixed.

Additionally, there was no such clearing for deduced special objects and special morphisms associated with categories. To address this, this PR adds a new column is_deduced to both tables. During the deduction of special objects and morphisms in dual categories, the deduced entries are cleared first, and newly generated entries are marked as deduced.

Moreover, the restriction of representable functors to functors with codomain Set has been moved to the end of the deduction script, and these assignments are now also marked as deduced. This also ensures that each run produces the same output.

this must be done _before_ the properties_dict is generated, otherwise each second deduce run only deduces 0 properties.
@ScriptRaccoon ScriptRaccoon changed the title Add "is_deduced" information for special objects / morphisms Consistent clearing of deduced data Jun 26, 2026
@ScriptRaccoon ScriptRaccoon merged commit 4cf86bd into main Jun 26, 2026
1 check passed
@ScriptRaccoon ScriptRaccoon deleted the deduced-column-for-special-objects branch June 26, 2026 23:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant