
gapt.formats.tip.compiler.package.scala Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gapt_3 Show documentation
Show all versions of gapt_3 Show documentation
General Architecture for Proof Theory
The newest version!
package gapt.formats.tip
import gapt.expr.ty.TBase
import gapt.formats.tip.parser.TipSmtDatatype
import gapt.proofs.context.update.InductiveType
package object compiler {
def tipSmtDatatypeToInductiveType(datatype: TipSmtDatatype): InductiveType = {
val constructorDefinitions = datatype.constructors.map {
c =>
c.name -> c.fields.map {
f =>
Some(f.name) -> TBase(f.typ.typename)
}
}
InductiveType(datatype.name, Nil, constructorDefinitions: _*)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy