wo / tpg

Tree Proof Generator
GNU General Public License v3.0
151 stars 20 forks source link

S4 Formula Infinite Loop Bug #25

Closed hebozhe closed 7 months ago

hebozhe commented 8 months ago

Infinitely regresses: □(□(□A → □(□B ∨ □C)) ↔ □(□(□A → □B) ∨ □(□A → □C)))

Proves Invalid: □(□(□A → □(□B ∨ □C)) → □(□(□A → □B) ∨ □(□A → □C)))

Proves Valid: □(□(□(□A → □B) ∨ □(□A → □C)) → □(□A → □(□B ∨ □C)))

For ease of reading, the subformulae are □(□(□A → □B) ∨ □(□A → □C)) and □(□A → □(□B ∨ □C)).

This is the Gratz translation of intuitionistic formulae, hence all of the squares.

wo commented 8 months ago

Thanks. I'm very busy this week. Can I just double-check: the formula is S4-invalid, but you think the prover is stuck in a loop trying to realize this (when 'reflexive' and 'transitive' are checked)? I suspect it's not actually stuck in a loop, it's just that the modelfinder is painfully slow for non-trivial modal formulas.

hebozhe commented 7 months ago

It appears never to stop, though I only factored the time relative to the time it took to find the countermodel in invalid conditional. If anything, it's space for an optimization.