Skip to content

Commit

Permalink
Mini bug fix for model theory, changelog, bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
ariroffe committed Feb 21, 2024
1 parent ccbaeeb commit d3e4a96
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [1.9.1] - 2024-02-21
### Fixed
- Mini bug fix in predicate model semantics (makes the valuation function more general)

## [1.9.0] - 2024-02-16
### Added
- Random formula generator for predicate languages
Expand Down
2 changes: 1 addition & 1 deletion docs/source/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
author = 'Ariel Jonathan Roffe'

# The full version, including alpha/beta/rc tags
release = '1.9.0'
release = '1.9.1'


# -- General configuration ---------------------------------------------------
Expand Down
6 changes: 3 additions & 3 deletions logics/classes/predicate/semantics/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -457,13 +457,13 @@ def valuation(self, formula, model, free_variable_denotation_dict=None):
predicate = formula[0]
predicate_denotation = model.denotation(predicate, free_variable_denotation_dict)
# Denotations of the terms
# 1-ary
if self.language.arity(predicate) == 1:
# 1-ary predicate
if len(formula) == 2:
term_denotations = model.denotation(formula[1], free_variable_denotation_dict)
# Callable
if callable(predicate_denotation):
return predicate_denotation(term_denotations)
# >1-ary
# >1-ary predicate
else:
term_denotations = tuple(model.denotation(x, free_variable_denotation_dict) for x in formula[1:])
# Callable
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[metadata]
name = logics
version = 1.9.0
version = 1.9.1
author = Ariel Jonathan Roffé
author_email = arielroffe@filo.uba.ar
url = https://github.com/ariroffe/logics
Expand Down

0 comments on commit d3e4a96

Please sign in to comment.