Skip to content

Commit

Permalink
advancing
Browse files Browse the repository at this point in the history
  • Loading branch information
eneoli committed Dec 7, 2024
1 parent 58eb4c3 commit c411b7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
1 change: 1 addition & 0 deletions src/kernel/checker/synthesize.rs
Original file line number Diff line number Diff line change
Expand Up @@ -263,6 +263,7 @@ impl<'a> ProofTermVisitor<Result<(Type, TypeCheckerResult), SynthesizeError>>

match (&bound_param_type, &body_type) {
// Forall
// TODO name clash
(Type::Datatype(datatype_ident), Type::Prop(body_type)) => {
let _type = body_type.bind_identifier(
QuantifierKind::ForAll,
Expand Down
12 changes: 6 additions & 6 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ fn main() {
// Step 1: Parse tokens
let tokens = lexer().parse(src.clone());

println!("{:#?}", tokens);
// println!("{:#?}", tokens);

if let Err(err) = tokens.clone() {
err.into_iter().for_each(|e| {
Expand Down Expand Up @@ -48,7 +48,7 @@ fn main() {
return;
}

let fol = "A -> A";
let fol = "A";
let fol_tokens = lexer().parse(fol).unwrap();
let fol_len = fol.chars().count();

Expand All @@ -66,7 +66,7 @@ fn main() {

// Step 3: Preprocess ProofTerm

println!("{:#?}", processed_proof);
// println!("{:#?}", processed_proof);

// println!("{:#?}", prop.get_free_parameters());

Expand All @@ -78,11 +78,11 @@ fn main() {

println!("{:#?}", _type);

println!("{}", prove(&prop).unwrap());
// println!("{}", prove(&prop).unwrap());

let ocaml_exporter = OcamlExporter::new();
// let ocaml_exporter = OcamlExporter::new();

println!("{}", ocaml_exporter.export(&processed_proof.proof_term));
// println!("{}", ocaml_exporter.export(&processed_proof.proof_term));

// let proof_tree = ProofTree {
// premisses: vec![
Expand Down

0 comments on commit c411b7a

Please sign in to comment.