Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
LATIN2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
MMT
LATIN2
Commits
cfe26394
Unverified
Commit
cfe26394
authored
1 year ago
by
ColinRothgang
Browse files
Options
Downloads
Patches
Plain Diff
Minor generalization
parent
06d55d1a
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
scala/latin2/tptp/DIHOLExporter.scala
+9
-6
9 additions, 6 deletions
scala/latin2/tptp/DIHOLExporter.scala
with
9 additions
and
6 deletions
scala/latin2/tptp/DIHOLExporter.scala
+
9
−
6
View file @
cfe26394
...
...
@@ -2,14 +2,13 @@ package latin2.tptp
import
info.kwarc.mmt.api.frontend.Controller
import
info.kwarc.mmt.api.modules.Theory
import
info.kwarc.mmt.api.objects.Context.
{
context2list
,
makeFresh
}
import
info.kwarc.mmt.api.objects.Context.context2list
import
info.kwarc.mmt.api.objects._
import
info.kwarc.mmt.api.uom.SimplificationUnit
import
info.kwarc.mmt.api.
{
GeneralError
,
GlobalName
,
LocalName
,
MPath
}
import
info.kwarc.mmt.lf._
import
latin2.sfol.SFOLPatterns.TypeDecl
import
leo.datastructures.TPTP.Comment.
{
CommentFormat
,
CommentType
}
import
leo.datastructures.TPTP.THF.FunTyConstructor
import
leo.datastructures.TPTP._
import
lf.Conjunction.and
import
lf.Disjunction.or
...
...
@@ -21,9 +20,9 @@ import lf.SFOLEQ.notequal
import
lf.TypedEquality.tequal
import
lf.TypedExistentialQuantification.texists
import
lf.TypedUniversalQuantification.tforall
import
lf.
{
DependentConjunction
,
DependentFunctionTypes
,
DependentFunctions
,
DependentImplication
,
Falsity
,
Booleans
,
SimpleFunctionTypes
,
Truth
,
TypedEquality
,
TypedTerms
}
import
lf.
{
Booleans
,
DependentConjunction
,
DependentFunctionTypes
,
DependentFunctions
,
DependentImplication
,
Falsity
,
Truth
,
TypedEquality
,
TypedTerms
}
import
info.kwarc.mmt.api
import
info.kwarc.mmt.api.checking.
{
History
,
InferenceAndTypingRule
,
InferenceRule
,
Solver
,
TypeBasedEqualityRule
}
import
info.kwarc.mmt.api.checking.
{
History
,
InferenceRule
,
Solver
,
TypeBasedEqualityRule
}
import
info.kwarc.mmt.api.objects.Conversions.localName2OMV
import
latin2.tptp.DIHOLExporterUtil._
import
latin2.tptp.THFExporterUtil._
...
...
@@ -266,7 +265,11 @@ class DIHOLExporter extends logicExporter {
case
ApplySpine
(
tp
,
_
)
=>
translate_type
(
tp
)
case
OMS
(
gn
)
=>
THFOMS
(
translated_type_path
(
gn
).
path
)
case
OMA
(
f
,
Nil
)
=>
translate_type
(
f
)
case
_
=>
???
// TODO: Should we support this?
case
OMV
(
n
)
=>
THF
.
Variable
(
translate_var_name
(
n
))
case
_
=>
println
(
"unexpected type to translate: "
+
t
.
toNode
.
toString
())
throw
UNSUPPORTED
(
"unexpected type to translate: "
+
controller
.
presenter
.
asString
(
t
))
}
def
typing_pred
(
t
:
Term
,
x
:
Term
)
:
THF.Formula
=
{
...
...
@@ -499,4 +502,4 @@ abstract class ConnectiveTypingRule(path: GlobalName) extends InferenceRule(path
}
object
DependentImplicationInferenceRule
extends
ConnectiveTypingRule
(
lf
.
Implication
.
impl
.
path
)
object
DependentConjunctionInferenceRule
extends
ConnectiveTypingRule
(
lf
.
Conjunction
.
and
.
path
)
\ No newline at end of file
object
DependentConjunctionInferenceRule
extends
ConnectiveTypingRule
(
lf
.
Conjunction
.
and
.
path
)
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment