Skip to content

Commit 54def53

Browse files
committed
Reduce intuitionistic first-order logic to a single remark
1 parent 82d3efc commit 54def53

16 files changed

Lines changed: 227 additions & 212 deletions

bibliography/books.bib

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2536,6 +2536,16 @@ @book{ДимитровЯнев2007ВероятностиИСтатистика
25362536
title = {Вероятности и статистика}
25372537
}
25382538

2539+
@book{Драгалин1979Интуиционизм,
2540+
author = {Альберт Григорьевич Драгалин},
2541+
date = {1979},
2542+
language = {russian},
2543+
publisher = {Наука},
2544+
shortauthor = {Drаgаlin},
2545+
subtitle = {Введение в теорию доказательств},
2546+
title = {Математический интуиционизм}
2547+
}
2548+
25392549
@book{Драганов2022ТеорияНаМярката,
25402550
author = {Борислав Драганов},
25412551
date = {2022},

packages/math_macros.sty

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
% Semantic logical symbols
4242
\NewDocumentCommand \semtop {} {\mathbfsf{T}}
4343
\NewDocumentCommand \sembot {} {\mathbfsf{F}}
44-
\NewDocumentCommand \semeq {} {\mathrel{\approx}}
4544

4645
% Syntactic symbols
4746
\NewDocumentCommand \syn {m} {{\dot{#1}}}

src/notebook/math/logic/structure/formula_visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,6 @@ def visit_existential(self, formula: QuantifierFormula) -> bool:
7676
)
7777

7878

79-
# This is def:fol_denotation/formulas in the monograph
79+
# This is alg:fol_formula_denotation/formulas in the monograph
8080
def evaluate_formula[T](formula: Formula, structure: FormalLogicStructure[T], assignment: VariableAssignment[T] | None = None) -> bool:
8181
return FormulaEvaluationVisitor(structure, assignment or VariableAssignment()).visit(formula)

src/notebook/math/logic/structure/term_visitor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,6 @@ def visit_function(self, term: FunctionApplication) -> T:
2020
return self.structure.apply(term.symbol, *(self.visit(arg) for arg in term.arguments))
2121

2222

23-
# This is def:fol_denotation/terms in the monograph
23+
# This is alg:fol_term_denotation in the monograph
2424
def evaluate_term[T](term: Term, structure: FormalLogicStructure[T], assignment: VariableAssignment[T] | None = None) -> T:
2525
return TermEvaluationVisitor(structure, assignment or VariableAssignment()).visit(term)

text/algebras_over_semirings.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -483,7 +483,7 @@ \section{Algebras over semirings}\label{sec:algebras_over_semirings}
483483

484484
A polynomial \( f(\mscrX) \) in \( R[\mscrX] \) has its coefficients in \( R \), but the indeterminates are placeholders whose variables need to be \hi{explicitly} assignment values in some algebra \( M \) over \( R \) (not necessarily \( R \) itself).
485485

486-
\thmitem{con:free_construction/assignment} In analogy with how we define denotations for first-order logical terms in \cref{def:fol_denotation/terms}, we rely on an \term{assignment} \( e: \mscrX \to M \) to supply a value for each indeterminate.
486+
\thmitem{con:free_construction/assignment} In analogy with how we define denotations for first-order logical terms in \cref{alg:fol_term_denotation}, we rely on an \term{assignment} \( e: \mscrX \to M \) to supply a value for each indeterminate.
487487

488488
This contrasts with a metalingual variable like \( x \) that can refer to some element of \( M \). The indeterminate \( X \) is a standalone entity that requires an explicit assignment \( e \).
489489

text/boolean_functions.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ \section{Boolean functions}\label{sec:boolean_functions}
99

1010
The names of the operations in \( \BbbT \) are often adapted as to reflect their use in logic; see \cref{def:standard_boolean_functions}.
1111

12-
For \hyperref[con:predicate_logic]{predicate logic}, we must additionally require that \( \BbbT \) is \hyperref[def:heyting_algebra/complete]{complete}\fnote{It is possible to make this completeness requirement implicit by relying on \hyperref[def:dedekind_macnielle_completion]{Dedekind-MacNeille completion}.} in order to be able to define denotations for \hyperref[con:predicate_logic/quantifiers]{quantifiers} in \cref{def:fol_denotation}.
12+
For \hyperref[con:predicate_logic]{predicate logic}, we must additionally require that \( \BbbT \) is \hyperref[def:heyting_algebra/complete]{complete}\fnote{It is possible to make this completeness requirement implicit by relying on \hyperref[def:dedekind_macnielle_completion]{Dedekind-MacNeille completion}.} in order to be able to define denotations for \hyperref[con:predicate_logic/quantifiers]{quantifiers} in \cref{alg:fol_formula_denotation}.
1313

1414
We will consider different algebras depending on the situation:
1515
\begin{thmenum}

text/first_order_logic.tex

Lines changed: 181 additions & 175 deletions
Large diffs are not rendered by default.

text/henkin_semantics.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ \section{Henkin semantics}\label{sec:henkin_semantics}
7171
\begin{comments}
7272
\item The assignment \( v \) is well-defined as a function since it is the set-theoretic \hyperref[def:disjoint_union]{disjoint union} of a family of functions \( \seq{ v_\tau }_{\tau \in \op*{\BbbQ_\Sigma}} \), where \( v_\tau: \op*{Var} \to X_\tau \).
7373

74-
\item Compared to Andrews, we elaborate on modified assignments so that they more closely resemble their counterparts in first-order logic defined in \cref{def:fol_denotation/modified_assignment}.
74+
\item Compared to Andrews, we elaborate on modified assignments so that they more closely resemble their counterparts in first-order logic defined in \cref{alg:fol_formula_denotation/modified_assignment}.
7575
\end{comments}
7676

7777
\begin{definition}\label{def:hol_term_denotation}\mimprovised
@@ -110,7 +110,7 @@ \section{Henkin semantics}\label{sec:henkin_semantics}
110110
If the denotation \( \Bracks{ M^\tau }_\mscrX^v \) coincides for any variable assignment \( v \), we use the simplified notation \( \Bracks{ \varphi }_\mscrX \). This is the case for \hyperref[def:hol_term/closed]{closed logical terms}, but it is also more general --- see \cref{rem:implicit_quantification_and_deduction}.
111111
\end{definition}
112112
\begin{comments}
113-
\item We take the definition of denotation for arbitrary terms from \cite[238]{Andrews2002Logic}. For formulas, we generalize the denotations of first-order formulas defined in \cref{def:fol_denotation}.
113+
\item We take the definition of denotation for arbitrary terms from \cite[238]{Andrews2002Logic}. For formulas, we generalize the denotations of first-order formulas defined in \cref{alg:fol_formula_denotation}.
114114

115115
\item As per \cref{rem:hol_parametrized_denotation}, due to the availability of \( \muplambda \)-abstraction, we will not be interested in treating formulas with free variables as functions (unlike in propositional or first-order logic).
116116
\end{comments}

text/logical_consequence.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -607,7 +607,7 @@ \section{Logical consequence}\label{sec:logical_consequence}
607607
\begin{concept}\label{con:intuitionistic_logic}\mimprovised
608608
By \term[ru=интуиционисткая логика (\cite[58]{ШеньВерещагин2017ЯзыкиИИсчисления}), en=intuitionistic logic (\cite[8]{TroelstraSchwichtenberg2000BasicProofTheory})]{intuitionistic logic} we will mean the generalization of \hyperref[con:classical_logic]{classical logic} where instead of \fullref{thm:propositional_semantic_lem}, we have the strictly weaker \fullref{thm:propositional_semantic_efq} stating that everything can be proven from a contradiction.
609609

610-
We will also discuss two \hyperref[def:general_logic]{general logics} --- the one defined in \cref{def:propositional_logic} for \hyperref[def:propositional_formula]{propositional formulas}, with the \hyperref[def:truth_value_algebra/intuitionistic]{intuitionistic} \hyperref[def:propositional_institution]{propositional institution} and the corresponding \hyperref[def:propositional_natural_deduction]{natural deduction system}, and the one defined in \cref{def:first_order_logic} for \hyperref[def:fol_formula]{first-order formulas}, with the corresponding \hyperref[def:fol_natural_deduction]{natural deduction system}.
610+
We will define a \hyperref[def:general_logic]{general logic} for \hyperref[def:propositional_formula]{propositional formulas} in \cref{def:propositional_logic}, with the \hyperref[def:truth_value_algebra/intuitionistic]{intuitionistic} \hyperref[def:propositional_institution]{propositional institution} and the corresponding \hyperref[def:propositional_natural_deduction]{natural deduction system}. In \cref{def:fol_natural_deduction}, we will extend intuitionistic natural deduction to \hyperref[def:fol_formula]{first-order formulas}.
611611
\end{concept}
612612
\begin{comments}
613613
\item Intuitionistic logic can also be called \enquote{constructive logic} due to the \hyperref[con:brouwer_heyting_kolmogorov_interpretation]{Brouwer-Heyting-Kolmogorov interpretation}.

text/logical_theories.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ \section{Logical theories}\label{sec:logical_theories}
3838

3939
\NecessitySubProof Let \( \Gamma \) be inconsistent and suppose that \( \mscrX = (X, I) \) is a model of \( \Gamma \). Fix any valuation \( v \) in \( \mscrX \). Since \( \Gamma \vdash \synbot \), \fullref{thm:classical_first_order_logic_soundness_and_complete} implies that \( \Bracks{\synbot}_v = T \).
4040

41-
By the \hyperref[def:fol_denotation/formula_denotation]{definition of formula valuation}, however, we have \( \Bracks{\synbot}_v = F \). The obtained contradiction shows that \( \mscrX \) cannot be a model of \( \Gamma \) and since this structure was chosen arbitrarily, we conclude that \( \Gamma \) is unsatisfiable.
41+
By the \hyperref[alg:fol_formula_denotation/formula_denotation]{definition of formula valuation}, however, we have \( \Bracks{\synbot}_v = F \). The obtained contradiction shows that \( \mscrX \) cannot be a model of \( \Gamma \) and since this structure was chosen arbitrarily, we conclude that \( \Gamma \) is unsatisfiable.
4242
\end{proof}
4343

4444
\paragraph{The L\"owenheim-Skolem theorems}

0 commit comments

Comments
 (0)