Class CoqImporter
java.lang.Object
org.episteme.core.mathematics.loaders.logic.CoqImporter
- All Implemented Interfaces:
ResourceIO<Map<String,Object>>, ResourceReader<Map<String, Object>>, FormalSystemImporter
Importer for Coq Proof Assistant files (.v).
Parses Coq vernacular files and extracts:
- Module definitions
- Axioms and Parameters
- Theorems and Lemmas
- Definitions
- Since:
- 1.0
- Author:
- Silvere Martin-Michiellot, Gemini AI (Google DeepMind)
-
Nested Class Summary
Nested classes/interfaces inherited from interface FormalSystemImporter
FormalSystemImporter.ParseException -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Returns the file extensions this importer can handle.importSystem(Reader reader) Imports a formal system from the specified reader.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface FormalSystemImporter
getCategory, getDescription, getLongDescription, getName, getResourcePath, getResourceType, getSupportedVersions, importSystem, importSystem, loadMethods inherited from interface ResourceIO
getExpectedResourceFiles, isFileBased, isOutputMethods inherited from interface ResourceReader
isInput
-
Constructor Details
-
CoqImporter
public CoqImporter()
-
-
Method Details
-
importSystem
public Map<String,Object> importSystem(Reader reader) throws IOException, FormalSystemImporter.ParseException Description copied from interface:FormalSystemImporterImports a formal system from the specified reader.- Specified by:
importSystemin interfaceFormalSystemImporter- Parameters:
reader- the reader to import from- Returns:
- a map of module names to their axioms/theorems
- Throws:
IOException- if an I/O error occursFormalSystemImporter.ParseException- if the input format is invalid
-
getSupportedExtensions
Description copied from interface:FormalSystemImporterReturns the file extensions this importer can handle.- Specified by:
getSupportedExtensionsin interfaceFormalSystemImporter- Specified by:
getSupportedExtensionsin interfaceResourceIO<Map<String,Object>> - Returns:
- array of file extensions (e.g., [".v", ".vo"])
-