Published package / CLIR

logic.core

v0.1.0

Общий словарь логических понятий: система, язык, исчисление, правило, метод, шаг, условие, обоснование

A package can be printed as a standalone module in a general-purpose language that answers without the rules engine: an answer and its status, with no proof, hashes or canonical document. Everything on this page comes from the generation plan built with the index; the gallery computes nothing of its own.

Generation plan

The plan builds: the package can be printed as a module.

plan format
law-backend-plan/0.9
capabilities
aggregate, status:monotone

Checked against package scenarios

Not checked: the package scenarios have not been run against generated modules. A plan that builds does not yet show that the answers coincide.

Target languages

print this plangopyts

refuse this plan · 13
  • bsl версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • cs версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • dart версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • erl версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • ex версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • java версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • kt версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • lua версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • php версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • rb версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • rs версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • scala версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU
  • swift версия плана не поддержана эмиттером: 'law-backend-plan/0.9' (поддержана law-backend-plan/0.7)RU

Print the module from a repository checkout

./law dev backend corpus/clir/logic-core.lawir.json --target ts --target py --target go --out DIR

Module interface

Questions are public relations with a producing rule; inputs are the facts a question reads. Function names follow the language: ask_… in Python, ask.… in TypeScript, Ask… in Go.

Questions · 33

NameParametersMeaningReadsSources
accepts_principletext, textthe system accepts the principleattitude_to_principlesection/10
agrees_heretext, text, textthe two systems agree on the principle: both accept itattitude_to_principlesection/1
answer_conditiontext, text, text, textanswer to under-what-conditions: the condition with its wordingrequires_conditionterm_namesection/13
answer_differencetext, text, text, textanswer to how-do-they-differ: the named principle and how the difference is establishedattitude_to_principlediffers_by_principlesection/1
answer_gradetext, text, enumwhat the piece of knowledge is: definition, source claim, or engine computationknowledge_gradesection/19
answer_languagetext, textin which formal language the system or calculus workscalculus_languagesystem_languagesection/2
answer_limittext, text, textlimit of the method: part of the how-to answer, not a footnote to itmethod_limitsection/12
answer_method_systemtext, textfor which system the method is describedmethod_in_systemsection/12
answer_parttext, dec, text, textanswer to what-are-the-parts: the numbered part and the kind of linkcontains_stephas_conclusionhas_premiseschema_childsection/12section/7section/4
answer_result_formtext, textexpected result form of the methodmethod_result_formsection/12
answer_sourcetext, text, textanswer to which-source: the fragment locator and the item through which it was reachedcontains_stepdefined_viadischarges_assumptionhas_conclusionhas_premisemethod_goalrepresents_systemrequires_conditionrule_of_calculusschema_childschema_slot_refstated_bystep_dischargesstep_needs_principlestep_opens_contextstep_uses_conceptstep_uses_ruleusessection/15section/18
answer_steptext, dec, text, text, textanswer to how-to-apply: the numbered step together with its readable wordingcontains_stepterm_namesection/12
answer_step_dependencytext, text, textdependency between steps of one methodcontains_stepstep_depends_onsection/12
answer_use_groundtext, textwhich earlier application the presented application relies onuse_groundsection/9
answer_used_intext, text, enumanswer to where-used: the calculi the rule belongs to, and in which statusrule_of_calculussection/11
answer_what_istext, text, text, textanswer to what-is: name and gloss in one languageglossterm_namesection/17
attitude_unrecordedtext, textthe present description has not settled the attitude, and says soattitude_to_principlesection/10
differs_heretext, text, textthe two systems differ on the principle: one accepts it, the other rejects itattitude_to_principlesection/1
explainstext, textone unfolding step: by what the item is explainedcontains_stepdefined_viadischarges_assumptionhas_conclusionhas_premisemethod_goalrepresents_systemrequires_conditionrule_of_calculusschema_childschema_slot_refstep_dischargesstep_needs_principlestep_opens_contextstep_uses_conceptstep_uses_ruleusessection/18
foreign_variabletext, textthe schematic variable does not belong to the named owneritem_keyslot_scopesection/5
grounded_in_sourcetextthe explanation of the item reaches a pinned source fragmentcontains_stepdefined_viadischarges_assumptionhas_conclusionhas_premisemethod_goalrepresents_systemrequires_conditionrule_of_calculusschema_childschema_slot_refstated_bystep_dischargesstep_needs_principlestep_opens_contextstep_uses_conceptstep_uses_ruleusessection/18
has_provenancetextthe item carries at least one pinned source locatorstated_bysection/18
instruction_availabletextthe rule has a displayable instruction: at least one premise and a conclusionhas_conclusionhas_premisesection/8
own_variabletext, textthe schematic variable belongs to the named ownerslot_scopesection/5
reach_counttext, dechow many items the unfolding reachescontains_stepdefined_viadischarges_assumptionhas_conclusionhas_premiseitem_keymethod_goalrepresents_systemrequires_conditionrule_of_calculusschema_childschema_slot_refstep_dischargesstep_needs_principlestep_opens_contextstep_uses_conceptstep_uses_ruleusessection/18
reachestext, textreachable by unfolding: transitive closure of the explanation stepcontains_stepdefined_viadischarges_assumptionhas_conclusionhas_premisemethod_goalrepresents_systemrequires_conditionrule_of_calculusschema_childschema_slot_refstep_dischargesstep_needs_principlestep_opens_contextstep_uses_conceptstep_uses_ruleusessection/18
rejects_principletext, textthe system rejects the principleattitude_to_principlesection/10
rule_applied_intext, textthe rule is actually applied in the presented reasoningpresented_stepuse_of_rulesection/16
schema_aritytext, decnumber of immediate constituents of the schemaschema_childschema_shapesection/4
schema_variabletext, textthe schematic variable occurs in the schemaschema_childschema_slot_refsection/5
shown_conclusiontext, texta conclusion actually presented by the reasoning; describing a rule yields nonepresented_stepuse_conclusionsection/16
source_claimtext, textclaim attributed to a source with the given locatorknowledge_gradestated_bysection/19
step_groundtext, textground of the step, of any of the three kindsstep_needs_principlestep_uses_conceptstep_uses_rulesection/15

