Skip to content
// what has been checked

The second engine

The constitution's rules were translated, statement by statement, into the input language of clingo 5.8.2, a separate answer set solver: 9,575 clingo statements. The cases below were replayed through it, 129 cases and 1,673 queries, each answer compared with the verdict its pin records. Every answer agrees with the verdict its pin records.

Where it stops

It is a cross-check within this project, not an independent reproduction: a misreading shared by both engines would pass both.

From the method's section What has been checked, and where each check stops, which lists every check the project publishes and where each stops.

What the translation keeps

  • Constants become quoted strings, and $variables become clingo variables.
  • event { eats() } becomes the constant "event:eats".
  • ~atom is negation as failure, ~($a = $b) is !=, and ($a = $b) is =.
  • A disjunction inside a rule body becomes one rule per disjunct.
  • entitled(every person, event { P() }) becomes a rule from person.
  • :accept statements are asserted, as Nibli keeps them.
  • Each query is answered against the stable model of everything asserted before it, which for a stratified program is the perfect model Nibli computes.

What the comparison leaves out

  • admits and derived_only declarations are dropped, because clingo refuses no input, so a statement Nibli refuses is never asserted.
  • :refuse, :accept-scoped and :require statements are skipped, so refusals, scoped loadability and shell checks are not compared.
  • Contradiction scans are not compared.
  • Only cases on the live source run; a counterfactual case edits the source.

The cases replayed

By group: chapter pins 8, custody 83, delivery 3, placement 26, source pins 3, stress 6.

Every case, with its queries and the answers that differ
CaseQueriesAnswers that differ
book-1/01-the-child-with-nobody600
book-1/01-the-child-with-nobody (pins merged from 02-who-counts)290
book-1/03-what-you-are-owed830
book-1/04-whether-it-arrived200
book-1/23-the-shield590
book-1/25-a-prisoner-is-a-person360
book-1/26-where-people-are-put730
book-1/27-the-one-thing-taken410
book-1/source/delivery-receipt360
book-1/source/rights-floor810
book-1/source/universal-standing320
custody/adjudication250
custody/authority-lapse120
custody/closed-conclusions00
custody/execution500
custody/filing-subject-binding50
custody/intake-missing-CustodyIntakeAccessScope40
custody/intake-missing-CustodyIntakeCaseScope40
custody/intake-missing-CustodyIntakeEpochScope40
custody/intake-missing-CustodyIntakeProtectionScope40
custody/intake-missing-CustodyIntakeReconciliationScope40
custody/intake-missing-CustodyIntakeSubjectScope40
custody/intake-missing-CustodyIntakeWindowScope40
custody/merits-conflicting-proof20
custody/merits-disqualified-at-decision20
custody/merits-missing-CustodyAdmissibilityScope50
custody/merits-missing-CustodyConductScope50
custody/merits-missing-CustodyDefencesScope50
custody/merits-missing-CustodyEvidenceScope50
custody/merits-missing-CustodyFinalityScope50
custody/merits-missing-CustodyIncidentScope50
custody/merits-missing-CustodyOffenceScope50
custody/merits-missing-CustodyPriorLawScope50
custody/merits-missing-CustodyProcedureScope50
custody/merits-missing-CustodyProofScope50
custody/merits-missing-CustodyProsecutorScope50
custody/merits-missing-CustodySentenceScope50
custody/merits-missing-CustodySubjectScope50
custody/merits-missing-CustodyVictimScope50
custody/merits-no-authority20
custody/merits-prosecutor-reviewer20
custody/merits-self-review20
custody/merits-subject-reviewer20
custody/merits-victim-reviewer20
custody/placement-absent-place40
custody/placement-conflicting-place40
custody/placement-missing-CustodyPlacementAlternativeScope50
custody/placement-missing-CustodyPlacementAvailabilityScope50
custody/placement-missing-CustodyPlacementEpochScope50
custody/placement-missing-CustodyPlacementLeaseScope50
custody/placement-missing-CustodyPlacementNecessityScope50
custody/placement-missing-CustodyPlacementPlaceScope50
custody/placement-missing-CustodyPlacementProcedureScope50
custody/placement-missing-CustodyPlacementWindowScope50
custody/placement-nonsevere-in-highsec40
custody/placement-self-review40
custody/placement-severe-at-home40
custody/placement-uncredentialed40
custody/placement-unknown-kind40
custody/positive-isolation-findings440
custody/raw-flags110
custody/relief-BarOnRepeatedProceedings60
custody/relief-ConvictionQuashedWithoutRetrial60
custody/relief-CourtJurisdictionOrIndependenceDefect60
custody/relief-DefenceOfOthersEstablished60
custody/relief-DuressEstablished60
custody/relief-FinalAcquittal60
custody/relief-IdentityOrOffenceNotProved60
custody/relief-IncapacityOrAbsentRequiredElementEstablished60
custody/relief-NecessityEstablished60
custody/relief-SelfDefenceEstablished60
custody/relief-SentenceSatisfied60
custody/relief-binding-conflict20
custody/relief-binding-future-order20
custody/relief-binding-no-authority20
custody/relief-binding-no-procedure20
custody/relief-binding-wrong-case20
custody/relief-binding-wrong-evidence20
custody/relief-binding-wrong-incident20
custody/relief-binding-wrong-offence20
custody/relief-binding-wrong-subject20
custody/relief-party-prosecutor-actor20
custody/relief-party-prosecutor-reviewer20
custody/relief-party-self-review-actor20
custody/relief-party-self-review-reviewer20
custody/relief-party-subject-actor20
custody/relief-party-subject-reviewer20
custody/relief-party-trial-adjudicator-actor20
custody/relief-party-trial-adjudicator-reviewer20
custody/relief-party-trial-reviewer-actor20
custody/relief-party-trial-reviewer-reviewer20
custody/relief-party-victim-actor20
custody/relief-party-victim-reviewer20
custody/severity-boundary2210
delivery/no-receipt-no-arrival130
delivery/provider-cannot-witness-itself30
delivery/received-outside-custody100
placement/confined-notsevere-family-home140
placement/confined-notsevere-family-nohome150
placement/confined-notsevere-nofamily-home140
placement/confined-notsevere-nofamily-nohome150
placement/confined-severe-family-home140
placement/confined-severe-family-nohome140
placement/confined-severe-nofamily-home140
placement/confined-severe-nofamily-nohome140
placement/free-notsevere-family-home140
placement/free-notsevere-family-nohome140
placement/free-notsevere-nofamily-home140
placement/free-notsevere-nofamily-nohome140
placement/free-severe-family-home140
placement/free-severe-family-nohome140
placement/free-severe-nofamily-home140
placement/free-severe-nofamily-nohome140
placement/independent-shelter-control40
placement/registered-notsevere-family-home140
placement/registered-notsevere-family-nohome140
placement/registered-notsevere-nofamily-home140
placement/registered-notsevere-nofamily-nohome140
placement/registered-severe-family-home140
placement/registered-severe-family-nohome140
placement/registered-severe-nofamily-home140
placement/registered-severe-nofamily-nohome140
placement/standing-omitted10
stress/agency-and-contractor-blame160
stress/captured-appointments80
stress/core-read-expansively150
stress/election-cannot-be-held220
stress/manipulated-urgency150
stress/never-recorded-person220

The report ↗ · The translator ↗ · Current limits