Skip to content

Commit

Permalink
minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
eneoli committed Oct 5, 2024
1 parent 0a8899f commit bc91b0a
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/kernel/prove/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -434,11 +434,11 @@ impl Prover {
}

// falsum rule
if let Prop::False = sequent.goal {
if let Some(elem) = sequent.find_in_unordered_context_by_prop(sequent.goal) {
return Some(elem.proof_term.clone());
}
}
// if let Prop::False = sequent.goal {
// if let Some(elem) = sequent.find_in_unordered_context_by_prop(sequent.goal) {
// return Some(elem.proof_term.clone());
// }
// }

// impl atom rule
let mut atom_impl_changes = vec![];
Expand Down Expand Up @@ -506,7 +506,7 @@ impl Prover {
let first_param_ident = self.generate_identifier();

let new_prop = Prop::Impl(impl_impl_snd.boxed(), impl_snd.boxed());
fst_sequent.append_unordered(TypeJudgment::new(
fst_sequent.append_ordered(TypeJudgment::new(
new_prop.clone(),
ProofTerm::TypeAscription(TypeAscription {
ascription: Type::Prop(new_prop),
Expand Down Expand Up @@ -534,7 +534,7 @@ impl Prover {

if let Some(fst_proof_term) = self.prove_right(fst_sequent) {
let mut snd_sequent = searching_sequent.clone();
snd_sequent.append_unordered(TypeJudgment::new(
snd_sequent.append_ordered(TypeJudgment::new(
*impl_snd,
Application::create(proof_term.boxed(), fst_proof_term.boxed(), None),
));
Expand Down

0 comments on commit bc91b0a

Please sign in to comment.