Inputs · 36

NameParametersMeaning
attitude_to_principletext, text, enumattitude of the system to the principle: accepted, rejected or not settled here
calculus_languagetext, textthe calculus works in this formal language
contains_steptext, dec, textthe method contains a step at the given position
defined_viatext, textthe item is defined through another item
differs_by_principletext, text, textthe two systems differ in their attitude to the named principle
discharges_assumptiontext, textthe rule discharges an assumption of the given form
glosstext, text, textshort gloss of the item in the given language
has_conclusiontext, textthe conclusion of the rule is a schema
has_premisetext, dec, textthe rule has a premise at the given position, and the premise is a schema
item_keytext, textstable machine key of the item
knowledge_gradetext, text, enumprovenance grade of a piece of knowledge about the item
method_goaltext, textgoal of the method: the form of statement it teaches to justify or use
method_in_systemtext, textthe method is described for this logical system
method_limittext, text, textlimit of the method: what it does not deliver
method_result_formtext, textexpected form of the result of the method
presented_steptext, dec, texta presented step of the reasoning: case data, not package content
represents_systemtext, textthe calculus represents the logical system
requires_conditiontext, textthe item requires an applicability condition
rule_of_calculustext, text, enumthe rule belongs to the calculus as basic, derived or admissible
schema_childtext, dec, textimmediate constituent of the schema at the given position
schema_shapetext, textshape of the schema node
schema_slot_reftext, textthe slot node of the schema is occupied by the named schematic variable
slot_scopetext, textscope of the schematic variable: the rule, principle or method declaring it
stated_bytext, textlocator of the pinned source fragment stating the item
step_depends_ontext, textthe step depends on the result of another step
step_dischargestext, textthe step discharges a previously introduced assumption of the given form
step_needs_principletext, textthe step requires the system to accept the named principle
step_opens_contexttext, textthe step opens a subderivation with an assumption of the given form
step_uses_concepttext, textthe step is justified by unpacking the definition of a concept
step_uses_ruletext, textthe step is justified by a rule of a calculus
system_languagetext, textthe system is considered in this formal language
term_nametext, text, textreadable name of the item in the given language
use_conclusiontext, textwhich conclusion the presented application states
use_groundtext, textwhich earlier application this one relies on
use_of_ruletext, textwhich rule the presented application names
usestext, textthe item uses another item without being defined through it