CN111695805A - Intelligent contract model construction method and system for legal contracts - Google Patents

Intelligent contract model construction method and system for legal contracts Download PDF

Info

Publication number
CN111695805A
CN111695805A CN202010524141.9A CN202010524141A CN111695805A CN 111695805 A CN111695805 A CN 111695805A CN 202010524141 A CN202010524141 A CN 202010524141A CN 111695805 A CN111695805 A CN 111695805A
Authority
CN
China
Prior art keywords
contract
model
template
property
intelligent
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN202010524141.9A
Other languages
Chinese (zh)
Other versions
CN111695805B (en
Inventor
葛宁
蔡维德
李修璇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beihang University
Original Assignee
Beihang University
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beihang University filed Critical Beihang University
Priority to CN202010524141.9A priority Critical patent/CN111695805B/en
Publication of CN111695805A publication Critical patent/CN111695805A/en
Application granted granted Critical
Publication of CN111695805B publication Critical patent/CN111695805B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q10/00Administration; Management
    • G06Q10/06Resources, workflows, human or project management; Enterprise or organisation planning; Enterprise or organisation modelling
    • G06Q10/063Operations research, analysis or management
    • G06Q10/0633Workflow analysis
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q40/00Finance; Insurance; Tax strategies; Processing of corporate or income taxes
    • G06Q40/04Trading; Exchange, e.g. stocks, commodities, derivatives or currency exchange
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06QINFORMATION AND COMMUNICATION TECHNOLOGY [ICT] SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES; SYSTEMS OR METHODS SPECIALLY ADAPTED FOR ADMINISTRATIVE, COMMERCIAL, FINANCIAL, MANAGERIAL OR SUPERVISORY PURPOSES, NOT OTHERWISE PROVIDED FOR
    • G06Q50/00Information and communication technology [ICT] specially adapted for implementation of business processes of specific business sectors, e.g. utilities or tourism
    • G06Q50/10Services
    • G06Q50/18Legal services

Landscapes

  • Business, Economics & Management (AREA)
  • Engineering & Computer Science (AREA)
  • Human Resources & Organizations (AREA)
  • Economics (AREA)
  • Strategic Management (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Business, Economics & Management (AREA)
  • General Physics & Mathematics (AREA)
  • Tourism & Hospitality (AREA)
  • Marketing (AREA)
  • Accounting & Taxation (AREA)
  • Development Economics (AREA)
  • Technology Law (AREA)
  • Finance (AREA)
  • Entrepreneurship & Innovation (AREA)
  • Health & Medical Sciences (AREA)
  • Primary Health Care (AREA)
  • Educational Administration (AREA)
  • General Health & Medical Sciences (AREA)
  • Game Theory and Decision Science (AREA)
  • Operations Research (AREA)
  • Quality & Reliability (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to a legal contract-oriented intelligent contract model construction method and system, belongs to the technical field of legal contract-oriented block chain intelligent contracts, and solves the problems of high communication cost, low development efficiency and difficulty in guaranteeing contract correctness and safety in the conventional intelligent contract model construction process. The method comprises the following steps: generating a contract model template and a contract property template which are matched with the target legal contract based on the type of the target legal contract; acquiring a parameter setting result of a contract model template by a user, configuring the contract model template by using the parameter setting result, and generating an initial intelligent contract model; configuring a contract property template by using the parameter setting result to obtain a contract property set of the initial intelligent contract model; and verifying whether the initial intelligent contract model meets contract properties, if so, passing the verification, and taking the verified initial intelligent contract model as a constructed intelligent contract model.

Description

Intelligent contract model construction method and system for legal contracts
Technical Field
The invention relates to the technical field of block chain intelligent contracts facing legal contracts, in particular to a legal contract-facing intelligent contract model construction method and system.
Background
The method is applied to the field of intelligent block chain contracts facing legal contracts. An intelligent contract is a special protocol that includes code functions, is used to make contracts in a blockchain, can interact with other intelligent contracts, and can make decisions autonomously, store data, send tokens, and the like. The biggest characteristic of the intelligent contract is that the transaction on the intelligent contract is traceable and irreversible. The technology of decentralized, public, non-falsification and the like of the block chain guarantees the credibility of the intelligent contract to a certain extent, and the intelligent contract is wide in application scene and wide in prospect.
However, the development mode of the intelligent contract is still to be perfected at present: on one hand, software engineers developing intelligent contracts have no legal basis, and legal workers and contract participants are difficult to participate in the development of intelligent contract codes due to the lack of software development knowledge, so that the communication cost of multi-party collaborative development of intelligent contracts is high, the development efficiency is low, and the contract correctness is difficult to guarantee; on the other hand, an intelligent contract is difficult to modify and update once online, which means that it is crucial to ensure the correctness and security of the intelligent contract before the intelligent contract is online for the first time, and once the logic of contract terms or the content of the contract are wrong due to legal and legal problems, a security hole of the contract can be caused, and a great amount of property loss can be caused.
In the existing method, lawyers often analyze and interpret each legal contract instance one by one, or a natural language processing technology is adopted to automatically extract key contents in contracts, such as an OpenLaw technology, and software engineers manually compile contracts into intelligent contract codes on the basis of interpreting contracts, so that the development efficiency of the intelligent contract codes is low, the problem of contract code correctness caused by legal contract interpretation and understanding is difficult to avoid, and serious potential safety hazards are brought to intelligent contract operation.
Disclosure of Invention
In view of the above analysis, the present invention aims to provide a legal contract-oriented intelligent contract model construction method and system, so as to solve the problems of high communication cost, low development efficiency, and difficult guarantee of contract correctness and security in the existing intelligent contract model construction process.
The purpose of the invention is mainly realized by the following technical scheme:
in one aspect, a method for constructing an intelligent contract model for legal contracts is provided, which comprises the following steps:
step S1: generating a contract model template and a contract property template matching a target legal contract based on the type of the target legal contract;
step S2: acquiring a parameter setting result of a user on the contract model template, and configuring the contract model template by using the parameter setting result to generate an initial intelligent contract model;
step S3: configuring the contract property template by using the parameter setting result to obtain a contract property set of the initial intelligent contract model; one or more contract properties are included in the contract property set;
step S4: and verifying whether the initial intelligent contract model meets the contract property, if so, passing the verification, and taking the verified initial intelligent contract model as a constructed intelligent contract model.
On the basis of the method, the invention also makes the following improvements:
further, the contract model template comprises contract events, contract processes and contract parameters; wherein the contract event is used to define a transaction event in the execution process of each contract term in the target legal contract; the contract flow is used for defining a logic process of the target legal contract execution, and the contract parameters are used for defining variables involved in the contract flow;
in the process of generating the contract model template, the contract process is firstly identified and obtained based on the type of the target legal contract, and contract events and contract parameters related in the contract process are obtained based on the contract process.
Further, the contract flow comprises a main flow and an optional flow; the main flow is used for representing a main part of a legal flow, and the optional flow is used for representing an optional part of the legal flow;
and configuring the main process and all optional processes which can be selected by a user in the process of generating the contract model template.
Further, in the step S1, the contract property template is generated based on the contract flow and the contract parameters in the contract model template;
the contract property template comprises property template description, an LTL expression and parameters to be configured; and the global variable names of the parameters to be configured and the corresponding contract parameters are the same.
Further, in the step S2, the parameter setting result includes the logic configuration of the contract flow and the contract parameter configuration;
determining an optional flow selected to be loaded by a user based on the logic configuration;
and determining the specific values of the contract parameters in the contract model template and the specific values of the parameters to be configured in the contract property template based on the contract parameter configuration.
Further, in the step S2,
configuring the main process and the optional process of the contract model template based on the logic configuration to obtain a configured contract process;
and endowing the specific values of the contract parameters to corresponding contract parameters in a contract model template with a configured contract process to generate an initial intelligent contract model.
Further, in the step S3, the parameters to be configured in the contract property template are configured by using the parameter setting result, so as to obtain the contract property set of the initial intelligent contract model.
Further, the contract model template is generated by utilizing a time automaton.
Further, in the step S4, a uppal model detection tool is used to verify whether the initial intelligent contract model satisfies the contract property.
In another aspect, an intelligent contract model building system for legal contracts is provided, the system comprising:
the contract model template and contract property template generating module is used for generating a contract model template and a contract property template matched with the target legal contract based on the type of the target legal contract;
the initial intelligent contract model generation module is used for acquiring a parameter setting result of the contract model template by a user, configuring the contract model template by using the parameter setting result and generating an initial intelligent contract model;
a contract property set obtaining module, configured to configure the contract property template by using the parameter setting result, to obtain a contract property set of the initial intelligent contract model; one or more contract properties are included in the contract property set;
the intelligent contract model construction module is used for verifying whether the initial intelligent contract model meets the contract property, if so, the verification is passed, and the verified initial intelligent contract model is used as the constructed intelligent contract model
The invention has the following beneficial effects:
the intelligent contract model construction method and system for legal contracts disclosed by the invention have the following advantages:
(1) the scheme provides a standard legal contract model template and a contract property template for contracts such as lawyers, contract participants and the like to users, the contract model template and the contract property template are customized and developed by software engineers for each type of contract, and the processes, events and parameters of the contract are solidified; the system also provides a convenient contract configuration front end for lawyers and contract participants, and facilitates users to select a contract process and fill in contract parameters; the problem of low communication efficiency between legal personnel and computer personnel in the existing intelligent contract development is solved;
(2) the method and the system can ensure the correctness of the constructed intelligent contract model by performing formal verification on the generated initial intelligent contract model, can feed back contract error information on the intelligent contract model level in the formal verification process, and can feed back error information to lawyers and contract participants before constructing the intelligent contract code to assist in correcting contract contents in time. The correctness of the generated code is ensured to a certain extent, and the economic loss caused by the intelligent contract code not meeting the legal terms is reduced. After the steps are completed, a correct contract model instance is formed, and automatic code generation tools can be developed according to different intelligent contract languages. In addition, the expression structure in the contract property template in the scheme has universality, so that the software engineer can conveniently reuse the property, and the workload of formal verification is reduced;
in the invention, the technical schemes can be combined with each other to realize more preferable combination schemes. Additional features and advantages of the invention will be set forth in the description which follows, and in part will be obvious from the description, or may be learned by practice of the invention. The objectives and other advantages of the invention will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, wherein like reference numerals are used to designate like parts throughout.
FIG. 1 is a flowchart of a method for constructing an intelligent contract model for legal contracts in embodiment 1 of the present invention;
FIG. 2 is a schematic diagram of a contract model template in embodiment 1 of the present invention;
FIG. 3 is a schematic view of a contract flow in embodiment 1 of the present invention;
FIG. 4 is a schematic diagram of the relationship between the contract model template, the contract property template, the initial intelligent contract template, and the contract property set in embodiment 1 of the present invention;
fig. 5 is a flowchart of an intelligent contract model building method formed by taking a second-hand house transaction contract as an example in embodiment 2 of the present invention;
fig. 6 is a schematic structural diagram of an intelligent contract model building system for legal contracts in embodiment 3 of the present invention.
Detailed Description
The accompanying drawings, which are incorporated in and constitute a part of this application, illustrate preferred embodiments of the invention and together with the description, serve to explain the principles of the invention and not to limit the scope of the invention.
Example 1
The embodiment 1 of the invention discloses an intelligent contract model construction method facing legal contracts, a flow chart is shown in figure 1, and the method comprises the following steps:
step S1: generating a contract model template and a contract property template matching a target legal contract based on the type of the target legal contract;
wherein the contract model template is used for defining contract events, contract flows and contract parameters related to each contract clause in the target legal contract; the contract property template is used to define the behavioral properties that must be satisfied during the automatic execution of each contract term in the target legal contract. FIG. 2 shows a contract flow of a contract model template in the time automaton, which further includes contract events such as punishBuyer, submitLate, paymentApended, submitReg, returneg, submitReg, and the like, and contract parameters such as tolTime, regDeadline, and the like.
Step S11: generating a contract model template:
the contract model template comprises contract events, contract processes and contract parameters; wherein the contract event is used to define a transaction event in the execution process of each contract term in the target legal contract; the contract flow is used to define the logical process of the target legal contract execution, and the contract parameters are used to define the variables involved in the contract flow.
In the process of generating the contract model template, the contract flow is firstly identified and obtained based on the type of the target legal contract, and contract events and contract parameters related in the contract flow are obtained based on the contract flow. That is, the contract flow is executed to a certain transaction step, and whether transaction conditions are met is firstly checked, wherein some transaction conditions are formed by contract parameters; after the transaction condition is satisfied, the transaction step can be executed if a relevant transaction triggering event is received. Therefore, in the embodiment, the contract event, the contract flow and the contract parameters cooperate together to form a complete contract model template.
Preferably, since most legal processes are closely related to time, we choose the time automaton (timedautotoman) model to define the contract model template, and in particular, the definition of the contract model template can be done in the upal tool. The time automaton expands time semantics on the basis of automaton theory, supports formalized modeling of time behaviors and functions of the system, can analyze and verify the time behaviors and functions of the system based on the model, and is suitable for describing time trigger conditions in contract delivery terms and effective terms and also suitable for describing execution behaviors of other terms. In addition, the temporal automaton model supports model simulation and formal verification of the model. Modeling the contract model template with a time automaton can clearly express variable assignments, state transition conditions and state update behaviors in the system. The state conversion of the time automaton corresponds to one transaction step in contract clauses, wherein the condition for successful execution of the transaction step corresponds to guard in the time automaton, and the execution behavior when the condition is established corresponds to assignment of the time automaton. In addition, a synchronizer (synchronization) of the time automata associates logics of a plurality of template flows by transmitting and receiving the same event, expresses an influence on other time automata when one time automata operates, and determines the operation right of each time automata. Since the legal contract contains a plurality of processes, the synchronizer can organically combine the plurality of processes together by sending and receiving events, so that the system becomes a system and the running right is transferred. On the other hand, the time automaton model may perform a formal verification of the specified property in the UPPAAL tool.
In order to ensure that the intelligent contract is consistent with the legal process, the contract model template should be able to express all possible states and the conversion relationship between the states in the law enforcement process. Therefore, the contract flow in the contract model template should conform to the configurable principle, as shown in fig. 3, the contract flow includes the following two main parts: (1) a main process: the main part of the legal process is the process followed by all similar legal contracts; (2) optional flow: the optional part of the legal process, different contract participants may have different abilities and requirements, they select a branch in the process according to their own abilities and conditions, and after the optional process is completed, the execution state returns to the main process. Therefore, in the process of generating the contract model template, the main process and all optional processes which can be selected by the user need to be configured. In the contract model template, in addition to the logic information of the setting process (i.e. contract process), the variable information (i.e. contract parameters) of the main process and the optional process should be included, and the final contract entity is obtained by adding the contract parameters to the contract process. Illustratively, the contract flow in the time automaton includes definitions of contract parameters, such as contract participant, target, asset type, target asset price constraint, trade start time, trade end time, etc., but does not define specific values for the parameters. The specific indication of the parameter, the definition position of the variable and the updating position are determined according to the requirement of the user.
Step S12: generating a contract property template:
the contract property template may be written by a software engineer based on a Linear Temporal Logic language (LTL). The contract property template comprises an expression which is satisfied in the execution process of contract terms, and the expression is correspondingly set based on a contract flow and contract parameters in the contract model template. The expression comprises a state formula and a path formula, wherein the state formula is used for describing each state of the execution behavior of the contract model template, and the state formula can be composed of states and logical operators. Illustratively, a deadlock condition (a state formula) is represented by the deadlock key alone, for querying whether a system state, such as deadlock, is satisfied. The path formula is used to quantify the path or trajectory of the contract model template. The path formula can be divided into three types of reachability, security, and survivability.
Reachability path formula: the reach condition represents whether a given state can be satisfied by a certain reachable state. For example, E < > p represents that state p is true at some state of some path.
Security path formula: security conditions are typically used to confirm that a certain situation does not occur under any circumstances. For example, A [ ] p represents that state p is true in all states in all paths, and E [ ] p represents that state p is true in all states in one of the longest paths.
Survivability path formula: survivability conditions are used to confirm whether a certain condition will eventually occur. For example, A < > p represents that p will be true in some state regardless of the path. One particular expression is p- > q, which means that if p is true, then q must also be true.
An example of the contract property template in the embodiment of the present invention is shown in table 1.
TABLE 1 example contract Property templates in an embodiment of the invention
Figure BDA0002533119460000091
For example, in a second-hand house deal transaction, a buy house may reach a state of accountability for some reason. In the contract property template provided by the embodiment, the specific reason for accountability is not concerned, and only the accessibility of the accountability state is concerned. Its LTL properties correspond to modified properties 1 in table 1. The explanation is as follows: the accountability state of the house is buy.
Step S2: acquiring a parameter setting result of a user on the contract model template, and configuring the contract model template by using the parameter setting result to generate an initial intelligent contract model;
preferably, the parameter setting result includes a logic configuration of the contract flow and the contract parameter configuration. Determining an optional flow selected to be loaded by a user based on the logic configuration; and determining the specific values of the contract parameters in the contract model template and the specific values of the parameters to be configured in the contract property template based on the contract parameter configuration.
In the step S2, the step S,
step S21: configuring the main process and the optional process of the contract model template based on the logic configuration to obtain a configured contract process;
step S22: and endowing the specific values of the contract parameters to corresponding contract parameters in a contract model template with a configured contract process to generate an initial intelligent contract model.
Illustratively, the embodiment provides an interactive interface for a user so as to receive a parameter setting result input by the user. In order to receive user input and combine the input parameters and the logic variables with the time automata template so as to generate a complete time automata model, a front-end homepage built based on a React frame is used as an intelligent contract model configuration tool in the embodiment. The specific technical scheme is as follows:
1. a front end frame: js framework. Js is a JavaScript library for constructing a user interface, and has the characteristics of declarative and componentization. Data update and maintenance of the processing page component is facilitated.
2. Page UI: a MaterialUI library. The components contained in the library have the characteristics of Material Design advocated by Google, are consistent with the Design style of numerous popular websites at present, and are high in user friendliness.
3. A database: MySql database. MySql is a mature relational database and is mainly used for storing contract templates required by configuration tools.
Illustratively, users (e.g., law workers and contract participants) can select contract model templates in a front-end homepage according to the type of contract desired, and the system automatically acquires a backbone flow and allows the user to configure alternative flows. The user fills in specific values for parameters such as contract participant, target, asset type, target asset price constraints, contract payment start time, contract payment end time, etc. The front end transmits the configuration information to the time automaton template, and the time automaton template are automatically combined to form a complete time automaton model, namely an intelligent legal contract model.
Step S3: configuring the contract property template by using the parameter setting result to obtain a contract property set of the initial intelligent contract model; one or more contract properties are included in the contract property set; FIG. 4 is a diagram illustrating the relationship between a contract model template, a contract property template, an initial intelligent contract template, and a contract property set;
it should be noted that in this embodiment, a unique global variable name is set for each of the contract parameters, so that the parameter setting result can be matched with the corresponding parameter in the contract model template and the contract property template.
Illustratively, the contract parameter tolTime is both one of the contract parameters in the contract property template (see fig. 2) and the parameter to be configured used in the contract property template (see the contract property numbered 4 in table 1). the specific value 10 (as a parameter setting result) is input by the user through the front-end page, the front-end page records tolTime as 10, the tolTime variable is globally unique, and the value of the tolTime variable can be assigned to tolTime in the contract model template or to tolTime in the contract property template. The above procedure is used to verify the correctness of the user input. The method for verifying the correctness of the template comprises the following steps: given a reasonable range of tolTime, e.g., [0,10], the UPPAAL tool will automatically verify that templates within this range are all correct.
Step S4: verifying whether the initial intelligent contract model meets the contract property, if so, passing the verification, and taking the verified initial intelligent contract model as a constructed intelligent contract model; otherwise, the verification is not passed.
If the verification fails, the verification may be caused by an error in the obtained parameter setting result (i.e., the parameters filled by the user) or an error in the contract model template.
For the case of wrong parameter setting result, the reason for such a mistake is that the parameter setting is not reasonable, for example, some transaction flows have complicated logic and involve multiple time parameters, and if the time parameters are not reasonable, a logic conflict may occur in the flow, such as requiring payment within 10 days, otherwise, a default, and simultaneously requiring shipping within 10 days after payment. And the seller is required to default if the goods are not received in 9 days after the payment of the user. Thus, the user may want to check the time parameter if the authentication is not passed. If there is no problem in the time parameters, it may be that the generated contract model template has a problem, for example, the logic of the contract flow in the contract model template is wrong, and the contract model template is modified. Which kind of error is identified by the feedback information provided by the uppal.
To ensure that the configuration-generated intelligent contract model satisfies the properties in a legal contract, the model is formally validated. Specifically, the verification process of the intelligent contract model is realized by the following steps: the LTL properties were verified in a time automaton model. Illustratively, the present embodiment employs a uppal model detection tool, which can perform automatic formal verification on the formed intelligent contract model to verify whether the target properties of the model are satisfied. UPPAAL is a tool that can graphically build a time automaton model and also support simulation, writing verification conditions and running formal verification. And when the target property is not satisfied, feeding back a counter-example scene automatically generated by UPPAAL to the user, assisting the user to modify contract content, and regenerating an intelligent contract model.
The intelligent contract model construction method facing the legal contract can provide a contract model template and a contract property template which are matched with a target legal contract; and the initial intelligent contract model and the target property (namely the contract property set of the intelligent contract model) are generated by configuring the parameters in the template, and the intelligent contract model can be automatically subjected to the formalized verification based on the model detection. The measures can greatly improve the development efficiency of the intelligent contract codes facing the legal contract, reduce the manual participation and improve the safety of the intelligent contract.
Example 2
In embodiment 2 of the present invention, the second-hand room transaction contract is taken as an example of a target legal contract, and the technical solution in the embodiment of the present invention is clearly and completely described. It should be noted that, in the light of the technical content disclosed in the present invention, those skilled in the art can apply it to other financial transaction contracts, such as bank financial product contracts, online shopping contracts, etc.; or to other blockchain platforms such as etherhouses, hyper book Fabric, EOS, Libra blockchain platforms, etc. Now, with reference to the flow chart of the intelligent contract model construction of legal contracts shown in fig. 5, the specific steps P01-P05 are described in detail as follows:
step P01: and determining the second-hand room transaction contract as a target legal contract category, and generating a contract model template and a contract property template which are matched with the target legal contract. In particular, the amount of the solvent to be used,
step P011: and generating a contract model template corresponding to the second-hand room transaction contract in the UPPAAL tool. The contract model template comprises contract events, contract processes and contract parameters. The contract event defines a transaction event in the execution of contract terms, the contract flow describes the logical process of contract execution, and the contract parameters describe the relevant variables in the flow. The contract process uses contract events and contract parameters. The three are matched together to form a complete contract model template. In this example, the contract flow includes a main flow and a configuration flow, the main flow is composed of a comparison selection link such as buyer payment, seller submitting house information, government department auditing information, and the like, and the selectable flow is composed of a configurable link such as a payment mode (including one-time payment, installment payment and loan) and the like; the contract parameters are the agreed contents of the parties A and B in terms of contract targets, house prices, payment dates, delivery dates and the like.
Step P012: and generating a contract property template of the second-hand house transaction contract. The contract property template is independent of the contract model template, but embodies the properties that the contract model template should satisfy. The contract property template contains parameters in contract terms. Each legal provision executed in the intelligent contract code is manually defined in the contract property template, and each legal provision is composed of two parts of contents: triggering conditions of contract terms, wherein the triggering conditions need to be triggered in a correct manner at correct time; executing contract clause, wherein the triggered contract clause should execute correct contract action. The contract property template is associated with the contract model template by events and parameters in the contract terms. The contract property template is described in the Linear Temporal Logic (LTL) (Linear temporal logic) language and is invisible to the user, and the parameter values in the contract property template are derived from the contract parameter assignments. In this embodiment, a contract property template of the second-hand house transaction contract is defined, for example: and completing house passing within 30 days after the delivery of the whole money, and enabling the contract completion state to be reachable, and the like. Table 1 gives four contract property templates described by LTL. Wherein, the properties 1-3 do not contain configuration parameters, and the specific values of the parameters self.
Step P02: and configuring the process and parameters of the contract model template. And selecting a configuration flow in the contract model template by the contract participants, filling contract parameters in the contract model template, and generating the intelligent contract model.
Step P021: the contract configuration front end presents contract texts and contract configuration options in a web mode, and the contract model template is defined based on the time automaton model. A model template based on the time automata defines a main flow and an optional flow of a second-hand room transaction contract, various events and various parameters related to transaction in the flow, and specific values of the parameters are not defined. The manually configured contract model template flow and the specific parameter values are transmitted to the time automaton model template, the time automaton model is automatically configured, and the model parameters are filled in, so that a complete intelligent contract model can be formed.
Step P03: configuring the contract property template by using the parameter setting result to obtain a contract property set of the initial intelligent contract model; one or more contract properties are included in the contract property set; in the process, according to the manually configured contract flow and contract parameters, the filled contract parameters are automatically filled into a contract property template to form a contract property set of the initial intelligent contract model.
Step P04: formal verification of the intelligent contract model.
And formally verifying whether the intelligent contract model meets the contract property by using a model detection method, namely verifying whether the contract property is correct. The form verification method is used for verifying the correctness of certain form specifications or attributes by using a mathematical method in the design process of a software system, and can be used for verifying the transaction execution property in the intelligent contract. In the invention, a UPPAAL model detection tool is utilized to automatically verify the LTL property on an intelligent legal contract model (namely a time automaton model). The automatic verification process performs the following four things: mapping a formal constraint model into a model state space by using a UPPAAL tool, wherein the model state space comprises all states generated in the system execution process and the relationship among the states; expressing each property in the intelligent contract property set as a time sequence logic property (namely the contract property); using UPPAAL model detection tool to automatically verify the satisfaction of time sequence logic property in model state space; if the contract model meets the requirements, the construction of the intelligent contract model is completed; and fourthly, when the chronological logic property is not satisfied, feeding back the scene which does not satisfy the property to the user.
Step P05: and (5) correcting the intelligent contract model. And if the property verification result of the intelligent contract model is wrong, feeding back wrong contract clause information, returning to the step P02, modifying contract contents by the user, re-filling the contract property template of the contract model template, generating a new intelligent contract model and an intelligent contract property set according to the step P03, and performing formal verification on the intelligent contract model based on the step P04. And finally, completing the construction of the intelligent contract model.
Example 3
The embodiment provides an intelligent contract model building system for legal contracts, a structural schematic diagram of which is shown in fig. 6, and the system includes: the contract model template and contract property template generating module is used for generating a contract model template and a contract property template matched with the target legal contract based on the type of the target legal contract; the initial intelligent contract model generation module is used for acquiring a parameter setting result of the contract model template by a user, configuring the contract model template by using the parameter setting result and generating an initial intelligent contract model; a contract property set obtaining module, configured to configure the contract property template by using the parameter setting result, to obtain a contract property set of the initial intelligent contract model; one or more contract properties are included in the contract property set; and the intelligent contract model construction module is used for verifying whether the initial intelligent contract model meets the contract property, if so, the verification is passed, and the verified initial intelligent contract model is used as the constructed intelligent contract model.
The specific implementation process of the system embodiment of the present invention may refer to the method embodiment described above, and this embodiment is not described herein again. Since the principle of the embodiment of the system is the same as that of the embodiment of the method, the system also has the corresponding technical effect of the embodiment of the method.
Those skilled in the art will appreciate that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium, to instruct related hardware. The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.

Claims (10)

1. An intelligent contract model construction method for legal contracts is characterized by comprising the following steps:
step S1: generating a contract model template and a contract property template matching a target legal contract based on the type of the target legal contract;
step S2: acquiring a parameter setting result of a user on the contract model template, and configuring the contract model template by using the parameter setting result to generate an initial intelligent contract model;
step S3: configuring the contract property template by using the parameter setting result to obtain a contract property set of the initial intelligent contract model; one or more contract properties are included in the contract property set;
step S4: and verifying whether the initial intelligent contract model meets the contract property, if so, passing the verification, and taking the verified initial intelligent contract model as a constructed intelligent contract model.
2. The intelligent contract model construction method for legal contracts according to claim 1, wherein the contract model template contains contract events, contract flows and contract parameters; wherein the contract event is used to define a transaction event in the execution process of each contract term in the target legal contract; the contract flow is used for defining a logic process of the target legal contract execution, and the contract parameters are used for defining variables involved in the contract flow;
in the process of generating the contract model template, the contract process is firstly identified and obtained based on the type of the target legal contract, and contract events and contract parameters related in the contract process are obtained based on the contract process.
3. The intelligent contract model building method for legal contracts according to claim 2, wherein the contract processes include a main process and an optional process; the main flow is used for representing a main part of a legal flow, and the optional flow is used for representing an optional part of the legal flow;
and configuring the main process and all optional processes which can be selected by a user in the process of generating the contract model template.
4. The intelligent contract model building method for legal contracts according to claim 3, wherein in the step S1, the contract property template is generated based on contract flow and contract parameters in the contract model template;
the contract property template comprises property template description, an LTL expression and parameters to be configured; and the global variable names of the parameters to be configured and the corresponding contract parameters are the same.
5. The intelligent contract model building method for legal contracts according to claim 4, wherein in the step S2, the parameter setting result includes the logic configuration of the contract flow and the contract parameter configuration;
determining an optional flow selected to be loaded by a user based on the logic configuration;
and determining the specific values of the contract parameters in the contract model template and the specific values of the parameters to be configured in the contract property template based on the contract parameter configuration.
6. The intelligent contract model building method for legal contracts according to claim 5, wherein in said step S2,
configuring the main process and the optional process of the contract model template based on the logic configuration to obtain a configured contract process;
and endowing the specific values of the contract parameters to corresponding contract parameters in a contract model template with a configured contract process to generate an initial intelligent contract model.
7. The method for building an intelligent contract model for legal contracts according to claim 6, wherein in the step S3, parameters to be configured in the contract property template are configured by using the parameter setting result, so as to obtain a contract property set of the initial intelligent contract model.
8. An intelligent contract model building method for legal contracts according to claims 1-7, characterized in that the contract model templates are generated using time automata.
9. The intelligent contract model building method for legal contracts according to claim 1, wherein in step S4, a uppal model detection tool is used to verify whether the initial intelligent contract model satisfies the contract properties.
10. An intelligent contract model building system for legal contracts, the system comprising:
the contract model template and contract property template generating module is used for generating a contract model template and a contract property template matched with the target legal contract based on the type of the target legal contract;
the initial intelligent contract model generation module is used for acquiring a parameter setting result of the contract model template by a user, configuring the contract model template by using the parameter setting result and generating an initial intelligent contract model;
a contract property set obtaining module, configured to configure the contract property template by using the parameter setting result, to obtain a contract property set of the initial intelligent contract model; one or more contract properties are included in the contract property set;
and the intelligent contract model construction module is used for verifying whether the initial intelligent contract model meets the contract property, if so, the verification is passed, and the verified initial intelligent contract model is used as the constructed intelligent contract model.
CN202010524141.9A 2020-06-10 2020-06-10 Intelligent contract model construction method and system for legal contracts Active CN111695805B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010524141.9A CN111695805B (en) 2020-06-10 2020-06-10 Intelligent contract model construction method and system for legal contracts

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010524141.9A CN111695805B (en) 2020-06-10 2020-06-10 Intelligent contract model construction method and system for legal contracts

Publications (2)

Publication Number Publication Date
CN111695805A true CN111695805A (en) 2020-09-22
CN111695805B CN111695805B (en) 2022-09-27

Family

ID=72480087

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010524141.9A Active CN111695805B (en) 2020-06-10 2020-06-10 Intelligent contract model construction method and system for legal contracts

Country Status (1)

Country Link
CN (1) CN111695805B (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112785463A (en) * 2021-01-22 2021-05-11 深圳市瀚兰区块链地产有限公司 Processing method, device and system for intelligent house property contract
CN113448592A (en) * 2021-02-08 2021-09-28 北京科技大学 Intelligent legal contract generation method based on contract text markup language
CN117234488A (en) * 2023-10-26 2023-12-15 中央财经大学 Intelligent legal contract generation method and device based on EPC model
CN117311726A (en) * 2023-10-26 2023-12-29 中央财经大学 Intelligent legal contract generation method and device, electronic equipment and storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012022536A (en) * 2010-07-15 2012-02-02 Hitachi Ltd Source code inspection method and source code inspection apparatus
CN104240092A (en) * 2014-04-18 2014-12-24 天津大学 Multi-party contract signing protocol fairness verification method based on CSP# and LTL
US20150039355A1 (en) * 2013-08-01 2015-02-05 Amadeus S.A.S, Contract number allocation for travel industry transactions
US20170139678A1 (en) * 2014-04-17 2017-05-18 Nec Corporation Verification property integration apparatus, verification property integration method, and storage medium
CN109150833A (en) * 2018-07-19 2019-01-04 华东交通大学 A kind of Secure Protocol Formal Verification Method based on model inspection
CN109492983A (en) * 2018-09-26 2019-03-19 深圳壹账通智能科技有限公司 E-seal based on block chain intelligence contract signs method and apparatus
CN110097364A (en) * 2019-04-30 2019-08-06 翟红鹰 Block chain intelligence contract modularization generation method, system, terminal and storage medium
US20200034469A1 (en) * 2018-07-29 2020-01-30 International Business Machines Corporation Automatic generation of smart contracts
CN111062038A (en) * 2019-11-23 2020-04-24 同济大学 Intelligent contract formalization verification system and method based on state space
CN111127150A (en) * 2019-12-23 2020-05-08 卓尔智联(武汉)研究院有限公司 Intelligent contract demand matching method and device based on block chain and computer equipment

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012022536A (en) * 2010-07-15 2012-02-02 Hitachi Ltd Source code inspection method and source code inspection apparatus
US20150039355A1 (en) * 2013-08-01 2015-02-05 Amadeus S.A.S, Contract number allocation for travel industry transactions
US20170139678A1 (en) * 2014-04-17 2017-05-18 Nec Corporation Verification property integration apparatus, verification property integration method, and storage medium
CN104240092A (en) * 2014-04-18 2014-12-24 天津大学 Multi-party contract signing protocol fairness verification method based on CSP# and LTL
CN109150833A (en) * 2018-07-19 2019-01-04 华东交通大学 A kind of Secure Protocol Formal Verification Method based on model inspection
US20200034469A1 (en) * 2018-07-29 2020-01-30 International Business Machines Corporation Automatic generation of smart contracts
CN109492983A (en) * 2018-09-26 2019-03-19 深圳壹账通智能科技有限公司 E-seal based on block chain intelligence contract signs method and apparatus
CN110097364A (en) * 2019-04-30 2019-08-06 翟红鹰 Block chain intelligence contract modularization generation method, system, terminal and storage medium
CN111062038A (en) * 2019-11-23 2020-04-24 同济大学 Intelligent contract formalization verification system and method based on state space
CN111127150A (en) * 2019-12-23 2020-05-08 卓尔智联(武汉)研究院有限公司 Intelligent contract demand matching method and device based on block chain and computer equipment

Non-Patent Citations (8)

* Cited by examiner, † Cited by third party
Title
GUOQING WANG等: "Exact acceleration of complex real-time model checking based on overlapping cycle", 《PEERJ COMPUT SCI》 *
TIZIANA MARGARIA等: "Leveraging Applications of Formal Methods, Verification and Validation. Industrial Practice", 《8TH INTERNATIONAL SYMPOSIUM》 *
VAIBHAV SAINI: "区块链技术精华:四十种智能合约支持平台", 《INFOQ HTTP://INFOQ.CN/ARTICLE/TBI8TE2M_EA0WFLG6SCS》 *
张辰等: "等价关系矩阵的置换合同性质与标准形计算", 《计算机工程与应用》 *
潘诚等: "一种实时***时间约束验证方法研究", 《计算技术与自动化》 *
罗永魁: "构建核电企业合同范本体系", 《中国电力企业管理》 *
蔡维德: "基于区块链的应用***开发方法研究", 《软件学报》 *
陈波: "预约合同研究", 《科技经济导刊》 *

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112785463A (en) * 2021-01-22 2021-05-11 深圳市瀚兰区块链地产有限公司 Processing method, device and system for intelligent house property contract
CN113448592A (en) * 2021-02-08 2021-09-28 北京科技大学 Intelligent legal contract generation method based on contract text markup language
CN117234488A (en) * 2023-10-26 2023-12-15 中央财经大学 Intelligent legal contract generation method and device based on EPC model
CN117311726A (en) * 2023-10-26 2023-12-29 中央财经大学 Intelligent legal contract generation method and device, electronic equipment and storage medium
CN117234488B (en) * 2023-10-26 2024-03-15 中央财经大学 Intelligent legal contract generation method and device based on EPC model
CN117311726B (en) * 2023-10-26 2024-04-09 中央财经大学 Intelligent legal contract generation method and device, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111695805B (en) 2022-09-27

Similar Documents

Publication Publication Date Title
CN111695805B (en) Intelligent contract model construction method and system for legal contracts
US11487529B2 (en) User interface that integrates plural client portals in plural user interface portions through sharing of one or more log records
CN107273117B (en) Programming-friendly agile code automatic generation system
CN107291450B (en) Programming-friendly agile code automatic generation method
Brambilla et al. Process modeling in web applications
US20090319544A1 (en) Facilitating integration of different computer data systems
CN114625353A (en) Model framework code generation system and method
Da Silva et al. Towards a Test Specification Language for Information Systems: Focus on Data Entity and State Machine Tests.
Campagna et al. Product and production process modeling and configuration
Montilva et al. BMM: A business modeling method for information systems development
CN103218217A (en) Automated implementation of business service communication and/or linkage of executable processes through automatic generation and population of variables
Nazaruka et al. Verification of BPMN model functional completeness by using the topological functioning model
Kulkarni Model driven development of business applications: a practitioner's perspective
Rahman et al. A Framework for Modelling Blockchain based Supply Chain Management System to ensure soundness of Smart Contract Workflow.
Fraternali et al. Multi-level tests for model driven web applications
Dawood Toward requirements and design traceability using natural language processing
Gönczy et al. Methodologies for model-driven development and deployment: An overview
Malavolta Software Architecture Modeling by Reuse, Composition and Customization
Bogado et al. DEVS-based methodological framework for multi-quality attribute evaluation using software architectures
Atencio et al. Automatic generation of web applications for information systems
Escott et al. Architecture-centric model-driven web engineering
AMMARI A teaching platform for QDA
Ráth Event-driven model transformations in domain-specific modeling languages
Sarneabat Development of an android based mobile application to collect gas meter reading with appropriate customers approval
Ogata et al. An automation of check focusing on CRUD for requirements analysis model in UML

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant