@@ -598,37 +598,42 @@ partial record Impliesf
598598
599599 partial record Equalsf
600600 {
601+ // A statement equal to a value has a set for its preimage, which the inverter cannot
602+ // write, so it declines, and the solver leaves the equation unsolved.
601603 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
602- => throw new NotSufficientlySupportedException (
603- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
604+ => null ;
604605 }
605606
606607 partial record Greaterf
607608 {
609+ // A statement equal to a value has a set for its preimage, which the inverter cannot
610+ // write, so it declines, and the solver leaves the equation unsolved.
608611 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
609- => throw new NotSufficientlySupportedException (
610- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
612+ => null ;
611613 }
612614
613615 partial record GreaterOrEqualf
614616 {
617+ // A statement equal to a value has a set for its preimage, which the inverter cannot
618+ // write, so it declines, and the solver leaves the equation unsolved.
615619 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
616- => throw new NotSufficientlySupportedException (
617- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
620+ => null ;
618621 }
619622
620623 partial record Lessf
621624 {
625+ // A statement equal to a value has a set for its preimage, which the inverter cannot
626+ // write, so it declines, and the solver leaves the equation unsolved.
622627 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
623- => throw new NotSufficientlySupportedException (
624- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
628+ => null ;
625629 }
626630
627631 partial record LessOrEqualf
628632 {
633+ // A statement equal to a value has a set for its preimage, which the inverter cannot
634+ // write, so it declines, and the solver leaves the equation unsolved.
629635 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
630- => throw new NotSufficientlySupportedException (
631- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
636+ => null ;
632637 }
633638
634639 partial record Set
@@ -701,34 +706,34 @@ partial record Unionf
701706 partial record Intersectionf
702707 {
703708 // f(x) /\ A = value
709+ // Deciding the membership would need a piecewise condition, which is not written
710+ // here; declined.
704711 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
705- => throw new NotSufficientlySupportedException (
706- "Deciding this membership would need a piecewise condition, which is not supported here" ) ;
712+ => null ;
707713 }
708714
709715 partial record SetMinusf
710716 {
711717 // f(x) \ A = value
718+ // Deciding the membership would need a piecewise condition, which is not written
719+ // here; declined.
712720 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
713- => throw new NotSufficientlySupportedException (
714- "Deciding this membership would need a piecewise condition, which is not supported here" ) ;
721+ => null ;
715722 }
716723
717724 partial record Inf
718725 {
719726 // TODO: CSet is needed here => InvertNode to return a Set, not an IEnumerable
720727 // f(x) in A = value
721728 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
722- => throw new NotSufficientlySupportedException (
723- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
729+ => null ;
724730 }
725731
726732 partial record Subsetf
727733 {
728734 // A subset B = value asks for a set of sets, which the inverter cannot return.
729735 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
730- => throw new NotSufficientlySupportedException (
731- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
736+ => null ;
732737 }
733738
734739 partial record IndexedSetOperation
@@ -742,8 +747,7 @@ partial record Powersetf
742747 {
743748 // powerset(f(x)) = value has no inverse the inverter can write.
744749 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
745- => throw new NotSufficientlySupportedException (
746- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
750+ => null ;
747751 }
748752 }
749753
@@ -777,26 +781,23 @@ partial record Cardf
777781 // card(S) = n has every set of n elements for its solutions, which is not something
778782 // the inverter can hand back.
779783 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
780- => throw new NotSufficientlySupportedException (
781- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
784+ => null ;
782785 }
783786
784787 partial record Dividesf
785788 {
786789 // (a divides x) = value has the multiples of a for its solutions -- a set, which the
787790 // inverter cannot return, the same as membership.
788791 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
789- => throw new NotSufficientlySupportedException (
790- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
792+ => null ;
791793 }
792794
793795 partial record Congruentf
794796 {
795797 // (x = b (mod n)) = value has a residue class for its solutions -- a set, which the
796798 // inverter cannot return, the same as divisibility and membership.
797799 private protected override IEnumerable < Entity > ? InvertNode ( Entity value , Entity x )
798- => throw new NotSufficientlySupportedException (
799- "Inverting this node would need a set-valued answer, which the inverter cannot give" ) ;
800+ => null ;
800801 }
801802
802803 partial record Quantifier
0 commit comments