-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
25a2db9
commit 5e7b83d
Showing
28 changed files
with
159 additions
and
50 deletions.
There are no files selected for viewing
Submodule lisa
updated
55 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
addSbtPlugin("ch.epfl.scala" % "sbt-scalafix" % "0.9.34") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...main/scala/me/cassayre/florian/masterproject/front/proof/sequent/SequentDefinitions.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
src/main/scala/me/cassayre/florian/masterproject/legacy/GoalBasedProofSystem.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/me/cassayre/florian/masterproject/legacy/meta/Meta.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/me/cassayre/florian/masterproject/legacy/parser/SCResolver.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/me/cassayre/florian/masterproject/legacy/test/front/demo.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/me/cassayre/florian/masterproject/legacy/test/front/tests2.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/me/cassayre/florian/masterproject/legacy/test/front/tests4.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/me/cassayre/florian/masterproject/legacy/test/front/tests5.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/me/cassayre/florian/masterproject/legacy/test/front/tests6.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
103 changes: 103 additions & 0 deletions
103
src/main/scala/me/cassayre/florian/masterproject/legacy/test/front/tmp.scala.old
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,103 @@ | ||
package me.cassayre.florian.masterproject.legacy.test.front | ||
|
||
import lisa.kernel.Printer | ||
|
||
import scala.util.chaining.* | ||
import me.cassayre.florian.masterproject.front.{*, given} | ||
|
||
@main def tmp(): Unit = {} | ||
/*val (a, b, c) = (SchematicPredicateLabel[0]("a"), SchematicPredicateLabel[0]("b"), SchematicPredicateLabel[0]("c")) | ||
|
||
@main def tmp(): Unit = { | ||
import me.cassayre.florian.masterproject.front.theory.SetTheory.* | ||
|
||
val (s, t, u) = (SchematicFunctionLabel[0]("s"), SchematicFunctionLabel[0]("t"), SchematicFunctionLabel[0]("u")) | ||
val (x, y, z) = (VariableLabel("x"), VariableLabel("y"), VariableLabel("z")) | ||
|
||
given ProofEnvironment = newSetTheoryEnvironment() | ||
|
||
val axExt: Axiom = axiomExtensionality.asJustified.display() | ||
val axEmpty: Axiom = axiomEmpty.asJustified.display() | ||
val axUnion: Axiom = axiomUnion.asJustified.display() | ||
|
||
// 1. Generalize universal quantifiers | ||
|
||
val thmExtSchema: Theorem = { | ||
val t0 = elimRForallS( | ||
RuleParameters() | ||
.withPredicate(Notations.p, x => forall(y, forall(z, (z in x) <=> (z in y)) <=> (x === y))) | ||
.withFunction(Notations.t, s()) | ||
)(axExt).get | ||
|
||
val t1 = elimRForallS( | ||
RuleParameters() | ||
.withPredicate(Notations.p, y => forall(z, (z in s) <=> (z in y)) <=> (s === y)) | ||
.withFunction(Notations.t, t()) | ||
)(t0).get | ||
|
||
t1 | ||
}.display() | ||
|
||
val thmEmptySchema: Theorem = elimRForallS( | ||
RuleParameters() | ||
.withPredicate(Notations.p, x => !(x in emptySet)) | ||
.withFunction(Notations.t, s()) | ||
)(axEmpty).get.display() | ||
|
||
val thmUnionSchema: Theorem = { | ||
val t0 = elimRForallS( | ||
RuleParameters() | ||
.withPredicate(Notations.p, x => forall(z, (x in unionSet(z)) <=> exists(y, (x in y) /\ (y in z)))) | ||
.withFunction(Notations.t, s()) | ||
)(axUnion).get | ||
val t1 = elimRForallS( | ||
RuleParameters() | ||
.withPredicate(Notations.p, z => (s in unionSet(z)) <=> exists(y, (s in y) /\ (y in z))) | ||
.withFunction(Notations.t, t()) | ||
)(t0).get | ||
t1 | ||
}.display() | ||
|
||
val _ = { | ||
val p = ProofMode(() |- unionSet(emptySet) === emptySet) | ||
import p.* | ||
|
||
apply(elimRSubstIff( | ||
RuleParameters() | ||
.withConnector(Notations.f, identity) | ||
.withPredicate(Notations.a, formula"forall z. (z in U({})) <=> (z in {})") | ||
)) | ||
|
||
focus(1) | ||
val _ = thmExtSchema(Notations.s, unionSet(emptySet))(Notations.t, emptySet) | ||
|
||
apply(justification) // Uses the previously proved theorem | ||
|
||
apply(introRForallS( | ||
RuleParameters() | ||
.withPredicate(Notations.p, z => formula"\ $z. ($z in U({})) <=> ($z in {})") | ||
.withFunction(Notations.t, s()) | ||
)) | ||
|
||
apply(RuleSubstituteRightIff( | ||
RuleParameters() | ||
.withConnector(Notations.f, x => x <=> (s in emptySet)) | ||
.withPredicate(Notations.a, formula"exists y. (?s in y) /\ (y in {})") | ||
)) | ||
|
||
focus(1) | ||
val _ = thmUnionSchema(t, emptySet).rewrite(state.goals.head).get.display() | ||
apply(justification) | ||
|
||
apply(introRIff) | ||
apply(introRImp) | ||
apply(introLExists( | ||
RuleParameters() | ||
.withPredicate(Notations.p, y => (s in y) /\ (y in emptySet)) | ||
)) | ||
|
||
apply(introLAnd) | ||
|
||
} | ||
|
||
}*/ |
4 changes: 2 additions & 2 deletions
4
src/main/scala/me/cassayre/florian/masterproject/legacy/test/tests.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/me/cassayre/florian/masterproject/legacy/unification/Unifier.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
src/main/scala/me/cassayre/florian/masterproject/util/MonadicSCProofBuilder.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.