@fmfi-uk-1-ain-412/structure-explorer 0.0.6 → 0.0.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +30 -51
- package/dist/features/formulas/formulasSlice.d.ts +1 -2
- package/dist/features/game/GameHistory.d.ts +1 -0
- package/dist/model/formula/Formula.PredicateAtom.d.ts +0 -1
- package/dist/model/formula/Formula.d.ts +0 -1
- package/dist/structure-explorer.es.js +7162 -7412
- package/dist/structure-explorer.umd.js +66 -80
- package/package.json +13 -11
- package/dist/__tests__/Formula.test.d.ts +0 -1
package/README.md
CHANGED
|
@@ -1,54 +1,33 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
export default tseslint.config({
|
|
16
|
-
extends: [
|
|
17
|
-
// Remove ...tseslint.configs.recommended and replace with this
|
|
18
|
-
...tseslint.configs.recommendedTypeChecked,
|
|
19
|
-
// Alternatively, use this for stricter rules
|
|
20
|
-
...tseslint.configs.strictTypeChecked,
|
|
21
|
-
// Optionally, add this for stylistic rules
|
|
22
|
-
...tseslint.configs.stylisticTypeChecked,
|
|
23
|
-
],
|
|
24
|
-
languageOptions: {
|
|
25
|
-
// other options...
|
|
26
|
-
parserOptions: {
|
|
27
|
-
project: ['./tsconfig.node.json', './tsconfig.app.json'],
|
|
28
|
-
tsconfigRootDir: import.meta.dirname,
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
})
|
|
1
|
+
# Prieskumník štruktúr pre logiku prvého rádu
|
|
2
|
+
|
|
3
|
+
Tento repozitár obsahuje zdrojové súbory aplikácie Prieskumník štruktúr,
|
|
4
|
+
ktorá umožňuje vytvárať a upravovať štruktúry pre jazyky logiky prvého
|
|
5
|
+
rádu a skúmať pravdivosť formúl a hodnoty termov v nich.
|
|
6
|
+
|
|
7
|
+
## Inštalácia
|
|
8
|
+
|
|
9
|
+
Aplikácia sa dá spustiť lokálne po vykonaní nasledovných krokov:
|
|
10
|
+
|
|
11
|
+
```shell
|
|
12
|
+
git clone https://github.com/FMFI-UK-1-AIN-412/structure-explorer.git
|
|
13
|
+
cd structure-explorer
|
|
14
|
+
npm install
|
|
32
15
|
```
|
|
33
16
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
import reactX from 'eslint-plugin-react-x'
|
|
39
|
-
import reactDom from 'eslint-plugin-react-dom'
|
|
40
|
-
|
|
41
|
-
export default tseslint.config({
|
|
42
|
-
plugins: {
|
|
43
|
-
// Add the react-x and react-dom plugins
|
|
44
|
-
'react-x': reactX,
|
|
45
|
-
'react-dom': reactDom,
|
|
46
|
-
},
|
|
47
|
-
rules: {
|
|
48
|
-
// other rules...
|
|
49
|
-
// Enable its recommended typescript rules
|
|
50
|
-
...reactX.configs['recommended-typescript'].rules,
|
|
51
|
-
...reactDom.configs.recommended.rules,
|
|
52
|
-
},
|
|
53
|
-
})
|
|
17
|
+
Po úspešnom nainštalovaní spustíme virtuálny server pomocou príkazu:
|
|
18
|
+
|
|
19
|
+
```shell
|
|
20
|
+
npm run dev
|
|
54
21
|
```
|
|
22
|
+
|
|
23
|
+
Po tomto kroku bude aplikácia bežať na porte `localhost:5173`.
|
|
24
|
+
|
|
25
|
+
## História
|
|
26
|
+
|
|
27
|
+
Aplikácia vznikla v rokoch 2017–2018 v rámci bakalárskej práce Milana Cifru
|
|
28
|
+
<cite>Prieskumník sémantiky logiky prvého rádu</cite>.
|
|
29
|
+
V rokoch 2019–2020 ju Miroslav Baluch rozšíril o grafový pohľad na štruktúry
|
|
30
|
+
v rámci svojej bakalárskej práce s názvom <cite>Prieskumník grafových
|
|
31
|
+
štruktúr pre logiku prvého rádu</cite>. V rokoch 2020–2021 Richard Tóth
|
|
32
|
+
pridal do prieskumníka Henkinovu-Hintikkovu hru v rámci svojej bakalárskej
|
|
33
|
+
práce <cite>Henkinova-Hintikkova hra v prieskumníku štruktúr</cite>.
|
|
@@ -18,7 +18,6 @@ export interface FormulasState {
|
|
|
18
18
|
export declare const formulasSlice: import('@reduxjs/toolkit').Slice<FormulasState, {
|
|
19
19
|
importFormulasState: (_state: import('immer').WritableDraft<FormulasState>, action: PayloadAction<string>) => any;
|
|
20
20
|
addFormula: (state: import('immer').WritableDraft<FormulasState>) => void;
|
|
21
|
-
clearChoices: (state: import('immer').WritableDraft<FormulasState>, action: PayloadAction<number>) => void;
|
|
22
21
|
gameGoBack: (state: import('immer').WritableDraft<FormulasState>, action: PayloadAction<{
|
|
23
22
|
id: number;
|
|
24
23
|
index: number;
|
|
@@ -49,7 +48,7 @@ export declare const formulasSlice: import('@reduxjs/toolkit').Slice<FormulasSta
|
|
|
49
48
|
guess: boolean | null;
|
|
50
49
|
}>) => void;
|
|
51
50
|
}, "formulas", "formulas", import('@reduxjs/toolkit').SliceSelectors<FormulasState>>;
|
|
52
|
-
export declare const addFormula: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"formulas/addFormula">, removeFormula: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "formulas/removeFormula">,
|
|
51
|
+
export declare const addFormula: import('@reduxjs/toolkit').ActionCreatorWithoutPayload<"formulas/addFormula">, removeFormula: import('@reduxjs/toolkit').ActionCreatorWithPayload<number, "formulas/removeFormula">, gameGoBack: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
53
52
|
id: number;
|
|
54
53
|
index: number;
|
|
55
54
|
}, "formulas/gameGoBack">, addAlpha: import('@reduxjs/toolkit').ActionCreatorWithPayload<{
|
|
@@ -27,7 +27,6 @@ declare abstract class Formula extends Expression {
|
|
|
27
27
|
toString(): string;
|
|
28
28
|
gameDepth(sign: boolean): number;
|
|
29
29
|
signedFormulaToString(sign: boolean): string;
|
|
30
|
-
depth(): number;
|
|
31
30
|
winningSubformulas(sign: boolean, structure: Structure, e: Valuation): SignedFormula[];
|
|
32
31
|
abstract eval(structure: Structure, e: Valuation): boolean;
|
|
33
32
|
getVariables(): Set<Symbol>;
|