From 3b1762d7dfaf3adc56888109718b93066d994a2f Mon Sep 17 00:00:00 2001 From: daviddoret Date: Sat, 27 Jul 2024 18:49:56 +0200 Subject: [PATCH] version 2.0: re-starting from scratch with a new data model. --- .idea/workspace.xml | 35 ++++++++++++++------------------ src/punctilious/meta_theory_1.py | 11 +++++----- 2 files changed, 21 insertions(+), 25 deletions(-) diff --git a/.idea/workspace.xml b/.idea/workspace.xml index c479bbf6..ab01ef83 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -6,12 +6,7 @@ - - - - - diff --git a/src/punctilious/meta_theory_1.py b/src/punctilious/meta_theory_1.py index 7068b72c..e9a4b227 100644 --- a/src/punctilious/meta_theory_1.py +++ b/src/punctilious/meta_theory_1.py @@ -266,16 +266,17 @@ def theory_proves_proposition_external_algorithm(p: as1.Tupl | None = None, a: a t: as1.Theory = as1.coerce_theory(t=a[0], interpret_none_as_empty=False, canonical_conversion=False) p2: as1.Formula = as1.coerce_formula(phi=a[1]) if as1.is_valid_proposition_in_theory_1(p=p2, t=t): - phi: as1.Formula = t | as1.get_connectives().proves | p + phi: as1.Formula = t | as1.get_connectives().proves | p2 return phi else: raise u1.ApplicativeError( - msg='Blablabla', + msg='Proposition `p2` is not valid in theory `t`. ' + 'It follows that `t ⊢ p` cannot be derived.', code=None, - p=p, - a=a, + p2=p2, t=t, - p2=p2 + a=a, + p=p )