Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Substitution.ApplyRules error #214

Open
SimonGuilloud opened this issue Mar 4, 2024 · 0 comments
Open

Substitution.ApplyRules error #214

SimonGuilloud opened this issue Mar 4, 2024 · 0 comments

Comments

@SimonGuilloud
Copy link
Collaborator

SimonGuilloud commented Mar 4, 2024

val A = variable
val B = variable
val app = function[2]
val f = variable
val g = variable
val x = variable
val y = variable
val thm5 = Theorem(() |- ()) {
  val s1 = have((f  A, x  B) |- (app(f, x) === app(f, x))) by Sorry
  val s2 = have((f  A, g  A) |- (f===g)) by Sorry
  val s3 = have((x  B, y  B) |- (x===y)) by Sorry
  have((x  B, y  B, f  A, g  A) |- (app(f, x) === app(g, y))) by Substitution.ApplyRules(s2, s3)(s1)
}

yields error:

[info]   0 Sorry ( elem(x, B), elem(f, A) ) ⊢ app(f, x) = app(f, x)
[info]   1 Sorry ( elem(g, A), elem(f, A) ) ⊢ f = g
[info]   2 Sorry ( elem(y, B), elem(x, B) ) ⊢ x = y
[info]     -1 Import 0  ( elem(x, B), elem(f, A) ) ⊢ app(f, x) = app(f, x)
[info]      0 Weakening ( elem(x, B) ∧ elem(f, A), x = y, f = g ) ⊢ ∨(app(f, x) = app(f, x))
[info]     lib.thenHave(sequentAfterEq) by BasicStepTactic.LeftSubstEq.withParametersSimple(termInputs.toList, lambda(termVars, ctx.body.substituteUnsafe2(formSubstL)))
[info]    Proof tactic LeftSubstEq used in.(Substitution.scala:323) did not succeed:
[info]    Left-hand side of the conclusion + φ(s_) is not the same as left-hand side of the premise + (s=t)_ + φ(t_) (or with s_ and t_ swapped).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant