Skip to content

Commit

Permalink
Added theory test case.
Browse files Browse the repository at this point in the history
  • Loading branch information
weetmuts committed Jul 11, 2024
1 parent 8049ea3 commit 5a0d790
Show file tree
Hide file tree
Showing 23 changed files with 288 additions and 0 deletions.
17 changes: 17 additions & 0 deletions models/SimpleTheoryTest/.project
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<projectDescription>
<name>SimpleTheoryTest</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.rodinp.core.rodinbuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.rodinp.core.rodinnature</nature>
</natures>
</projectDescription>
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
eclipse.preferences.version=1
encoding/<project>=UTF-8
6 changes: 6 additions & 0 deletions models/SimpleTheoryTest/Crabs.bpo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<org.eventb.core.poFile org.eventb.core.poStamp="0">
<org.eventb.core.poPredicateSet name="ABSHYP" org.eventb.core.poStamp="0">
<org.eventb.core.poIdentifier name="T" org.eventb.core.type="ℙ(T)"/>
</org.eventb.core.poPredicateSet>
</org.eventb.core.poFile>
2 changes: 2 additions & 0 deletions models/SimpleTheoryTest/Crabs.bpr
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<org.eventb.core.prFile version="1"/>
2 changes: 2 additions & 0 deletions models/SimpleTheoryTest/Crabs.bps
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
<?xml version="1.0" encoding="UTF-8"?>
<org.eventb.core.psFile/>
24 changes: 24 additions & 0 deletions models/SimpleTheoryTest/Crabs.dtf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<org.eventb.theory.core.deployedTheoryRoot org.eventb.core.accurate="true" org.eventb.core.comment="GENERATED THEORY FILE: !DO NOT CHANGE!" org.eventb.theory.core.modificationHashValue="a394b92f4521ec026420bba0d026ae33" org.eventb.theory.core.outdated="false">
<org.eventb.theory.core.scTypeParameter name="T" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.typeParameter#'" org.eventb.core.type="ℙ(T)"/>
<org.eventb.theory.core.scDatatypeDefinition name="Crustean" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(" org.eventb.theory.core.hasError="false">
<org.eventb.theory.core.scTypeArgument name="T" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.typeArgument#(" org.eventb.theory.core.givenType="T"/>
<org.eventb.theory.core.scDatatypeConstructor name="nilfish" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.datatypeConstructor#'"/>
<org.eventb.theory.core.scDatatypeConstructor name="conshel" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.datatypeConstructor#)">
<org.eventb.theory.core.scConstructorArgument name="head" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.datatypeConstructor#)|org.eventb.theory.core.constructorArgument#'" org.eventb.core.type="T"/>
<org.eventb.theory.core.scConstructorArgument name="tail" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.datatypeConstructor#)|org.eventb.theory.core.constructorArgument#(" org.eventb.core.type="Crustean"/>
</org.eventb.theory.core.scDatatypeConstructor>
</org.eventb.theory.core.scDatatypeDefinition>
<org.eventb.theory.core.scNewOperatorDefinition name="Crusteao" org.eventb.core.label="compo" org.eventb.core.predicate="" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.theory.core.associative="false" org.eventb.theory.core.commutative="false" org.eventb.theory.core.formulaType="false" org.eventb.theory.core.groupID="org.eventb.core.ast.relOp" org.eventb.theory.core.hasError="false" org.eventb.theory.core.notationType="INFIX" org.eventb.theory.core.wd="">
<org.eventb.theory.core.scOperatorArgument name="left" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)|org.eventb.theory.core.operatorArgument#'" org.eventb.core.type=""/>
<org.eventb.theory.core.scOperatorArgument name="right" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)|org.eventb.theory.core.operatorArgument#(" org.eventb.core.type=""/>
<org.eventb.theory.core.scDirectOperatorDefinition name=")" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)|org.eventb.theory.core.directOperatorDefinition#)" org.eventb.theory.core.formula=""/>
</org.eventb.theory.core.scNewOperatorDefinition>
<org.eventb.theory.core.scProofRulesBlock name="generatedBlock" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)">
<org.eventb.theory.core.scMetavariable name="left" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.core.type=""/>
<org.eventb.theory.core.scMetavariable name="right" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.core.type=""/>
<org.eventb.theory.core.scRewriteRule name="Crabs.compo" org.eventb.core.accurate="true" org.eventb.core.label="Crabs.compo" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.theory.core.applicability="interactive" org.eventb.theory.core.complete="true" org.eventb.theory.core.definitional="true" org.eventb.theory.core.desc="compo expansion" org.eventb.theory.core.formula="left compo right">
<org.eventb.theory.core.scRewriteRuleRHS name="compo rhs" org.eventb.core.label="compo rhs" org.eventb.core.predicate="" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.theory.core.formula=""/>
</org.eventb.theory.core.scRewriteRule>
</org.eventb.theory.core.scProofRulesBlock>
</org.eventb.theory.core.deployedTheoryRoot>
24 changes: 24 additions & 0 deletions models/SimpleTheoryTest/Crabs.tcf
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<org.eventb.theory.core.scTheoryRoot org.eventb.core.accurate="true" org.eventb.core.configuration="org.eventb.theory.core.thy" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf">
<org.eventb.theory.core.scTypeParameter name="T" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.typeParameter#'" org.eventb.core.type="ℙ(T)"/>
<org.eventb.theory.core.scDatatypeDefinition name="Crustean" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(" org.eventb.theory.core.hasError="false">
<org.eventb.theory.core.scTypeArgument name="T" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.typeArgument#(" org.eventb.theory.core.givenType="T"/>
<org.eventb.theory.core.scDatatypeConstructor name="nilfish" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.datatypeConstructor#'"/>
<org.eventb.theory.core.scDatatypeConstructor name="conshel" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.datatypeConstructor#)">
<org.eventb.theory.core.scConstructorArgument name="head" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.datatypeConstructor#)|org.eventb.theory.core.constructorArgument#'" org.eventb.core.type="T"/>
<org.eventb.theory.core.scConstructorArgument name="tail" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.datatypeDefinition#(|org.eventb.theory.core.datatypeConstructor#)|org.eventb.theory.core.constructorArgument#(" org.eventb.core.type="Crustean"/>
</org.eventb.theory.core.scDatatypeConstructor>
</org.eventb.theory.core.scDatatypeDefinition>
<org.eventb.theory.core.scNewOperatorDefinition name="Crusteao" org.eventb.core.label="compo" org.eventb.core.predicate="" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.theory.core.associative="false" org.eventb.theory.core.commutative="false" org.eventb.theory.core.formulaType="false" org.eventb.theory.core.groupID="org.eventb.core.ast.relOp" org.eventb.theory.core.hasError="false" org.eventb.theory.core.notationType="INFIX" org.eventb.theory.core.wd="">
<org.eventb.theory.core.scOperatorArgument name="left" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)|org.eventb.theory.core.operatorArgument#'" org.eventb.core.type=""/>
<org.eventb.theory.core.scOperatorArgument name="right" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)|org.eventb.theory.core.operatorArgument#(" org.eventb.core.type=""/>
<org.eventb.theory.core.scDirectOperatorDefinition name=")" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)|org.eventb.theory.core.directOperatorDefinition#)" org.eventb.theory.core.formula=""/>
</org.eventb.theory.core.scNewOperatorDefinition>
<org.eventb.theory.core.scProofRulesBlock name="generatedBlock" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)">
<org.eventb.theory.core.scMetavariable name="left" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.core.type=""/>
<org.eventb.theory.core.scMetavariable name="right" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.core.type=""/>
<org.eventb.theory.core.scRewriteRule name="Crabs.compo" org.eventb.core.accurate="true" org.eventb.core.label="Crabs.compo" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.theory.core.applicability="interactive" org.eventb.theory.core.complete="true" org.eventb.theory.core.definitional="true" org.eventb.theory.core.desc="compo expansion" org.eventb.theory.core.formula="left compo right">
<org.eventb.theory.core.scRewriteRuleRHS name="compo rhs" org.eventb.core.label="compo rhs" org.eventb.core.predicate="" org.eventb.core.source="/SimpleTheoryTest/Crabs.tuf|org.eventb.theory.core.theoryRoot#Crabs|org.eventb.theory.core.newOperatorDefinition#)" org.eventb.theory.core.formula=""/>
</org.eventb.theory.core.scRewriteRule>
</org.eventb.theory.core.scProofRulesBlock>
</org.eventb.theory.core.scTheoryRoot>
17 changes: 17 additions & 0 deletions models/SimpleTheoryTest/Crabs.tuf
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<org.eventb.theory.core.theoryRoot org.eventb.core.configuration="org.eventb.theory.core.thy">
<org.eventb.theory.core.typeParameter name="'" org.eventb.core.identifier="T"/>
<org.eventb.theory.core.datatypeDefinition name="(" org.eventb.core.identifier="Crustean">
<org.eventb.theory.core.datatypeConstructor name="'" org.eventb.core.identifier="nilfish"/>
<org.eventb.theory.core.typeArgument name="(" org.eventb.theory.core.givenType="T"/>
<org.eventb.theory.core.datatypeConstructor name=")" org.eventb.core.identifier="conshel">
<org.eventb.theory.core.constructorArgument name="'" org.eventb.core.identifier="head" org.eventb.theory.core.type="T"/>
<org.eventb.theory.core.constructorArgument name="(" org.eventb.core.identifier="tail" org.eventb.theory.core.type="Crustean(T)"/>
</org.eventb.theory.core.datatypeConstructor>
</org.eventb.theory.core.datatypeDefinition>
<org.eventb.theory.core.newOperatorDefinition name=")" org.eventb.core.label="compo" org.eventb.theory.core.associative="false" org.eventb.theory.core.commutative="false" org.eventb.theory.core.formulaType="false" org.eventb.theory.core.notationType="INFIX">
<org.eventb.theory.core.operatorArgument name="'" org.eventb.core.expression="&#9;" org.eventb.core.identifier="left"/>
<org.eventb.theory.core.operatorArgument name="(" org.eventb.core.expression="&#9;" org.eventb.core.identifier="right"/>
<org.eventb.theory.core.directOperatorDefinition name=")" org.eventb.theory.core.formula=""/>
</org.eventb.theory.core.newOperatorDefinition>
</org.eventb.theory.core.theoryRoot>
6 changes: 6 additions & 0 deletions models/SimpleTheoryTest/Fishes.bpo
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<org.eventb.core.poFile org.eventb.core.poStamp="0">
<org.eventb.core.poPredicateSet name="ABSHYP" org.eventb.core.poStamp="0">
<org.eventb.core.poIdentifier name="T" org.eventb.core.type="ℙ(T)"/>
</org.eventb.core.poPredicateSet>
</org.eventb.core.poFile>
Loading

0 comments on commit 5a0d790

Please sign in to comment.