1 Introduction

Formal concept analysis (FCA) was first introduced by Barbut and Monjardet (1970). As an effective data processing tool, FCA is widely used in data mining (Missaoui et al. 1994), semantic web (Maio et al. 2012), machine learning (Xia et al. 2010), information retrieval (Poelmans et al. 2012), medical diagnosis (Zou and Deng 2017), gene expression data analysis (Kaytoue et al. 2011), cooperative game theory (Jiménez-Losada et al. 2023), and other fields. Formal context is an important foundation of FCA, which is a triple set consisting of a set of objects, a set of attributes, and a binary relation between objects and attributes, usually denoted by (UCI), where U and C denote the set of objects and the set of attributes, respectively, and I denotes the binary relation between objects and attributes. Formal concept is another important foundation of FCA, which is formed by Galois connections, where all formal concepts form a lattice structure according to a certain partial order, called the concept lattice. A comprehensive theory of FCA was proposed by Wille (1982). Zhang et al. (2005) proposed formal decision context in 2005, which adds decision attributes and binary relations between objects and decision attributes to the formal contexts, and is usually represented by a quintuple (UCIDJ), where U, C, I have the same meaning as that in the formal context, D denotes the set of decision attributes, and J denotes the binary relation between objects and decision attributes. Wei et al. (2008) presented the attribute reduction theory of formal decision contexts based on Zhang et al. (2005), in which two kinds of formal decision contexts are defined, one is called strong consistent formal decision contexts and the other is called weak consistent formal decision contexts. However, the classical formal context is based on the fact that the relationship between objects and attributes is well-defined, i.e., objects have binary relations with attributes with values 0 or 1, which will lead to its limitations in practical applications. For this reason, Burusco and Fuentes-Gonzalez (1994) and Burusco and Fuentes-González (2000) combined formal context with fuzzy sets (Zadeh 1979) and proposed the definition of the fuzzy concept lattice based on fuzzy logic. In the following years, many scholars have proposed various fuzzy concept lattices from different perspectives, combined with different types of fuzzy sets or implication operators, such as T-fuzzy concept lattice, intuitionistic fuzzy concept lattice, variable threshold concept lattice, etc., cf. Addison et al. (2023), Kridlo and Ojeda-Aciego (2017), Bělohlávek (2015), Bělohlávek et al. (2010), Gediga and Düntsch (2002), Georgescu and Popescu (2004), Popescu (2004), Zhang and Wei (2016), Zhang (2018), and Li and Zhang (2010).

It is worth noting that Krajči (2003) and Yahia et al. (2000) independently introduced the concept of “one-side fuzzy concept”, which the set of objects is a crisp set and the set of attributes is a fuzzy set. Compared with other fuzzy concepts, it has the advantage that the number of generated formal concepts is significantly reduced. It is also interesting to note that Bělohlávek (2001a, 2001b, 2001c) also proposed a series of fuzzy concept lattice theory as well as definitions of reduction in 2001, and a comprehensive study of fuzzy concept lattices and a comparison of some approaches was made in Bělohlávek et al. (2005). To further investigate the structure and properties of the fuzzy concept lattice, Zhang et al. (2007) generalized the one-sided fuzzy concept based on this, he first constructed a pair of operators that can form Galois connections and then defines three variable threshold concepts, which makes the one-sided fuzzy concept a special case.

As the era of big data approaches, how to accurately eliminate redundant information has become an urgent problem for data analysis and processing. Therefore, attribute reduction of formal contexts naturally becomes a hot problem for data mining and knowledge representation. To address this problem, many scholars have proposed different reduction methods for this purpose, such as rough sets (Yao 2004a, b; Liang et al. 2012; Chen et al. 2007), information entropy (Huang et al. 2016; Singh et al. 2017), and Boolean reasoning (Zhang et al. 2005; Wu et al. 2009; Mi et al. 2010).

The purpose of reduction is to reduce the data dimension, or to simplify the structure of the concept lattice. Some scholars have proposed methods to simplify the structure of the concept lattice by reducing the concepts and thus, some scholars have proposed methods to reduce the attribute dimension without changing some properties of the concept lattice. For the former, numerous scholars have also conducted detailed studies, cf. Elloumi et al. (2004), Jaoua and Elloumi (2002). For the latter, on the one hand, Zhang et al. (2005) discussed the classical concept lattice based on the discernibility matrix and the discernibility function, while ensuring that the structure of the concept lattice remains unchanged. In addition, Konečný (2017) compared the attribute reduction algorithm (DR-method) in Ganter and Wille (1999) with the algorithm in Zhang et al. (2005). He analyzed that the DR-method is more advantageous in time complexity and applied this algorithm to the reduction of various concept lattices. Then, Konečný proved that the DR-method is faster than Zhang et al. (2005) in running time by the data experiments in Konečný and Krajča (2018). Furthermore, Konečný achieved a new algorithm in Konečný and Krajča (2019) with polynomial time complexity that maintains the structure of the concept lattice unchanged by eliminating unnecessary steps from the algorithm in Zhang et al. (2005). Recently, Shao et al. (2015) extended the approach (Zhang et al. 2005) correspondingly to FFCs. However, one drawback of this reduction approach is that it requires the generation of all formal concepts or formal fuzzy concepts, and this workload is very large, especially for FFCs. On the other hand, in order to be able to ensure that all the reduced attributes can still accurately represent the information of the object, Wu et al. (2009) combined the formal context with the granular computing, and firstly introduced the concept of object granules in the classical formal context and gave the attribute reduction method while keeping the object granules unchanged. It is worth mentioning that, as an extension of the FFC, the formal fuzzy decision context (FFDC) was defined by Shao et al. (2016) by categorizing attributes into conditional and decision attributes. Shao also introduced the definition of fuzzy object granules and fuzzy granular consistent sets and designed the algorithm of granular reduction for FFCs and FFDCs. It is important to know that the reduction methods used here are all Boolean reasoning. In general, the reduction of all formal contexts can be obtained by calculating Boolean function and discernibility matrix.

However, the complexity of the algorithms based on Boolean reasoning is high. Therefore, some heuristic algorithms (Huang et al. 2016; Li et al. 2011) have been proposed by some scholars. In particular, due to the remarkable performance of graph theory in many applications, in recent years, graph theory has been used in the fields of granular computing, FCA, and electrical engineering. For example, Wang and Gong (2018) and Gong and Wang (2017) constructed a hypergraph partitioning model for the granular based on fuzzy equivalence relations. Also, graph theory has been applied to the reduction of coverage decisions by Kulaga et al. (2005). In order to reduce the complexity of constructing fuzzy concepts from FFCs, a reduction method based on directed graph was introduced by Mao (2017). Notably, Chen et al. (2018) combined vertex cover theory in graph theory with Boolean functions to construct a new heuristic reduction algorithm and conducted extensive data experiments, which showed that the algorithm has significant advantages over algorithms based on discernibility matrices and Boolean reasoning both in terms of time complexity and running time.

The motivation for the study in this paper is presented from four perspectives.

(1) Methods for FFCs granular reduction while ensuring all object granules invariance have been investigated in Shao et al. (2016). However, there is a lack of research on granular reduction that keeps object granules of different granularities invariant. The main difficulty lies in the construction of object granules of different granularity and granular discernibility matrices of discernibility granularity, and in clearly interpreting their actual semantics. Therefore, our intention is to construct object granules and discernibility matrices of different granularities and propose corresponding reduction methods.

(2) The granular reduction method based on Boolean reasoning can find out all the granular reducts, however, the complexity of the reduction algorithm is high. The reduction speed is acceptable when facing small data sets, but it is inefficient when facing large data sets, thus affecting the data processing process. In view of this, we aim to develop a heuristic reduction algorithm to reduce the complexity of the reduction algorithm and improve the efficiency of the reduction.

(3) The traditional partial order relationship makes all fuzzy concepts form a fuzzy concept lattice. The structure of this lattice is complex and all concepts are represented in the lattice. Is it possible to find a partial order relation with parameters that allows concepts satisfying certain properties to be represented in the lattice, while those within a certain range are no longer represented in the lattice?

(4) As far as I know, most of FFCs in the reduction, for multi-valued attributes, is to single out all the multi-valued attributes. However, such a converted data set not only causes the data volume to become larger, but also often fails to represent some features of the original multi-valued attributes and to explain their practical meaning. In addition, a simple regularization of a multi-valued attribute also does not explain its actual meaning very well. Therefore, it is necessary to develop a function for the conversion of multi-valued attributes, especially continuous-type data attributes, to an FFC.

In summary, the contributions and innovations of this thesis are mainly in three areas.

(1) Two maps \(g_{\delta }\) and \(g_{\bar{\delta }}\), \(\delta \)-object granule, \(\delta \)-partial order relation, \(\delta \)-granular reduction, and \(\delta \)-discernibility matrix are defined.

(2) \(\delta \)-granular reduction methods based on Boolean reasoning and underlying graph theory in FFCs and FFDCs, respectively, are given. And the framework for these two approaches is shown in Fig. 1, where an FFC and an FFDC are denoted as K and S, respectively. The \(\delta \)-distinction matrices of K and S are denoted as \(D_K^{\delta }\) and \(D_S^{\delta }\), respectively. The hypergraphs induced by \(D_K^{\delta }\) and \(D_S^{\delta }\) are denoted as \(H_K^{\delta }\) and \(H_S^{\delta }\), respectively. The minimal transversals of \(H_K^{\delta }\) and \(H_S^{\delta }\) are denoted as \(T(H_K^{\delta })\) and \(T(H_S^{\delta })\), respectively.

(3) Finally, a function for conversion from information tables to FFCs is defined.

Fig. 1
figure 1

Structure of the two reduction methods

The rest of the paper is framed as follows. In Sect. 2, some basic concepts in FFCs and graph theory are reviewed and two maps \(g_{\delta }\) and \(g_{\bar{\delta }}\) with parameters, \(\delta \)-object granule, and \(\delta \)-partial order relations are introduced. In Sect. 3, the definition of \(\delta \)-granular reduction for FFCs is defined. Furthermore, two reduction algorithms based on Boolean reasoning and graph theory were designed for FFCs without decision attributes. In addition, data experiments were conducted. Similar to Sect. 3, the definition of \(\delta \)-granular reduction with decision attributes and Boolean reasoning methods and graph theoretic methods for \(\delta \)-granular reduction are defined and data experiments are performed in Sect. 4. Finally, the summary and outlook of the paper are given in Sect. 5.

2 Preliminaries

In this section, we first review several concepts and results (Yahia et al. 2000; Eiter and Gottlob 1995; Listrovoy and Minukhin 2012) that we are going to use in our work. Then, we introduce some new definitions and properties. Throughout this paper, we always assume that the universe of discourse is a nonempty finite set.

2.1 Formal fuzzy contexts and one-sided fuzzy concepts

The FFC, which forms the basis of the fuzzy formal concept analysis, is generally represented by a triple set \(K=(U,C,\tilde{I})\). Where U and C are the sets of objects and attributes, respectively, \(\tilde{I}\) is the fuzzy binary relationship of U and C, indicating the degree to which the object has the attribute. For example, \(\tilde{I}(x,a)=0.7\) means the degree to which x has attribute a is 0.7.

Let U be a finite and nonempty set called the universe of discourse. We denote by P(U) and \(\mathscr {F}(U)\) the power set and the fuzzy power set of U, respectively. For any \(\tilde{U}_1, \tilde{U}_2\in \mathscr {F}(U)\), then \(\tilde{U}_1\subseteq \tilde{U}_2\) if and only if \(\tilde{U}_1(x)\le \tilde{U}_2(x), \forall x\in U\). Also, the \(\cup \) and \(\cap \) operation is defined by the following equation

\(\tilde{U}_1\cup \tilde{U}_2=\tilde{U}_1(x)\vee \tilde{U}_2(x)=\mathrm{{sup}}(U_1(x),U_2(x)),\)

\(\tilde{U}_1\cap \tilde{U}_2=\tilde{U}_1(x)\wedge \tilde{U}_2(x)=\mathrm{{inf}}(U_1(x),U_2(x)).\)

Krajči Krajči (2003) and Yahia Yahia et al. (2000) defined two operations between P(U) and \({\mathscr {F}}(C)\) in FFCs.

Definition 1

Let \(K=(U,C,\tilde{I})\) be an FFC. For \(X\in P(U)\), \(\tilde{B}\in \mathscr {F}(C)\), the operators \(f : P ( U ) \rightarrow {\mathscr {F}}(C)\) and \(g:\mathscr {F}(C)\rightarrow P(U)\) are defined respectively as follows:

$$\begin{aligned} f(X)(a)= & {} \underset{x \in X}{\wedge }\ \tilde{I} ( x, a ), a \in C, \end{aligned}$$
(1)
$$\begin{aligned} g(\tilde{B})= & {} \{x\in U | \forall a\in C, \tilde{B}(a)\le \tilde{I}(x, a)\}. \end{aligned}$$
(2)

In addition, there are the following properties:

  1. (1)

    \(X_1 \subseteq X_2 \Rightarrow f ( X_2 )\subseteq f ( X_1 ), \tilde{B}_1 \subseteq \tilde{B}_2 \Rightarrow g (\tilde{B}_2 ) \subseteq g (\tilde{B}_1 ),\)

  2. (2)

    \(X \subseteq g \circ f ( X ), \tilde{B} \subseteq f \circ g (\tilde{B}),\)

  3. (3)

    \(f ( X ) = f \circ g \circ f ( X ) , g (\tilde{B}) = g \circ f \circ g (\tilde{B}),\)

  4. (4)

    \(f (\underset{i\in J}{\bigcup }\ X_i ) = \underset{i\in J}{\bigcap }\ f ( X_i ), ~~g (\underset{i\in J}{\bigcup }\tilde{B}_i) =\underset{i\in J}{\bigcap }\ g (\tilde{B}_i ).\)

where \(X, X_1, X_2, X_i \in P ( U )\) , and \(\tilde{B}, \tilde{B_1}, \tilde{B_2}, \tilde{B_i} \in \mathscr {F}(C),~~i \in J\) (J is an index set). A one-sided fuzzy concept is a binary pairs, usually denoted by \(\tilde{F}C=(X,\tilde{B})\), where \(X\subseteq U, \tilde{B}\subseteq C\), and satisfy that \(f(X)=\tilde{B}, g(\tilde{B})=X\). X and \(\tilde{B}\) are called the extent and intent of \((X,\tilde{B})\), respectively. These properties above point to the fact that the operations f and g are a Galois connection between the power sets P(U) to \(\mathscr {F}(C)\). Furthermore, \((g\circ f (X), f(X))\) must be a one-sided fuzzy concept. The set of all concepts we denote by \(\mathscr {B}(U,C,\tilde{I})\). Then, all concepts form a concept lattice \(\tilde{L}(U,C,\tilde{I})\) through a partial order relation \(\preceq \), which means \((X_1,\tilde{B}_1)\preceq (X_2,\tilde{B}_2)\) if and only if \(X_1\subseteq X_2\), or equivalently, \(\tilde{B}_2\subseteq \tilde{B}_1\).

Furthermore, Shao et al. (2016) proposed concept of the fuzzy sub-context. For any \(C' \subseteq C\), one can obtain an FFC \(K_{C'}=(U,C',\tilde{I}_{C'})\), which is called a sub-context of K, where \(\tilde{I}_{C'}=\tilde{I}\cap (U\times C')\). For \(X\in P(U)\) and \(\tilde{B}\in \mathscr {F}(C')\), the operators \(f_{C'} :P(U)\rightarrow \mathscr {F}(C')\) and \(g_{C'}:\mathscr {F}(C')\rightarrow P(U)\) are defined respectively as follows:

$$\begin{aligned} f_{C'}(X)(a)= & {} \underset{x\in X}{\bigwedge }\ {\tilde{I}}(x, a), \forall a\in C', \end{aligned}$$
(3)
$$\begin{aligned} g_{C'}(\tilde{B})= & {} \{x\in U | \forall a \in C',\tilde{B}(a)\le \tilde{I}(x, a)\}. \end{aligned}$$
(4)

For any \(C' \subseteq C\), its characteristic function \(\chi _{C'}\) is defined as \(\chi _{C'} (a)=1\) for \(a\in {C'}\), otherwise is 0. Moreover, there are the following properties.

(1) \(f_{C'}(X)=f(X)\cap {\chi _{C'}},\)

(2) \(g\circ f(X)\subseteq g_{C'} \circ {f_{C'}}(X).\)

For the convenience of description, we will use f(x) instead of \(f(\{x\})\).

Example 1

Given an FFC \(K=(U, C,\tilde{I})\) as depicted in Table 1. Let \(C'=\{b,c,e\}\), then \((U, C',\tilde{I}_{C'})\) is a sub-context of K, and is represented by Table 2. For any \(X\subseteq U\), it can be easily checked that \(f_{C'}(X)=f(X)\cap \chi _{C'}\). All formal concepts induced by K are listed in Table 3. The Hasse diagram corresponding to the fuzzy concept lattice composed of all fuzzy concepts is shown in Fig. 2.

Table 1 A formal fuzzy context K
Table 2 A fuzzy sub-context \((U, C',\tilde{I}_{C'})\)
Table 3 All one-sided fuzzy concepts derived from Table 1
Fig. 2
figure 2

The Hasse diagram of the fuzzy concept lattice \(\tilde{L}(U, C,\tilde{I})\)

2.2 Formal fuzzy decision contexts

An FFDC is a quintuple set \(S=(U, C, \tilde{I}, D, \tilde{J})\), where \((U,C,\tilde{I})\) and \((U,D,\tilde{J})\) are FFCs, \(C\cap D= \emptyset \), C and D are conditional attribute set and decision attribute set, respectively. For a given FFDC \(S= ( U, C, \tilde{I}, D, \tilde{J} )\), and \(C' \subseteq C\), the operator \(f_{C'}\) and \(g_{C'}\) in fuzzy context \((U, C, \tilde{I})\) are defined by Eqs. (3) and (4). The corresponding operators in \(( U, D, \tilde{J})\) are denoted as \(f_{D}\) and \(g_{D}\) so as to avoid confusion.

Example 2

For a given FFDC \(S=(U,C,\tilde{I},D,\tilde{J})\) as shown in Table 4, where, \(U=\{x_1, x_2, x_3, x_4, x_5\}\), \(C=\{a, b, c, d, e\}\) and \(D=\{d_1, d_2, d_3\}\). Table 5 lists all one-sided fuzzy concepts of \(\tilde{L}(U, D,\tilde{J})\) and the Hasse diagram of concept lattice \(\tilde{L}(U, D,\tilde{J})\) is depicted as Fig. 3.

Table 4 A formal fuzzy decision context S
Table 5 All one-sided fuzzy concepts of \(\tilde{L}(U,D,\tilde{J})\)
Fig. 3
figure 3

The Hasse diagram of the concept lattice \(\tilde{L}(U,D,\tilde{J})\)

2.3 Mapping and concepts with parameters in formal fuzzy contexts

Definition 2

Let \(K=(U,C,\tilde{I})\) be an FFC. For \(X\in P ( U )\), \(\tilde{B}\in \mathscr {F}(C)\), \(\delta \in [0,1]\), the operators \(g_{\delta }:\mathscr {F}(C)\rightarrow P ( U )\) and \(g_{\bar{\delta }}:\mathscr {F} (C)\rightarrow P(U)\) are defined respectively as follows:

$$ \begin{aligned} g_{\delta }(\tilde{B})= & {} \{x\in U|\forall a \in C,0\le \tilde{I}( x, a )-\tilde{B}( a )\le {\delta }\}\}, \\ g_{\bar{\delta }}(\tilde{B})= & {} \{x\in U| \forall a\in C,\tilde{I}(x,a)- \tilde{B}(a)\ge 0 \& {\exists } b\in C, \\{} & {} \tilde{I}(x,b)-\tilde{B}(b)\ge {\delta }\}. \end{aligned}$$

From the above definition, it is easy to obtain the following properties.

Property 1

Let \((U, C, \tilde{I})\) be an FFC and \(C' \subseteq C\). Then, for all \(X \subseteq U\),

  1. (1)

    \(g_{\delta }\circ f ( X )\subseteq g_{{\delta },{C'}}\circ {f_{C'}} ( X ),\)

  2. (2)

    \(\delta _1<\delta _2 \Rightarrow g_{\delta _1}(\tilde{B})\subseteq g_{\delta _2}(\tilde{B}),\)

  3. (3)

    \(\delta _1<\delta _2 \Rightarrow g_{\bar{\delta }_1}(\tilde{B})\supseteq g_{\bar{\delta }_2}(\tilde{B}),\)

  4. (4)

    \(\tilde{B}_1 \subseteq \tilde{B}_2 \Rightarrow g_{\delta }(\tilde{B}_2 )\cup g_{\bar{\delta }}(\tilde{B}_2 ) \subseteq g_{\delta }(\tilde{B}_1 )\cup g_{\bar{\delta }}(\tilde{B}_1),\)

  5. (5)

    \(X \subseteq g_{\delta } \circ f( X ) \cup g_{\bar{\delta }} \circ f( X ),\) \( \tilde{B} \subseteq f\circ g_{\delta } (\tilde{B})\cup f\circ g_{\bar{\delta }} (\tilde{B}),\)

  6. (6)

    \(g(\underset{i\in J}{\bigcup }\tilde{B}_i) =\underset{i\in J}{\bigcap }\ (g_{\delta } (\tilde{B}_i)\cup g_{\bar{\delta }}(\tilde{B}_i)).\)

Remark 1

From Definitions 1 and 2, we have that \(g(\tilde{B})=g_{\delta }(\tilde{B})\cup g_{\bar{\delta }}(\tilde{B})\), where \(\delta _1,\delta _2\in [0,1]\), \(\tilde{B}_1,\tilde{B}_2,\tilde{B}_i\subseteq \mathscr {F}(C)\) and J is the index set. Their relationship is shown in Fig. 4, where the intersecting part \(C(\tilde{B})=\{x\in U|~\tilde{B}(a)+\delta =\tilde{I}(x,a),\forall a\in C\}\). Furthermore, \(g_{\delta }\) degenerates into Eq. (2) when \(\delta =1\). It is worth noting that \((g_{\delta }\circ f(X),f(X))\) and \((g_{\bar{\delta }}(\tilde{(}B)),f\circ g_{\delta }(\tilde{B}))\) are not necessarily one-sided fuzzy concepts. However, \((g_{\delta }\circ f(x),f(x))\) must be a one-sided fuzzy concept for \(x\in U\), and is called an \(\delta \)-object concept.

Fig. 4
figure 4

Diagrammatic representation of the relationship between \(g(\tilde{B})\), \(g_{\delta }(\tilde{B})\), \(g_{\bar{\delta }}(\tilde{B})\)

Example 3

(Continue from Example 1) When taking \(\delta = 0.1\) and \(X=\{x_1,x_2\}\) and according to Definitions 1 and 2, we have:

\(f(X)=a^{0.45}b^{0.67}c^{0.80}d^{0.66}e^{0.80}=\tilde{B},\)

\(g_{0.1}(\tilde{B})=\{x_1\},\)

\(f\circ (g_{0.1}\circ f(X))=f(x_1)=\{a^{0.45}b^{0.67}c^{0.80}d^{0.75}e^{0.80}\}\ne f(X).\)

Thus, it is known that \((g_{\delta }\circ f(X),f(X))\) is not necessarily a one-sided fuzzy concept.

2.4 A novel partial order relation

Next, we define a partial order relation between object concepts.

Definition 3

Let \(\tilde{F}C_1=\{X_1, \tilde{B}_1\}\) and \(\tilde{F}C_2=\{X_2,\tilde{B}_2\}\) be two one-sided fuzzy object concepts generated by an FFC \(K=(U, C,\tilde{I})\). Then \(\tilde{F}C_1\overset{\delta }{\preceq }\ \tilde{F}C_2\), if \(\tilde{F}C_1\) and \(\tilde{F}C_2\) satisfy the following properties:

(1) \(X_1 \supseteq X_2\),

(2) For all \(a\in C\), there are \(\tilde{B}_1(a)\le \tilde{B}_2(a)\),

(3) There exists \(b\in C\), such that \(\tilde{B}_1(b)+{\delta }\le \tilde{B}_2(b)\).

Remark 2

It is easy to known that \(\overset{\delta }{{\preceq }}\) is the hierarchical partial order of fuzzy concept lattices. According to the partial order relationship, all one-sided fuzzy concepts can generate a lattice, noted as \(\tilde{L}^{\delta }(U, C,\tilde{I})\). When \(\delta =0\), \(L^{\delta }\) degenerates to \(\tilde{L}(U, C, \tilde{I})\).

Example 4

(Continued from Example 1). When taking \(\delta =0.1\), all one-sided fuzzy concepts are shown in Table 3. Let’s take the first concept \(\tilde{F}C_1=(\{x_1,x_2,x_3,x_4,x_5\},~\{a^{0.45},\) \( b^{0.60},c^{0.80},d^{0.20},e^{0.80}\})\). Then, the following concept is found based on the partial order relationship defined in Definition 3. Finally, we can obtain a concept lattice \(L^{0.1}\) as shown in Fig. 5.

Fig. 5
figure 5

The Hasse diagram of the concept lattice \(L^{0.1}(U,AT,\tilde{I})\)

Let \(K = (U, C,\tilde{I})\) be an FFC and \(C'\subset C\). A binary relation \(R^{\delta }_{C'}\) is defined by

$$\begin{aligned} R^{\delta }_{C'} = \{( x, y ) \in U \times U | 0\le \tilde{I} ( y, a )- \tilde{I}(x, a)\le \delta ,~{\forall } ~a \in C'\}. \end{aligned}$$
(5)

\(R^{\delta }_{C'}\) is called an ordered relation on the object set, where \(( x, y )\in R^{\delta }_{C'}\) means y is not less than x and y will not be greater than x by more than \(\delta \) with respect to all attributes in \(C'\). It is evident to obtain that

  1. (1)

    \(R^{\delta }_{C'}\) is reflexive, transitive, and asymmetric,

  2. (2)

    \(R^{\delta }_{C'} =\underset{a\in {C'}}{\bigcap } R^{\delta }_{\{a\}}\),

  3. (3)

    if \(C_1\subseteq C_2\subseteq C_3\), then \(R^{\delta }_{C_1}\supseteq R^{\delta }_{C_2} \supseteq R^{\delta }_{C_3}\),

  4. (4)

    if \(C_1,C_2\subseteq C\), then \(R^{\delta }_{C_1\cup C_2}=R^{\delta }_{C_1}\cap R^{\delta }_{C_2}\),

  5. (5)

    if \(C_1\subseteq C_2\subseteq C_3\), then \([x]_{R^{\delta }_{C_1}}\supseteq [x]_{R^{\delta }_{C_2}}\supseteq [x]_{R^{\delta }_{C_3}}\),

  6. (6)

    \([x]_{R^{\delta }_{C'}}=[y]_{R^{\delta }_{C'}}\) if and only if \(\tilde{I}(x,a)=\tilde{I}(y,a),\forall a\in C'\),

  7. (7)

    \(\tau =\{[x]_{R^{\delta }_{C'}}|~x\in U\}\) forms a covering of U.

For any \(x\in U\), its granule of knowledge induced by the ordered relation \(R^{\delta }_{C'}\) is

$$\begin{aligned} \begin{aligned} \left[ x \right] _{R^{\delta }_{C'}}&=\{y\in U | ( x, y )\in R^{\delta }_{C'} \}\\&=\{ y\in U |0\le \tilde{I}(y,a)- \tilde{I}(x,a)\le \delta ,{\forall }~a\in C'\}, \end{aligned} \end{aligned}$$

where \(\left[ x\right] _{R^{\delta }_{C'}}\) is the set of objects that are larger than x, but whose larger value does not exceed \(\delta \) with respect to all attributes in \(C'\).

Remark 3

When \(\delta =0\), the object granule of x contains only itself, when the granule is the finest. As \(\delta \) increases, the object granule contains more information. When \(\delta =1\), the object granule degenerates to the object granule in Shao et al. (2016), at which point the granule is the coarsest.

Lemma 1

Let \(K = (U, C,\tilde{I})\) be an FFC, \(C'\subset C\) and \(x\in U\). Then,

$$\begin{aligned} f_{C'}(\left[ x\right] _{R^{\delta }_{C'}})(a)=f_{C'}(x)(a), \forall ~a\in C'. \end{aligned}$$

Proof

By Eq. (3), we can obtain that

$$\begin{aligned} \begin{aligned} f_{C'}(\left[ x\right] _{R^{\delta }_{C'}})(a)&=\underset{x\in \left[ x\right] _{R^{\delta }_{C'}}}{\bigwedge } {\tilde{I}} ( x, a )\\&=\tilde{I}(x,a)\\&=f_{C'}(x)(a). \end{aligned} \end{aligned}$$

\(\square \)

Theorem 1

Let \(K = (U, C,\tilde{I})\) be an FFC, \(C'\subset C\) and \(x\in U\). Then, \((\left[ x\right] _{R^{\delta }_{C'}},f_{C'}(\left[ x\right] _{R^{\delta }_{C'}}))\) is a one-sided fuzzy concept of \((U,C',\tilde{I}_{C'})\) and \(\left[ x\right] _{R^{\delta }_{C'}}=g_{{\delta },{C'}}\circ f_{C'}(x)\).

Proof

For any \(z\in \left[ x\right] _{R^{\delta }_{C'}}\), there is

$$\begin{aligned} z\in \{y|\forall a\in C', 0\le \tilde{I}(y,a)- \tilde{I}(x,a)\le \delta \}. \end{aligned}$$

By the definition of \(g_{\delta }\), it follows that \(z\in g_{{\delta },{C'}}(\tilde{I}(x,a))\). It also follows from Lemma 1 that

$$\begin{aligned} g_{{\delta },{C'}}(\tilde{I}(x,a))=g_{{\delta },{C'}}\circ f_{C'}(x)(a). \end{aligned}$$

Thus,

$$\begin{aligned} \left[ x\right] _{R^{\delta }_{C'}}\subseteq g_{{\delta },{C'}}\circ f_{C'}(x). \end{aligned}$$

For any \(z\in g_{{\delta },{C'}}\circ f_{C'}(x)\), by Lemma 1, we have \(g_{{\delta },{C'}}\circ f_{C'}(x)=g_{{\delta },{C'}}\circ (\tilde{I}(x,a)),\forall a\in C'.\) Again, based on the definition of \(g_{\delta }\), it is known that

$$\begin{aligned} g_{{\delta },{C'}}\circ (\tilde{I}(x,a))= & {} \{y|\forall a\in C', 0\le \tilde{I}(y,a)-\tilde{I}(x,a)\le \delta \}\\ {}= & {} \left[ x\right] _{R^{\delta }_{C'}}. \end{aligned}$$

Therefore, \(\left[ x\right] _{R^{\delta }_{C'}}=g_{{\delta },{C'}}\circ f_{C'}(x)\), and \((\left[ x\right] _{R^{\delta }_{C'}}, f_{C'}(\left[ x\right] _{R^{\delta }_{C'}})\) is a one-sided fuzzy concept. \(\square \)

2.5 Hypergraph and its minimal transversal

A hypergraph is a class of graph structures in which a hyperedge can contain any number of vertices, and is a generalisation of the traditional graph, generally denoted by \(H=(V,E)\). Where \(V=\{v_1,v_2,\ldots ,v_m\}\) denotes the set of vertices and \(E=\{e_1,e_2,\ldots ,e_n\}\) denotes the set of hyperedges. If there is only one vertex in a hyperedge of a hypergraph, the hyperedge is called a loop, and if there are two or more hyperedges with identical set of vertices in the hypergraph, we say that these hyperedges are multiple hyperedges. In addition, a hypergraph can also be expressed as a incidence matrix \(M=(M(ij))\) \(i\in \{1,2,\ldots ,n\}\) \(j\in \{1,2,\ldots ,m\}\), where the i-th row represents the hyperedge \(e_i\) and the jth column represents the vertex \(v_j\), and \(M(ij)=1\) if \(v_j\in e_i\), otherwise, \(M(ij)=0\).

A transversal Bondy and Murty (2008) T of a hypergraph H refers to the set of vertices that can cover all the hyperedges in H. If there is no subset of the transversal T that is still a transversal, then the T is called the minimal transversal of H. The set of all minimal transversals of H is denoted by \(\mathcal {T}(H)\).

We use \(N_{H}(e)=\{v:v\in e\}\) to denote the set of all vertices associated with the hyperedge e. Denote \(\mathcal {N}_H=\{N_H(e):e\in E\}\). It has been verified in Eiter and Gottlob (1995) and Listrovoy and Minukhin (2012) that all minimal transversals of a hypergraph can be obtained by a Boolean formula. Like the approach in the Chen et al. (2020), we define a Boolean function \(f_H\) of a hypergraph H as follows, which is a function on vertices \(v_1,v_2,\ldots ,v_n\) of n Boolean variables \(v_1',v_2',\ldots ,v_n'\).

$$\begin{aligned} f_H(v_1',v_2',\ldots ,v_n')=\wedge \{\vee N_H(e):N_H(e)\in \mathcal {N}_H\}, \end{aligned}$$

where \(\vee N_H(e)\) is the disjunction of all Boolean variables \(v'\) satisfying \(v\in N_H(e)\).

The following lemma describes a method for calculating all minimal transversals of a hypergraph.

Lemma 2

(Eiter and Gottlob 1995; Listrovoy and Minukhin 2012) Let \(H = (V,E)\) be a hypergraph. Then a subset \(V' \subseteq V\) is a minimal transversal of H if and only if \(\underset{v_i \in V'}{\bigwedge } \bar{v}_i\) is a prime implicant of the Boolean function \(f_H\).

From Lemma 2, it is clear that if

$$\begin{aligned}{} & {} f_H(v_1',v_2',\cdots ,v_n')=\wedge \{\vee N_H(e):N_H(e)\in \mathcal {N}_H\}\\{} & {} \quad =\underset{i=1}{\overset{t}{\vee }}(\underset{j=1}{\overset{s_i}{\wedge }}{\bar{v}_j}), \end{aligned}$$

where \(\underset{j=1}{\overset{s_i}{\wedge }}{\bar{v}_j}, i\le t\) are all the prime implicants of the Boolean function \(f_H\), then \(I_i=\{v_j:j\le s_i\}, i\le t,\) are all the minimal transversal of H. We will also write \(v_i\) instead of \(\bar{v}_i\) in the discussion to follow.

Example 5

Let \(H = (V, E)\) be a hypergraph with \(V = \{v_1, v_2, v_3, v_4, v_5,v_6\}\) and \(E = \{e_1, e_2, e_3, e_4, e_5\} =\) \( \{\{v_1, v_2\},\{v_1, v_2, v_4\},\{v_2, v_3, v_5\}, \{v_3, v_4, v_6\}, \{v_6\}\}\). The incidence matrix of H shown in Table 6. Furthermore, after simplification, we obtain the Boolean function \(f_H\) in prime implicants as: \(f_H(v_1, v_2, v_3, v_4, v_5, v_6) = (v_1\vee v_2) \wedge (v_1 \vee v_2 \vee v_4) \wedge (v_2 \vee v_3 \vee v_5)\wedge (v_3, v_4, v_6)\wedge (v_6)=(v_2\wedge v_6)\vee (v_1\wedge v_3\wedge v_6)\vee (v_1\wedge v_5\wedge v_6)\). Therefore, \(\mathcal {T}(H)= \{\{v_2,v_6\},\{v_1, v_3, v_6\},\{v_1, v_5, v_6)\}\).

Table 6 The incidence matrix of H

3 \(\delta \)-granular reduct in formal fuzzy contexts

In this section, we first provide the definition of \(\delta \)-granular consistent set and \(\delta \)-granular reduction and introduce two different reduction methods.

3.1 Boolean reasoning for \(\delta \)-granular reduct in formal fuzzy contexts

Definition 4

Let \(K=(U, C, \tilde{I})\) be an FFC. An attribute subset \(C' \subseteq C\) is referred to as a \(\delta \)-granular consistent set of K if \(g_{{\delta },{C'}}\circ f_{C'}(x)=g_{\delta }\circ f(x)\) for all \(x\in U\). Furthermore, if there is no proper subset \(C\subset C' \) such that C is a \(\delta \)-granular consistent set, then \(C'\) is referred to as a \(\delta \)-granular reduct of K. The intersection of all \(\delta \)-granular reducts of K is called the \(\delta \)-granular core of K.

Definition 4 implies that a \(\delta \)-granular reduct is a minimal attribute set that retains object \(\delta \)-granular \(\left[ x\right] _{R^{\delta }_{C'}}\) in a fuzzy concept lattice.

Theorem 2

Let \(K=(U, C, \tilde{I})\) be an FFC and \(C'\subseteq C\). Then \(C'\) is a \(\delta \)-granular consistent set of K if and only if

$$\begin{aligned} g_{{\delta },{C'}} \circ f_{C'}(x) \subseteq g^{\delta } \circ f(x), \forall x\in U. \end{aligned}$$
(6)

Proof

By Property 1 (1), we know that \(g_{\delta }\circ f (x)\subseteq g_{{\delta },{C'}} \circ {f_{C'}} ( x ), \forall x\in U.\) Hence, we conclude that \(C'\) is a \(\delta \)-granular consistent set if and only if Eq.(6) holds. \(\square \)

We denote the set of all \(\delta \)-granular reducts of K as \(\mathcal {R}(K^{\delta })\). According to the significance of the attributes, based on \(\delta \)-granular reducts, the attribute set C is divided into three parts:

(1) \(\delta \)-indispensable attribute (core attribute) set \(Co_{K^{\delta }}: Co_{K^{\delta }}=\bigcap \mathcal {R}(K^{\delta })\),

(2) \(\delta \)-relatively necessary attribute set \(N_{K^{\delta }}: N_{K^{\delta }}=\bigcup \mathcal {R}(K^{\delta })- \bigcap \mathcal {R}(K^{\delta })\),

(3) \(\delta \)-unnecessary attribute set \(I_{K^{\delta }}: I_{K^{\delta }}=C - \bigcup \mathcal {R}(K^{\delta })\).

Corollary 1

Let \(K=(U, C, \tilde{I})\) be an FFC and \(a \in C\). Then a is an \({\delta }\)-indispensable attribute if and only if there exists \(x \in U\) such that \(g_{{\delta },{C - \{a\}}} \circ f_{C - \{a\}}( x ) \nsubseteq g_{\delta } \circ f(x).\)

Proof

It can easily be proved from Theorem 1 and the definition of \(\delta \)-indispensable attribute.

Corollary 1 provides a way to determine whether an attribute is \(\delta \)-indispensable attribute.

To better represent the degree of difference in the membership of different objects to the same attribute, we introduce the concept of \(\delta \)-granular discernibility attribute set. \(\square \)

Definition 5

Let \(K = (U, C, \tilde{I})\) be an FFC and \((x, y)\in U \times U\). We define

$$\begin{aligned} \begin{aligned} D^{\delta }_K(x,y)= \left\{ \begin{array}{ll} \{a\in C|~ \tilde{I}(x,a)>\tilde{I}(y,a)|| \tilde{I}(x,a)\\ +\delta <\tilde{I}(y,a), \exists a\in C)\},\\ \emptyset ,~~~~~ \mathrm{{others}}, \end{array} \right. \end{aligned} \end{aligned}$$

where \(D^{\delta }_K( x, y )\) is referred to as the \(\delta -\)granular discernibility attribute set of x and y, which means that either x is greater than the value of y on some attribute, or the value of some attribute of x plus \(\delta \) is still less than the value of the attribute of y. And \(\mathcal {D}^{\delta }_K =( D^{\delta }_K( x, y ):~( x, y ) \in U \times U )\) is called the \(\delta -\)granular discernibility matrix of K. We denote \([D]^{\delta }_K = \{D^{\delta }_K(x,y):~ D^{\delta }_K( x, y )\ne \emptyset , ( x, y ) \in U \times U \}\).

Remark 4

It is important to note here that when \(\delta = 1\), \(D^{\delta }_K( x, y )\) degenerates to the discernibility attribute set of x and y, \(\mathcal {D}^{\delta }_K\) degenerates to the discernibility matrix, and \([D]^{\delta }_K\) degenerates to \(M_0\) in Shao et al. (2016).

And, \(D^{\delta }_K(x,y)\) has the following properties.

Theorem 3

Let \(K=(U,C,\tilde{I})\) be an FFC, for any \(x,y\in U\), \(\delta _1, \delta _2 \in [0,1]\), if \(\delta _1\ge {\delta _2}\), then \(D^{\delta _1}_K(x,y)\subseteq D^{\delta _2}_K(x,y)\).

Proof

If \(a\in D^{\delta _1}_K(x,y)\) and \(\delta _1\ge {\delta _2}\), we have \(\tilde{I}(x,a)-\tilde{I}(y,a)> \delta _1\ge \delta _2\) or \(\tilde{I}(y,a)-\tilde{I}(x,a)>\delta _1\ge \delta _2\). By Definition 5, we have \(a\in D^{\delta _2}_K(x,y)\), i.e. we have proved that \(D^{\delta _1}_K(x,y)\subseteq D^{\delta _2}_K(x,y)\). \(\square \)

Example 6

(Continued from Example 1) The Tables 7, 8 and 9 present, respectively, the discernibility matrix of K of Example 1 when \(\delta =0.05, 0.2, 0.5\).

It is easy to know that \(D^{0.05}_K(x,y)\supseteq D^{0.2}_K(x,y)\supseteq D^{0.5}_K(x,y)\).

Table 7 The fuzzy discernibility matrix \(D^{0.05}_K\)
Table 8 The fuzzy discernibility matrix \(D^{0.2}_K\)
Table 9 The fuzzy discernibility matrix \(D^{0.5}_{K}\)

To be able to better determine whether \(C'\subseteq C\) is a \(\delta \)-granular consistent set, we introduce the necessary and sufficient condition for \(\delta \)-granular consistent set.

Theorem 4

Let \(K=(U, C,\tilde{I})\) be an FFC and \(C'\subseteq C\). Then, \(C'\) is a \(\delta \)-granular consistent set if and only if \(C'\cap D^{\delta }_K(x, y)\ne \emptyset \) for all \(D^{\delta }_K(x,y)\in [D]^{\delta }_K\).

Proof

\((\Rightarrow )\) Let \(C'\) be a \(\delta \)-granular consistent set. By Theorem 2, we have \(g^{\delta }_{C'} \circ f_{C'}(x) \subseteq g^{\delta }\circ f(x)\) for all \(x\in U\). Using Theorem 1 we obtain

$$\begin{aligned}{}[x]_{R^{\delta }_{C'}}\subseteq [x]_{R^{\delta }_{C}}, \forall x \in U. \end{aligned}$$
(7)

For any \(D^{\delta }_K(x, y) \in [D]^{\delta }_K\) with \(D^{\delta }_K(x, y)\ne \emptyset \), there exists \(a\in C\) such that \(\tilde{I}(x, a)>\tilde{I}(y, a)\) or \(\tilde{I}(y,a)-\tilde{I}(x,a)>\delta \). Hence, \(y\notin [x]_{R^{\delta }_{C}}\). By Eq. (7), we have \(y\notin [x]^{\delta }_{R_{C'}}\). Thus, there exists \(c \in C'\) such that \(\tilde{I}(x, c)>\tilde{I}(y, c)\) or \(\tilde{I}(y,c)-\tilde{I}(x,c)>\delta \). By Definition 5, we conclude that \(c\in D^{\delta }_K(x, y)\). Hence, \(C' \cap D^{\delta }_K(x, y)\ne \emptyset \).

\((\Leftarrow )\) Suppose that \(C'\cap D^{\delta }_K(x, y)\ne \emptyset \) for all \(D^{\delta }_K(x, y)\in [D]^{\delta }_K\) with \(D^{\delta }_K(x, y)\ne \emptyset \). For any \(x, y \in U\), if \(y\notin [x]_{R^{\delta }_{C}}\), i.e. there exists \(a\in C\) such that \(\tilde{I}(x, a)> \tilde{I}(y, a)\) or \(\tilde{I}(y,a)-\tilde{I}(x,a)>\delta \), we have \(D^{\delta }_K(x, y)\ne 0\), hence \(C'\cap D^{\delta }_K(x, y)\ne {\emptyset }\). Thus, there exists \(c\in C'\) such that \(\tilde{I}(x, c)> \tilde{I}(y, c)\) or \(\tilde{I}(y, c)-\tilde{I}(x,c)> \delta \), which means \(y\notin [x]^{\delta }_{R^{\delta }_{C'}}\), and we conclude that \([x]_{R^{\delta }_{C'}}\subseteq [x]_{R^{\delta }_C}\). Since \([x]_{R_{C'}} = g_{{\delta },{C'}} \circ f_{C'}(x)\) and \([x]_{R^{\delta }_C} = g_{\delta } \circ f(x)\), it follows that \(g_{{\delta },{C'}} \circ f_{C'}(x)\subseteq g_{\delta }\circ f(x)\). By Theorem 2, we obtain that \(C'\) is a \(\delta \)-granular consistent set of K. \(\square \)

By employing the \(\delta \)-granular discernibility matrix, we obtain the following judgment theorem of \(\delta \)-indispensable attribute (\(\delta \)-core attribute).

Theorem 5

Let \(K=(U, C, \tilde{I})\) be an FFC and \(a\in C\). Then, a is \(\delta \)-indispensable attribute (\(\delta \)-core attribute) in K if and only if there exists \((x, y)\in U \times U\) such that \(D^{\delta }_K(x, y) = \{a\}\).

Proof

\((\Rightarrow )\) Assume that a is an \(\delta \)-indispensable attribute in K, then \(C- \{a\}\) is not a \(\delta \)-granular consistent set of K. By Corollary 1 we have \(g_{{\delta },{C- \{a\}}}\circ f_{C-\{a\}}(x)\nsubseteq g_{\delta }\circ f(x)\), i.e. \([x]_{R^{\delta }_{C-\{a\}}}\nsubseteq [x]_{R^{\delta }_{C}}\). Thus, \([x]_{R^{\delta }_{C}}\subseteq [x]_{R^{\delta }_{C- \{a\}}}\). Hence, there exists \(y\in U\) such that \(y\in [x]_{R^{\delta }_{C- \{a\}}}\) and \(y\notin [x]_{R^{\delta }_{C}}\), which means \(0\le \tilde{I}(y, b)- \tilde{I}(x, b)\le \delta \) \((\forall ~b\in C- \{a\})\) and \(\tilde{I}(x, a)>\tilde{I}(y, a)\) or \(\tilde{I}(x,a)+\delta < \tilde{I}(y,a)\). Therefore, by Definition 5, we conclude that \(D_K^{\delta }(x, y)=\{a\}\).

\((\Leftarrow )\) If there exists \((x, y)\in U \times U\) such that \(D^{\delta }_K(x, y) = \{a\}\), then, by Definition 5, we obtain \(0\le \tilde{I}(y, b)- \tilde{I}(x, b)\le \delta \) \((\forall b \in C- \{a\})\) and \(\tilde{I}(x, a)> \tilde{I}(y, a)\) or \(\tilde{I}(x,a)+\delta < \tilde{I}(y,a)\). Thus, \([x]_{R^{\delta }_{C-\{a\}}} \nsubseteq [x]_{R^{\delta }_{C}}\), that is, \(g_{{\delta },{C-\{a\}}} \circ f_{C-\{a\}}(x)\nsubseteq g_{\delta } \circ f(x)\). Hence, \(a\in \bigcap \mathcal {R}(K^{\delta })\). Therefore, a is an \(\delta -\)indispensable attribute in K. \(\square \)

Skowron and Rauszer (1992) and Skowron (1993) has shown that the computation of a reduct in rough set theory can be transformed into the computation of a Boolean function. In particular, Wu et al. (2009) completed the computation of the granular reduction in the classical formal context by computing the prime implicants of a Boolean function. Further, Shao et al. (2016) used a similar approach for the granular reduction of the FFCs. Now, we use the same method to compute the \(\delta \)-granular reduction in FFCs.

Definition 6

Let \(K=(U, C, \tilde{I})\) be an FFC and \((x, y)\in U \times U\). A \(\delta \)-granular discernibility function \(f^{\delta }_K\) for K is a Boolean function of m Boolean variables \(\bar{a}_1, \bar{a}_2, \ldots , \bar{a}_m\) corresponding to the attributes \(a_1, a_2, \ldots , a_m\) respectively, and it is defined as:

$$\begin{aligned} f_{K^{\delta }}(\bar{a}_1, \bar{a}_2, \ldots , \bar{a}_m) = \wedge \{\vee { D^{\delta }( x, y )}: D^{\delta }_K( x, y ) \in \mathcal {D}^{\delta }_K \}, \end{aligned}$$

where \(\vee {D^{\delta }_K( x, y )}\) is the disjunction of all variables a such that \(a \in D^{\delta }_K( x, y )\) and \(D^{\delta }_K( x, y )\in [D]^{\delta }_K\). Each conjunctor of the reduced disjunctive form is referred to as a prime implicant.

Theorem 6

Let \(K =( U, C, \tilde{I})\) be an FFC and \(C'\subseteq C\). Then, \(C'\) is a \(\delta \)-granular reduct of K if and only if \(\underset{a\in C'}{\wedge }a\) is a prime implicant of the \(\delta \)-discernibility function \(f_{K^{\delta }}\).

Proof

\((\Rightarrow )\) Let \(C'\subseteq C\) be a \(\delta -\)granular reduct of K. By Theorem 4, we have \(C'\cap D^{\delta }_K(x,y)\ne \emptyset \), for all \(D^{\delta }_K(x,y)\in [D]^{\delta }_K\). Then, there exists \(D^{\delta }_K(x,y)\in [D]^{\delta }_K\) such that \(C'\cap D^{\delta }_K(x,y)=\{a\}\) for \(a\in C'\). It follows that \(\underset{a\in C'}{\wedge }\ a\) is a prime implicant of the \(\delta \)-granular discernibility function.

\((\Leftarrow )\) Suppose \(\underset{a\in C'}{\wedge }a\) is a prime implicant of the \(\delta \)-granular discernibility function \(f^{\delta }_K\). Then \(C'\cap D^{\delta }_K(x,y)\ne \emptyset \), for all \(D^{\delta }_K(x,y)\in [D]^{\delta }_K\). And, there must exist \(D^{\delta }_K(x,y)\in [D]^{\delta }_K\) such that \((C'-\{a\})\cap D^{\delta }_K(x,y)=\emptyset \). Therefore, we conclude that \(C'\) is a \(\delta \)-granular reduct of K. \(\square \)

Let

$$\begin{aligned} f_{K^{\delta }}=\underset{(x,y)\in {U\times U}}{\wedge } \vee { D^{\delta }_K( x, y )}=\underset{k=1}{\overset{t}{\vee }}\left( \underset{s=1}{\overset{q_k}{\wedge }}{a_s}\right) , \end{aligned}$$

where \(\wedge ^{q_k}_{s=1}a_s\), \(k\le t\) are all the prime implicants of the \(\delta \)-granular discernibility function \(f_{K^{\delta }}\). We denote \(N_k=\{a_s|~s=1,2,\ldots ,q_k\}\). Then, \(\{N_k|~k=1,2,\ldots ,t\}\) is the set of all \(\delta \)-granular reducts of K.

\(\delta \)-granular discernibility functions are monotonic Boolean functions and their prime implications uniquely determine all the \(\delta \)-granular reducts of FFCs.

Example 7

(Continued from Example 6) From Tables 7, 8 and 9, using \(\delta \)-granular discernibility function we have

$$\begin{aligned} f_{K^{0.05}}&=\underset{(x,y)\in {U\times U}}{\wedge } \vee { D^{0.05}_K( x, y )}\\&=(a\vee b\vee c\vee d\vee e)\wedge (b\vee c\vee d\vee e)\\&\quad \wedge (a\vee b\vee e)\wedge (a\vee b\vee d)\wedge (a\vee b\vee d\vee e)\\&\quad \wedge (a\vee d)\wedge (c\vee d\vee e)\wedge (a\vee c\vee d)\\&\quad \wedge (a\vee b\vee c\vee e)\wedge (a\vee b)\\&=(a\wedge c)\vee (a\wedge d)\vee (a\wedge e)\vee (b\wedge d).\\ \\ f_{K^{0.2}}&=\underset{(x,y)\in {U\times U}}{\wedge } \vee { D^{0.2}_K( x, y )}\\&=d\wedge (a\vee b)\wedge (a\vee d)\wedge (b\vee d)\\&\quad \wedge (c\vee d)\wedge (a\vee b\vee d)\wedge (a\vee b\vee e)\\&\quad \wedge (a\vee c\vee e)\wedge (a\vee d\vee e)\wedge (a\vee b\vee c\vee e)\\ {}&\quad \wedge (a\vee c\vee d\vee e)\wedge (a\vee b\vee c\vee d\vee e) \\&=(a\wedge d)\vee (b\wedge c\wedge d)\vee (b\wedge d\wedge e).\\ \\ f_{K^{0.5}}&=\underset{(x,y)\in {U\times U}}{\wedge } \vee { D^{0.5}_K( x, y )}\\&=a \wedge b\wedge d\wedge (a\vee b)\wedge (a\vee e)\wedge (b\vee d)\\&\quad \wedge (c\vee d)\wedge (a\vee b\vee d)\wedge (a\vee b\vee e)\wedge (a\vee c\vee e)\\&\quad \wedge (a\vee b\vee c\vee e)\wedge (a\vee c\vee d\vee e)\\ {}&\quad \wedge (a\vee b\vee c\vee d\vee e)\\&=a\wedge b\wedge d. \end{aligned}$$

This implies that the FFC K has four 0.05-granular reductions: \(\mathcal {R}^{0.05}_K=\{a, c \},\{a,d\},\{a,e\},\{b,d\}\), and has no 0.05-granular core. Also, \(\{ a, c \},\{a,d\},\{a,e\},\{b,d\}\) is 0.05-granular consistent sets of K, and any proper subsets of them is not 0.05-granular consistent sets. By the reduction, we have the 0.05-reduced FFCs \(( U, \{ a, c \}, \tilde{I}_{\{ a, c\}}),( U, \{ a, d \}, \tilde{I}_{\{ a, d\}}),\) \(( U, \{ a, e \}, \tilde{I}_{\{ a, e\}})( U, \{ b, d \}, \tilde{I}_{\{ b, d\}}) \). We obtain the same number of 0.05-object concepts from the reduced FFCs \((U,\{a, c\},\) \(\tilde{I}_{\{a, c\}})\), \((U,\{a, d\},\tilde{I}_{\{a,d\}})\), \((U,\{a,e\},\tilde{I}_{\{a,e\}})\), \(( U, \{ b, d \}, \tilde{I}_{\{ b, d\}})\). Similarly, K has three 0.2-granular reducts: \(\mathcal {R}^{0.2}_K=\{a,d\},\) \( \{b,c,d\},\{b,d,e\}\). And K has a unique 0.2-granular core attribute \(\{d\}\). K has a unique 0.5-granular reduct: \(\{a,b,d\}\), and three 0.5-granular core \(\{a\},\{b\},\{d\}\).

With Definition 5, we have designed Algorithm 1 to calculate the \(\delta \)-granular discernibility matrix. As can be seen in Algorithm 1, \(D^{\delta }_K(x_i,x_j)\) corresponds to the \((i-1)m+j\)-th row in \(\mathcal {D}^{\delta }_K\). By Theorem 6, the procedure for computing \(\delta -\)granular reducts is given in Algorithm 2. Steps 4–5 of the Algorithm 2 use the idea of an incremental algorithm. The time complexity of Algorithm 1 is \(O(|U|^2)\). The time complexity of steps 2–6 of Algorithm 2 is \(O(|U|^2|C|^3)\). Therefore, the time complexity of the total algorithm is \(O(|U|^2|C|^3)\).

Algorithm 1
figure a

Calculate \(\mathcal {D}^{\delta }_K\)

Algorithm 2
figure b

Calculate all \(\delta \)-granular reducts of K (BRK))

3.2 Graph represent for \(\delta \)-granular reduct in formal fuzzy contexts

Definition 7

Let \(K=(U, C,\tilde{I})\) be an FFC, \(D^{\delta }_K\) be the \(\delta \)-granular discernibility matrix of K. Denote \(V= C\) and \(E=\{e \in D^{\delta }_K| e\ne \emptyset \}\). We call the pair (VE) an \(\delta \)-induced graph from K, denoted by \(H^{\delta }_K=(V,E)\).

In fact, a \(\delta \)-granular discernibility attribute set as a crisp hyperedge. Also, the granular \(\delta \)-discernibility matrix can view as a crisp hypergraph.

Example 8

(Continued from Example 6) When taking \(\delta = 0.5\), we can obtain a hypergraph \(H^{0.5}_K\), which has the matrix expression in Table 10.

Table 10 Incidence matrix representation of hypergraph induced from \([D]^{0.5}_K\)

Theorem 7

Let \(H^{\delta }_K=(V,E)\) be an induced graph of a given FFC \(K=(U, C, \tilde{I})\). Then \(\mathcal {T}(H^{\delta }_K) =\mathcal {R}(K^{\delta })\).

Proof

By Definition 7, it is clear that every hyperedge of the induced graph \(H^{\delta }_K\) is a granular \(\delta \)-discernibility attribute set of x and y in K. In fact, the set of hyperedges in \(H^{\delta }_K\) is the same as the granular \(\delta \)-discernibility matrix of K. Thus, by Lemmas 2 and Theorem 6, one can see that \(f_{H^{\delta }_K}(v_1, v_2,\ldots , v_m)=f_{K^{\delta }}(a_1 , a_2 ,\ldots , a_m)\). This implies that \(\mathcal {T}(H^{\delta }_K) = \mathcal {R}(K^{\delta })\). \(\square \)

The above result shows that finding the \(\delta \)-granular reducts of a given FFC can be translated into computing the minimal transversals of a hypergraph. Furthermore, an attribute is a \(\delta \)-granular core of a given FFC \(K=(U, C, \tilde{I})\) if and only if it is a vertex with loops in \(H^{\delta }_K\).

Theorem 8

Let \(H^{\delta }_K =(V, E)\) be an induced hypergraph of a given FFC \(K=(U, C, \tilde{I})\). If \(a \in C\) is a \(\delta \)-granular core of K, then a is a vertex with self-loop for the hypergraph \(H^{\delta }_K\).

Proof

In fact, if \(a\in C\) is a \({\delta }\)-granular core of K, then according to Theorem 5, there are \(x, y\in U\) such that \(D^{\delta }_K( x, y ) = \{ a \}\). This means that there is a hyperedge \(e\in E\) such that \(e= (a, a)\) by Definition 5, that is, the hyperedge e is a loop since it has only the unique vertex a. \(\square \)

Example 9

(Continued from Example 6). From Tables 7, 8 and 9, we can obtain the corresponding Boolean function of \(H_K\) as follows.

$$\begin{aligned} f_{H^{0.05}_K}&=(a\vee b\vee c\vee d\vee e)\wedge (b\vee c\vee d\vee e)\\&\quad \wedge (a\vee b\vee e)\wedge (a\vee b\vee d)\wedge (a\vee b\vee d\vee e)\\&\quad \wedge (a\vee d)\wedge (c\vee d\vee e)\wedge (a\vee c\vee d\vee e)\\&\quad \wedge (a\vee b\vee c\vee e)\wedge (a\vee b)\\&=(a\wedge c)\vee (a\wedge d)\vee (a\wedge e)\vee (b\wedge d).\\ \\ f_{H^{0.2}_K}&=d\wedge (a\vee b)\wedge (a\vee d)\wedge (b\vee d)\\&\quad \wedge (c\vee d)\wedge (a\vee b\vee d)\\&\quad \wedge (a\vee b\vee e)\wedge (a\vee c\vee e)\wedge (a\vee d\vee e)\\&\quad \wedge (a\vee b\vee c\vee e)\wedge (a\vee c\vee d\vee e)\\ {}&\quad \wedge (a\vee b\vee c\vee d\vee e)\\&=(a\wedge d)\vee (b\wedge c\wedge d)\vee (b\wedge d\wedge e).\\ \\ f_{H^{0.5}_K}&=a \wedge b\wedge d\wedge (a\vee b)\wedge (a\vee e)\\&\quad \wedge (b\vee d)\wedge (c\vee d)\\&\quad \wedge (a\vee b\vee d)\wedge (a\vee b\vee e)\wedge (a\vee c\vee e)\\&\quad \wedge (a\vee b\vee c\vee e)\wedge (a\vee c\vee d\vee e)\\ {}&\quad \wedge (a\vee b\vee c\vee d\vee e)\\&=a\wedge b\wedge d. \end{aligned}$$

Combined with Example 7, it is easy to verify that \(\mathcal {T}(H^{\delta }_K) =\mathcal {R}(K^{\delta })\).

Having transformed a problem of finding the \(\delta \)-granular reduction of an FFC into finding the minimal transversals of a hypergraph, we can then implement it by using some heuristic algorithms from graph theory. Next, we use the idea of greedy algorithms to construct Algorithm 3 for finding a minimal transversal of a hypergraph. It is easy to see the time complexity of Algorithm 3 is \(O(|U|^2|C|)\). However, the complexity of granular reduction Algorithm 2 is \(O(|U|^2|C|^3)\). This means that Algorithm 3 is more efficient than the Algorithm 2.

Algorithm 3
figure c

A heuristic algorithm based on graph theory to compute the \(\delta \)-granular reducts of K (GTK)

Proposition 9

Let \(K = (U, C, \tilde{I})\) be an FFC, then the result \(\mathcal {T}(H^{\delta }_K)\) output by Algorithm 3 is a \(\delta \)-granular reduct of K.

Proof

It can be seen from Theorem 7 that a minimal transversal \(\mathcal {T}(H^{\delta }_K)\) of induced hypergraph H corresponds to a \(\delta \)-granular reduct of K. In order to prove this result, it is only necessary to explain that the result \(\mathcal {T}(H^{\delta }_K)\) output by Algorithm 3 is a minimal transversal of induced graph \(H^{\delta }_K\). According to steps 7–10 of Algorithm 3, it is clear that \(\mathcal {T}(H^{\delta }_K)\) is a transversal of induced graph \(H^{\delta }_K\), because \(\mathcal {T}(H^{\delta }_K)\) covers all the hyperedges of \(H^{\delta }_K\). Let’s use the counter proof method to assume that \(\mathcal {T}(H^{\delta }_K)\) is not a minimal transversal, that is, there is \(v \in \mathcal {T}(H^{\delta }_K)\), so that the vertex set \(\mathcal {T}(H^{\delta }_K)- \{ v \}\) can still cover all hyperedges of \(H^{\delta }_K\). However, it can be seen from steps 11 of Algorithm 3 that there is no such \(v \in \mathcal {T}(H^{\delta }_K)\), so that the vertex set \(\mathcal {T}(H^{\delta }_K)-\{v\}\) can still cover all hyperedges of \(H^{\delta }_K\). Therefore, the proposition is proved. \(\square \)

3.3 Experimental setup and data sets

From these datasets we can see that the values under each attribute do not all belong to [0, 1], so our first priority is to fuzzify this data sets. The idea of fuzzification is to first grade each attribute and then use a Gaussian fuzzy function to calculate the affiliation of the data in each grade. Because most data set conforms to the normal distribution, that is, Gaussian distribution, we use Gaussian fuzzy function to fuzzify the data.

Definition 8

(Poelmans et al. 2013) An information system is denoted by \(I=(U, C, V, F)\), where \(U=\{x_1,x_2,\ldots ,x_n\}\) (called universe set) is a nonempty set of objects, \(C=\{a_1,a_2,\ldots ,a_m\}\) (called attribute set) is a nonempty set of attributes, \(F=\{f_j|j=1,2,\ldots ,m\}\) is a family of mapping set between universe U and attribute set C, where \(f_j:U\times {C}\rightarrow V\) and \(V=\underset{a_j\in C}{\bigcup } V_j(j=1,2,\ldots ,m).\)

Definition 9

Let \(I=\{U,C,V,F\}\) be an information system, where \(U=\{x_1,x_2,\ldots ,x_n\}\), \(C=\{a_1,a_2,\ldots ,a_m\}\), \(F=\{f_l|l=1,2,\ldots ,m\}\). Let \(\mu _C=\{\mu _{a_l}^{I_{a_l}(i)}(x_j): 1\le j\le n, 1\le l\le m, 1\le i\le k_l\}\), where \(\mu _C=\{\mu _{a_l}^{I_{a_l}(i)}(x_j)\}\) represents the membership degree of the \(l-\)th attribute value of object \(x_j\) belong to interval \(I_{a_l}(i)\), \(\underset{i=1}{\overset{k_l}{\cup }} I_{a_l}(i)=V_{a_l}\), \(V_{a_l}\) is the value domain of \(f_j\). For simplicity, we write \(V_l\) instead of \(V_{a_l}\), \(I_l\) instead of \(I_{a_l}\). And \(I_l(i)=[I_l^{-}(i),I_r^{+}(i)]\), \(|I_l(i)|=I_r^{+}(i)-I_l^{-}(i)\), \(\bar{I}_l(i)=\frac{I_l^{-}(i)+I_l^{+}(i)}{2}\) and \(I_l^{-}(1)=\mathrm{{min}}(V_l)\), \(I_l^{+}(k_l)=\mathrm{{max}}(V_l)\), \(I_l^{+}(i-1)\ge I_l^{-}(i)\), \(\mu _l^{I_l(i)}(x_j)\) is defined as follows.

$$\begin{aligned} \mu _l^{I_l(1)}(x_j)&= \left\{ \begin{array}{ll} 1,~~~~~&{}I_l^{-}(1)=V_l(x_j),\\ e^{{-}\frac{{(V_l(x_j)-I_l^{-}(1)})^2}{2{(|I_l(1)|)}^2}},~~~~~&{}I_l^{-}(1)<V_l(x_j)\le I_l^{+}(1), \end{array} \right. \\ \mu _l^{I_l(i)}(x_j)&= \left\{ \begin{array}{ll} e^{{-}\frac{({\bar{I}_l(i)-V_l(x_j)})^2}{2{(\frac{1}{2}|I_l(i)|)}^2}},~~~~~&{}I_l^{-}(i)< V_l(x_j)\le \bar{I}_l(i),\\ e^{{-}\frac{(V_l(x_j)-\bar{I}_l(i))^2}{2{(\frac{1}{2}|I_l(i)|)}^2}},~~~~~&{}\bar{I}_l(i)<V_l(x_j)\le I_l^{+}(i), \end{array} \right. \\ \mu _l^{I_l(k_l)}(x_j)&= \left\{ \begin{array}{ll} 0,~~~~~&{}V_l(x_j)=I_l^{-}({k_l})\\ e^{{-}\frac{({I_l^{+}(k_l)-V_l(x_j)})^2}{2{(|I_l(k_l)|)}^2}},~~~~~&{}I_l^{-}(k_l)< V_l(x_j)\le I_l^{+}({k_l}). \end{array} \right. \end{aligned}$$
Fig. 6
figure 6

The Gaussian fuzzy number

For each subinterval \(I_l(i)\), it also needs to satisfy a condition: it cannot be included in the union of one or more other subintervals. It should be emphasized that \(I_l(i)\cap I_l(i+1)~(i=1,2,\ldots ,k_l-1)\) is allowed nonempty whereas it must be an empty set in the classical interval partition, as shown in Fig. 6.

The larger value of \(k_l\), the finer the information granule. The smaller value of \(k_l\), the coarser the information granule. By Definition 9, an information table with continuous data can be transformed into an FFC.

The fuzzified data is better interpreted. For example, in a certain dataset, there are 2000 objects, one of the attributes is “height”, and the value of this attribute is continuous. Then we can classify the height values into “high, medium and low” three grades, each two grades can be intersected. Then according to the formula in Definition 9 to calculate the corresponding degree of affiliation, the calculated value indicates that the object belongs to the “high, medium, low” each grade of the degree of affiliation.

Table 11 summarizes the set of data used in the experiment. They are real-world data sets which were collected from UCI Machine Learning Repository.Footnote 1

Table 11 Data description of the 4 data sets

Each data set in Table 11 can be regarded as a large information system. For discrete attributes with no more than 5 attribute values, we use the method in Ganter and Wille (1999) to convert discrete attributes into Boolean ones. For continuous attributes or a discrete attribute with more than 5 values, we apply Definition 9 to convert continuous attributes into fuzzy attributes with a value of [0-1]. In this paper, we divide the entire range of each continuous attribute into three subintervals. The first and third intervals are half of the second interval, and the repetition of each two adjacent intervals is 1/5 of the length of the second interval. Therefore, we get K1, K2, K3, and K4, which is shown in Table 12, where |U| and |C| represent the cardinalities of object sets and condition attribute sets respectively. Density represents the proportion of non-zero items in the entire data set.

In our experiments, we have obtained reduct sets of attributes while keeping object granules of a certain granularity unchanged, using the BRK and GTK algorithms, respectively. Each algorithm can be seen as a two-step process, where the first step is generated by Algorithm 1. The difference between the two algorithms lies in the second step of each algorithm.

Table 13 lists the running times for generating the difference matrices at different granularities for each data set. Tables 14, 15, 16 and 17 present the experimental results, including the cardinality of the reduced set of attributes, whether it is a reduct or not and the running time of the second step in each algorithm. As can be seen from these tables, there are 40 cases, of which only 12 cases are different, but ninety-nine percent of all datasets with different results differ by no more than ten percent. This means that the difference in cardinality after reduction is very small. This is mainly because the reduction algorithm is an approximation algorithm and there are errors. To reduce this error, we can adjust the order of the attributes in the dataset. In order to see more directly how the two algorithms compare in terms of running time on the second step, we have drawn Figs. 7, 8, 9 and 10. The X-axis in each figure represents the granularity value and the Y-axis represents the running time in seconds. Note that the Y-axis is of logarithmic. It is straightforward to see from the figures that GTK performs better than BRK in terms of running time. All experiments were run on an i5-10210U (1.60GHz), 8.0GB RAM and a personal computer in Matlab.

Table 12 Formal fuzzy contexts used in tests
Table 13 The running time of the first step of BRK and the GTK
Table 14 Comparison of the output of the two algorithms (K1 (Glass))
Table 15 Comparison of the output of the two algorithms (K2 (Heart))
Table 16 Comparison of the output of the two algorithms (K3 (Seeds))
Table 17 Comparison of the output of the two algorithms (K4 (Wine))
Fig. 7
figure 7

Comparison of the running times of the second step of the BRK and the GTK (Glass)

Fig. 8
figure 8

Comparison of the running times of the second step of the BRK and the GTK (Heart)

Fig. 9
figure 9

Comparison of the running times of the second step of the BRK and the GTK (Seeds)

Fig. 10
figure 10

Comparison of the running times of the second step of the BRK and the GTK (Wine)

Algorithm 2 (BRK) and Algorithm 3 (GTK) both aim at finding the granular reducts of FFCs, but the difference is that BRK calculates all the granular reducts of an FFC, but GTK only calculates one granular reduct of an FFC. By analyzing the algorithms and the results of data experiments, we can know that the BRK algorithm has high complexity and long running time, while the GTK algorithm has low complexity and high reduction efficiency.

4 \(\delta \)-granular reduct in formal fuzzy decision contexts

In this section, we introduce the definition of \(\delta \)-consistent and \(\delta \)-granular reduction in FFDCs. Then, we provide two different reduction approaches.

4.1 Boolean reasoning for \(\delta \)-granular reduction in formal fuzzy decision contexts

Definition 10

Let \(S=(U, C, \tilde{I}, D, \tilde{J})\) be an FFDC. S is said to be \(\delta \)-consistent if \(g_{\delta }\circ f(x)\subseteq g_{{\delta },{D}}\circ f_{D}(x)\) for all \(x\in U\). Otherwise, it is said to be \(\delta \)-inconsistent.

Example 10

(Continue from Example 2) According to the properties of f and \(g_{\delta }\), S is \(\delta \)-consistent when we take \(\delta =0.01,0.05,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1\), respectively. For simplicity, we only present the determination of the consistent of S for \(\delta = 0.01\) and \(\delta =0.45\), other cases can be obtained in a similar way.

\(g_{0.01}\circ f(x_1)=\{x_1\}=g_{{0.01},{D}}\circ f_{D}(x_1)\),

\(g_{0.01}\circ f(x_2)=\{x_2\}=g_{{0.01},{D}}\circ f_{D}(x_2)\),

\(g_{0.01}\circ f(x_3)=\{x_3\}=g_{{0.01},{D}}\circ f_{D}(x_3)\),

\(g_{0.01}\circ f(x_4)=\{x_4\}=g_{{0.01},{D}}\circ f_{D}(x_4)\),

\(g_{0.01}\circ f(x_5)=\{x_5\}=g_{{0.01},{D}}\circ f_{D}(x_5),\)

\(g_{0.45}\circ f(x_1)=\{x_1\}\subseteq \{x_1,x_2,x_3\}=g_{{0.45},{D}}\circ f_{D}(x_1)\),

\(g_{0.45}\circ f(x_2)=\{x_2\}\subseteq \{x_2,x_3\}=g_{{0.45},{D}}\circ f_{D}(x_2)\),

\(g_{0.45}\circ f(x_3)=\{x_3\}=g_{{0.45},{D}}\circ f_{D}(x_3)\),

\(g_{0.45}\circ f(x_4)=\{x_3,x_4\}=g_{{0.45},{D}}\circ f_{D}(x_4)\),

\(g_{0.45}\circ f(x_5)=\{x_5\}=g_{{0.45},{D}}\circ f_{D}(x_5).\)

Definition 11

Let \(S=(U, C, \tilde{I}, D, \tilde{J})\) be a \(\delta \)-consistent FFDC and \(C'\subseteq C\). If \(g_{{\delta },{C'}}\circ f_{C'}(x)\subseteq g_{{\delta },{D}} \circ f_{D}(x)\) for all \(x\in U\), then \(C'\) is referred to as a \(\delta \)-granular consistent set of S. If \(C'\) is a \(\delta \)-granular consistent set of S and no proper subset of \(C'\) is a \(\delta \)-granular consistent set, then \(C'\) is referred to as a \(\delta \)-granular reduct of S.

We denote the set of all \(\delta \)-granular reducts of S as \(\mathcal {R}(S^{\delta })\). According to the significance of the attributes, based on \(\delta \)-granular reducts, the attribute set C is divided into three parts:

(1) \(\delta \)-indispensable attribute (core attribute) set \(Co_{S^{\delta }}: Co_{S^{\delta }} =\bigcap \mathcal {R}(S^{\delta })\),

(2) \(\delta \)-relatively necessary attribute set \(K_{S^{\delta }}: K_{S^{\delta }}=\bigcup \mathcal {R}(S^{\delta })-\bigcap \mathcal {R}(S^{\delta })\),

(3) \(\delta \)-unnecessary attribute set \(I_{S^{\delta }} : I_{S^{\delta }}=C - \bigcup \mathcal {R}(S^{\delta })\).

Similar to the definition of ordered relation \(R^{\delta }_{C'}\) defined by Eq. (5), the ordered relation \(R^{\delta }_{D}\) with respect to the decision attribute set D in \((U, C, \tilde{I}, D, \tilde{J} )\) is defined by \(R^{\delta }_{D}=\{( x, y ) \in U \times U |~0\le \tilde{J} ( y, d )- \tilde{J} ( x, d )\le {\delta },\forall ~d\in D\}\).

Definition 12

Let \(S=( U, C, \tilde{I}, D, \tilde{J})\) be a \(\delta \)-consistent FFDC and \((x, y)\in U \times U\). We define

$$ \begin{aligned} \begin{aligned} D^{\delta }_S(x,y)= \left\{ \begin{array}{ll} \{a\in C| \tilde{I}(x,a)>\tilde{I}(y,a) || \tilde{I}(x,a)+\delta &{} \\<\tilde{I}(y,a)(\exists a\in C) ~ \& ~ \tilde{J}(x,c)&{}\\ >\tilde{J}(y,c) || \tilde{J}(x,c)+\delta &{} \\ <\tilde{J}(y,c),(\exists c\in D)\},\\ \emptyset ,~~~~~ \mathrm{{others}}, \end{array} \right. \end{aligned} \end{aligned}$$

where \(D^{\delta }_S( x, y )\) is referred to as the granular \(\delta \)-granular discernibility attribute set of x and y in S, and \(\mathcal {D}^{\delta }_S=(D^{\delta }_S(x, y)| (x, y) \in U \times U)\) is called the \(\delta \)-granular discernibility matrix of S. We denote \([D]^{\delta }_S =\{D^{\delta }_S( x, y ) | D^{\delta }_S( x, y )\ne {\emptyset },( x, y \in U )\}\).

Remark 5

When \(\delta =1\), \(D^{\delta }_S(x, y)\) degenerates to the discernibility attribute set of x and y in S, \(\mathcal {D}^{\delta }_S\) degenerates to the discernibility matrix of S, and \([D]^{\delta }_S\) degenerates to \(M^{S}_0\) in Shao et al. (2016).

Theorem 10

Let \(S=( U, C, \tilde{I}, D, \tilde{J})\) be a consistent FFDC, if \(\delta _1\ge {\delta _2}\), then \(D^{\delta _1}_S(x,y)\subseteq D^{\delta _2}_S(x,y)\).

Proof

If \(a\in D^{\delta _1}_S(x,y)\), that is \(\tilde{I}(x,a)> \tilde{I}(y,a)\) or \(\tilde{I}(y,a)-\tilde{I}(x,a)> {\delta _1}\ge {\delta _2}\) and there exists \(d\in D\) such that \(\tilde{J}(x,d)>\tilde{J}(y,d)\) or \(\tilde{J}(y,d)-\tilde{J}(x,d)>\delta _1\ge {\delta _2}\). That is, \(a\in D^{\delta _2}_S(x,y)\). Then \(D^{\delta _1}_S(x,y)\subseteq D^{\delta _2}_S(x,y)\). \(\square \)

Theorem 11

Let \(S=( U, C, \tilde{I}, D, \tilde{J})\) be an FFDC and \(C'\subseteq C\). Then, \(C'\) is a \(\delta \)-granular consistent set if and only if \(C'\cap D^{\delta }_S(x, y)\ne \emptyset \) for all \(D^{\delta }_S(x,y)\in [D]^{\delta }_S\).

Proof

\((\Rightarrow )\) For any \(D^{\delta }_S\in [D]^{\delta }_S\), according to Definition 12, it is known that \(y\notin [x]_{R_{D}^{\delta }}\). And since \(C'\) is a \(\delta \)-granular consistent set, we know that \([x]_{R_{C'}^{\delta }}=g_{C'}^{\delta }\circ f_{C'}(x)\subseteq g^{\delta }_{D}\circ f_{D}=[x]_{R^{\delta }_{D}}\). Thus, \(y\notin [x]_{R_{C'}^{\delta }}\), that is, there exists an attribute \(c\in C'\), such that \(\tilde{I}(x,c)>\tilde{I}(y,c)\) or \(\tilde{I}(x,c)+{\delta }<\tilde{I}(y,c)\), which implies that \(c\in D^{\delta }_S(x,y)\). Then, we have \(c\in C'\cap D^{\delta }_S(x,y)\). Therefore, \(C\cap D^{\delta }_S(x,y)\ne \emptyset \).

\((\Leftarrow )\) Suppose that \(C\cap D^{\delta }_S(x,y)\ne \emptyset \). For any \(D^{\delta }_S(x,y)\in [D]^{\delta }_S\), since S is \(\delta \)-consistent, then for any \(x,y\in U\), if \(y\notin [x]_{R^{\delta }_{D}}\), there must be \(y\notin [x]_{R^{\delta }_{C}}\), i.e. exists \(a\in C\), such that \(\tilde{I}(x,a)>\tilde{I}(y,a)\) or \(\tilde{I}(x,a)+\delta <\tilde{I}(y,a)\). Thus, we obtain that \(D^{\delta }_S(x,y)\ne \emptyset \). And since it is assumed that \(C\cap D^{\delta }_S(x,y)\ne \emptyset \), there exists \(c\in C'\) such that \(\tilde{I}(x,c)>\tilde{I}(y,c)\) or \(\tilde{I}(x,c)+\delta <\tilde{I}(y,c)\), which implies that \(y\notin [x]_{R_{C'}^{\delta }}\). It follows that \([x]_{R_{C'}^{\delta }}\subseteq [x]_{R_{D}^{\delta }}\). Therefore, we have \([x]_{R_{C'}^{\delta }}=g_{\delta ,C'}\circ f_{C'}(x)\subseteq g_{\delta ,D}\circ f_{D}(x)=[x]_{R^{\delta }_{D}}\), i.e. \(C'\) is a \(\delta \)-granular consistent set of S. \(\square \)

Theorem 12 provides a method to determine whether the attribute set is a \(\delta \)-granular consistent set of S.

Theorem 12

Let \(S=(U,C,\tilde{I}, D, \tilde{J})\) be a \(\delta \)-consistent FFDC and \(a\in C\). Then, a is a \(\delta \)-indispensable (core) attribute of S if and only if there exists \((x, y)\in U \times U\) such that \(D^{\delta }_S(x, y) = \{a\}\).

Proof

\((\Rightarrow )\) Assume that a is an \(\delta \)-indispensable attribute in S, then \(C-\{a\}\) is not a \(\delta -\)granular consistent set of S. By Definition 11, we have \(g_{\delta ,C-\{a\}}\circ f_{C-\{a\}}(x)\nsubseteq g_{\delta ,D}\circ f_D(x)\), that is, \([x]_{R^{\delta }_{C-\{a\}}}\nsubseteq [x]_{R^{\delta _D}}\). Thus, there exists \(y\in U\) such that \(y\in [x]_{R^{\delta }_{C-a}}\) and \(y\notin [x]_{R^{\delta }_{D}}\), which means \(\tilde{I}(x,a)- \tilde{I}(y, a)>0\) or \(\tilde{I}(x,a)+\delta <\tilde{I}(y,a)\), and \(0\le \tilde{I}(y,b)-\tilde{I}(x,b)\le \delta \) for all \(b\in C-\{a\}\), and, there exists \(d\in D\) \(\tilde{J}(x, d)>\tilde{J}(y, d)\) or \(\tilde{J}(x,d)+\delta < \tilde{J}(y,d)\). Therefore, by the definition of \(D^{\delta }_S(x,y)\), we conclude that \(D^{\delta }_S(x, y) = \{a\}\).

\((\Leftarrow )\) If there exists \((x, y)\in U \times U\) such that \(D^{\delta }_S(x, y) = \{a\}\), then, by Definition 12, we obtain \(0\le \tilde{I}(y, b)- \tilde{I}(x, b)\le \delta ,(\forall b\in C-\{a\}\) and \(\tilde{I}(x, a)>\tilde{I}(y, a)\) or \(\tilde{I}(x,a)+\delta <\tilde{I}(y,a)\). And, there exists \(d\in D\), such that \(\tilde{J}(x,d)>\tilde{J}(y,d)\) or \(\tilde{J}(x,d)+\delta <\tilde{J}(y,d)\), i.e. \(y\in [x]_{R^{\delta }_{C-\{a\}}}\) and \(y\notin [x]_{R^{\delta }_D}\). Thus, we have, \([x]_{R^{\delta }_{C-\{a\}}}\nsubseteq [x]_{R^{\delta }_D}\), that is, \(g_{\delta ,C-\{a\}}\circ f_{C-\{a\}}\nsubseteq g_{\delta ,D}\circ f_D(x)\). Hence, \(a\in \cap \mathcal {R}_{S^{\delta }}\). Therefore, a is an \(\delta \)-indispensable attribute (core attribute) of S. \(\square \)

Let

$$\begin{aligned} f_{S^{\delta }}=\underset{(x,y)\in {U\times U}}{\wedge } \vee { D^{\delta }_S( x, y )}=\underset{k=1}{\overset{t}{\vee }}\left( \underset{s=1}{\overset{q_k}{\wedge }}{a_s}\right) , \end{aligned}$$

where \(\wedge ^{q_k}_{s=1}\), \(k\le t\) are all the prime implicants of the \(\delta \)-granular discernibility function \(f^{\delta }_S\). We denote \(N_k=\{a_s|~s=1,2,\ldots ,q_k\}\). Then, \(\{N_k|~k=1,2,\ldots ,t\}\) is the set of all \(\delta \)-granular reducts of S.

Theorem 13

Let \(S = ( U, C, \tilde{I}, D, \tilde{J})\) be an FFDC and \(C'\subseteq C\). Then, \(C'\) is a \(\delta \)-granular reduct of S if and only if \(\underset{a\in C'}{\wedge }a\) is a prime implicant of the \(\delta \)-discernibility function \(f_{S^{\delta }}\).

Proof

Its proof is similar to that of Theorem 6. \(\square \)

Example 11

Continued from Example 2. When \(\delta \) is taken as 0.05, 0.2 and 0.5, the \({\delta }\)-granular discernibility matrices are shown in Tables 18, 19, and 20 respectively.

$$\begin{aligned}&f_{S^{0.05}}(a,b,c,d,e)\\ {}&\quad = (b\vee c\vee d\vee e)\wedge (a\vee b\vee c\vee d\vee e) \\ {}&\qquad \wedge (a\vee d)\wedge (c\vee d)\wedge (a\vee b\vee d)\\&\qquad \wedge (a\vee b\vee e)\wedge (a\vee c\vee d\vee e)\wedge (a\vee b)\\ {}&\qquad \wedge (a\vee b\vee d\vee e)\wedge (a\vee b\vee c\vee e)\\&\quad =(a\wedge c)\vee (a\wedge d)\vee (b\wedge d).\\ \\&f_{S^{0.2}}(a,b,c,d,e)\\ {}&\quad =(a\vee d)\wedge d\wedge (a\vee b\vee d)\wedge (a\vee b\vee c\vee e)\\ {}&\qquad \wedge (c\vee d)\wedge (a\vee b\vee e)\\&\qquad \wedge (a\vee c\vee d\vee e)\wedge (b\vee d)\wedge (a\vee b\vee c\vee d\vee e)\\ {}&\qquad \wedge (a\vee b) \wedge (a\vee d\vee e)\wedge (a\vee c\vee e)\\&\quad =(a\wedge d)\vee (b\wedge c\wedge d)\vee (b\wedge d\wedge e).\\ \\&f_{S^{0.5}}(a,b,c,d,e)\\ {}&\quad =d\wedge (a\vee b\vee d)\wedge (a\vee b\vee c\vee e)\wedge (c\vee d)\wedge (b\vee d)\\ {}&\qquad \wedge (a\vee b\vee e)\wedge (a\vee c\vee d\vee e)\\ {}&\qquad \wedge (a\vee b)\wedge b\wedge (a\vee e)\wedge a\wedge (a\vee c\vee e) \\&\quad =a\wedge b\wedge d. \end{aligned}$$
Table 18 0.05-granular discernibility matrix of S
Table 19 0.2-granular discernibility matrix of S
Table 20 0.5-granular discernibility matrix of S

Next, we discuss the calculation of \(D^{\delta }_S\) from a different perspective. In fact, a \(\delta \)-consistent FFDC \(S=(U,C,\tilde{I},D,\tilde{J})\) can be seen an FFC without decision attributes. It can be expressed as \(B=(U,A,\tilde{R})\) satisfies \(A=C\cup D\) and \(\tilde{R}=\tilde{I}\cup \tilde{J}\).

By Definition 5 and 12, we can observe that for a given FFDC S, the \(\delta \)-granular discernibility matrix of S and that of the union FFC are different. However, we can obtain the following result.

Theorem 14

Let \(S=(U,C,\tilde{I},D,\tilde{J})\) be a \(\delta \)-consistent FFDC, \(B=(U,A,\tilde{R})\) be the union FFC induced from S. For any \(x, y \in U\), if \(D^{\delta }_B(x, y)\) and \(D^{\delta }_S(x, y)\) are the \(\delta \)-granular discernibility attribute sets of x and y in B and S, respectively, then \(D^{\delta }_S( x, y)\subseteq D^{\delta }_B(x, y)\).

Proof

For each \(x, y\in U\), if \(D^{\delta }_S(x, y)=\emptyset \), then \(D^{\delta }_S(x, y)\subseteq D^{\delta }_B(x, y)\). Thus we suppose that \(D^{\delta }_S(x, y)\ne \emptyset \). If \(D^{\delta }_S(x, y)\ne \emptyset \), then by Definition 12, there must exist \(a\in A\) such that \(\tilde{I}(x,a)> \tilde{I}(y,a)\) or \(\tilde{I}(x,a)+\delta < \tilde{I}(y,a)\}\) and \(d\in D\) such that \(\tilde{J}(x,d)> \tilde{J}(y,d)\) or \(\tilde{J}(x,d)+\delta < \tilde{J}(y,d)\). Therefore, one can conclude that \(\{ d\in D | \tilde{J}(x,d)> \tilde{J}(y,d) || \tilde{J}(x,d)+\delta <\tilde{J}(y,d)\} \ne \emptyset \). Note that \(D^{\delta }_B( x, y )\) is the \(\delta \)-granular discernibility attribute set of x and y in the union FFC B, then by the definition of \(D^{\delta }_B(x, y)\), we have \(D^{\delta }_B(x, y )=D^{\delta }_S(x, y )\cup \{d\in D | \tilde{J}(x,d)> \tilde{J}(y,d) || \tilde{J}(x,d)+\delta < \tilde{J}(y,d)\}\). Thus \(D^{\delta }_S(x,y)\subseteq D^{\delta }_B(x, y)\) holds. \(\square \)

By the proof of Theorem 14, it is also obvious to see that we can obtain the \(D^{\delta }_S\) via \(D^{\delta }_B(x, y )\). Actually, we have the following result.

Theorem 15

Let \(B=(U,C,\tilde{R})\) be the union FFC induced from a given \(\delta \)-consistent FFDC \(S=(U, C,\tilde{I},D,\tilde{J})\). For any \(x, y\in U\), then the following formula holds:

$$\begin{aligned} \begin{aligned} D^{\delta }_S(x, y) = \left\{ \begin{array}{ll} D^{\delta }_B(x, y)-D, ~~&{}D^{\delta }_B(x, y)\cap D\ne \emptyset , \\ \emptyset , &{}\mathrm{{otherwise}}. \end{array} \right. \end{aligned} \end{aligned}$$

Proof

For any \(x, y\in U\), if there is \(d\in D\) such that \(\tilde{J}(x,d)> \tilde{J}(y,d) || \tilde{J}(x,d)+\delta < \tilde{J}(y,d)\), then \(\{d\in D| \tilde{J}(x,d)> \tilde{J}(y,d)|| \tilde{J}(x,d)+\delta < \tilde{J}(y,d)\}\ne \emptyset \). From Theorem 14, we know that \(D^{\delta }_B(x, y)= D^{\delta }_S( x, y)\cup \{d\in D: \tilde{J}(x,d)> \tilde{J}(y,d)|| \tilde{J}(x,d)+\delta < \tilde{J}(y,d)\}\). Since \(C\cap D=\emptyset \), and \(D^{\delta }_S( x, y)\subseteq C\). Thus, we have \(D^{\delta }_B(x, y)\cap D=\{d\in D: \tilde{J}(x,d)> \tilde{J}(y,d) || \tilde{J}(x,d)+\delta < \tilde{J}(y,d)\}\ne \emptyset \). Moreover, we have \(D^{\delta }_S( x, y)=D^{\delta }_B(x, y)-\{d\in D: \tilde{J}(x,d)> \tilde{J}(y,d) || \tilde{J}(x,d)+\delta < \tilde{J}(y,d)\}=D^{\delta }_B(x, y)-D\). In addition, if \(0\le \tilde{J}(y,d)-\tilde{J}(x,d)\le \delta \) for all \(d\in D\), then, we have \(D^{\delta }_S(x, y)=\emptyset \). \(\square \)

Example 12

(Continue from Example 2) Table 21 shows the 0.2-granular discernibility matrix of the union FFC B induced from the FFDC S of Example 2. It is easy to obtain the 0.2-granular discernibility matrix of S according to Theorem 15. It is the same as shown in Table 19.

Table 21 The 0.2-granular discernibility matrix of B

Following the idea of Theorem 15, we give the algorithms for computing the \(\delta \)-granular discernibility matrix \(D^{\delta }_S\) and \(\delta \)-granular reduction of a given S, i.e., Algorithm 4 and 5. The time complexity of the Algorithm 4 is \(O(|U|^2(|D|+|C|))\). The time complexity of steps 2–4 of Algorithm 5 is \(O(|U|^2|C|^3)\). Therefore, the maximum time complexity of Algorithm 5 is \(O(|U|^2(|D|+|C|+|C|^3))\).

Algorithm 4
figure d

Calculate \(D^{\delta }_S\)

Algorithm 5
figure e

Calculate all \(\delta \)-granular reducts of S (BRS)

4.2 Graph representation for \(\delta \)-granular reduction in formal fuzzy decision contexts

In this section, we will discuss the \(\delta \)-granular reduction based on graph theory in FFDCs.

Definition 13

Let \(S=(U,C,\tilde{I},D,\tilde{J})\) be a \(\delta \)-consistent FFDC, \(\mathcal {D}^{\delta }_S\) be the \(\delta \)-granular discernibility matrix of S. Denote \(V=C\) and \(E=\{e \in \mathcal {D}^{\delta }_S| e\ne \emptyset \}\). We call \(H^{\delta }_S=(V, E)\) an \(\delta \)-induced hypergraph from S.

Definition 13 provides a method for generating induced hypergraph from \(D^{\delta }_S\). According to it, we can generate a hypergraph from \(\mathcal {D}^{\delta }_S\) in which a hyperedge is generated from a nonempty set of \(\delta \)-granular discernibility attribute set in \(\mathcal {D}^{\delta }_S\).

Let \(\mathcal {R}(S^{\delta })\) and \(\mathcal {T}(H^{\delta }_S)\) denote the set of all \(\delta \)-granular reducts of the \(\delta \)-consistent FFDC and the minimal traversals of induced hypergraph of S. Then by Theorem 7, we can also have the following result.

Theorem 16

For a giver \(\delta \)-consistent FFDC \(S=(U,C,\tilde{I},D,\tilde{J})\), if \(H^{\delta }_S=(V, E)\) be the induced graph from \(D^{\delta }_S\), then \(\mathcal {R}(S^{\delta })=\mathcal {T}( H^{\delta }_S)\).

Example 13

(Continued from Example 11) We first take \(\delta =0.2\) and then, according to Definition 13, are able to generate a hypergraph \(H=(V,E)\). Where \(V=\{a,b,c,d,e\}\), \(E=\{e_1,e_2,\ldots ,e_{12}\}\) and \(e_1=\{a,d\}\), \(e_2=\{d\}\), \(e_3=\{a,b,d\}\), \(e_4=\{a,b,c,e\}\), \(e_5=\{c,d\}\), \(e_6=\{a,b,e\}\), \(e_7=\{a,c,d,e\}\), \(e_8=\{b,d\}\), \(e_9=\{a,b,c,d,e\}\), \(e_{10}=\{a,b\}\), \(e_{11}=\{a,d,e\}\), \(e_{12}=\{a,c,e\}\).

$$\begin{aligned} \begin{aligned}&f_{H^{0.2}_S}(a,b,c,d,e)\\ {}&\quad =(a\vee d)\wedge d\wedge (a\vee b\vee d)\\&\qquad \wedge (a\vee b\vee c\vee e)\wedge (c\vee d)\wedge (a\vee b\vee e)\\&\qquad \wedge (a\vee c\vee d\vee e)\wedge (b\vee d)\wedge (a\vee b\\&\qquad \vee c\vee d\vee e)\wedge (a\vee b)\wedge (a\vee d\vee e)\wedge (a\vee c\vee e)\\&\quad =(a\wedge d)\vee (b\wedge c\wedge d)\vee (b\wedge d\wedge e).\\ \end{aligned} \end{aligned}$$

It is easy to see that S has three 0.2-granular reducts \(\{a, d\}\), \(\{b,c,d\}\) and \(\{b, d, e\}\), and \(\mathcal {R}(S^{0.2}) =\mathcal {T}( H^{0.2}_S)\).

Theorem 17

Let \(S=(U, C,\tilde{I}, D,\tilde{J})\) be a \(\delta \)-consistent FFDC, \(H^{\delta }_S= (V, E)\) be an induced hypergraph of S. If \(a\in C\) is a \(\delta \)-granular core of S, then a is a vertex with loops for the hypergraph \(H^{\delta }_S\).

Proof

The proof of the above theorem is similar to the proof of Theorem 8. \(\square \)

Next, we construct an algorithm for searching a \(\delta \)-granular reduct of a \(\delta \)-consistent FFDC.

Very obviously, may see, the time complexity of Algorithm 6 is \(O(|U|^2(|C|+|D|))\). However, the complexity of granular reduction Algorithm 5 is \(O(|U|^2(|D|+|C|+|C|^3))\). This means that Algorithm 6 is more efficient than the Algorithm 5.

Algorithm 6
figure f

Calculate a \(\delta \)-granular reduct of a \(\delta \)-consistent FFDC based graph theory (GTS)

4.3 Experimental setup and data sets

The datasets with decision attributes are listed in Table 22. Where S1 and S2 are the datasets generated by concatenating 60 and 200 times in Table 4 in Example 2, respectively. S3, S4, and S5 are the data sets generated in Table 4 by first merging 3, 6, and 8 times, respectively, and then concatenating 30, 60, and 40 times, respectively, in series. It is easy to verify that when \(\delta \) takes 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9 and 1, this data set is all \(\delta \)-consistent. Depending on how the datasets are merged and concatenated, we can know that the consistent of the datasets after mergence or concatenation remains the same as the original dataset. That is, it is ensured that the resulting dataset is \(\delta \)-consistent.

Table 22 Consistent formal fuzzy decision contexts used in tests
Table 23 The running time of the first step of BRS and the GTS
Table 24 Comparison of the output of the two algorithms (S1)
Table 25 Comparison of the output of the two algorithms (S2)
Table 26 Comparison of the output of the two algorithms (S3)
Table 27 Comparison of the output of the two algorithms (S4)
Table 28 Comparison of the output of the two algorithms (S5)

In our experiments, we obtained approximate sets of attributes while keeping constant the object granules with decision attributes at different granularities, using both BRS and GTS algorithms. The two algorithms, BRS and GTS, each consist of two steps. The first step both uses Algorithm 4 to generate the \(\delta \)-granular discernibility matrix for the FFDCs. Table 23 shows the running times for the first step for each data set. The difference between the algorithms BRS and GTS is in the second step. Tables 24, 25, 26, 27 and 28 present a comparison of the output of all datasets under the two algorithms, including the cardinality of the reduced set of attributes, whether it is a reduct or not, and the running time of step 2 of the algorithm. As can be seen from these tables, there are 50 cases, of which 47 output the same result, accounting for ninety-four percent of the total. The reason for the error is mainly because the two algorithms are approximate. To reduce this error, the order of the input attributes can be adjusted.

In order to visualise the difference in running time between the two algorithms, we have plotted Figs. 11, 12, 13, 14 and 15. where the X-axis represents the granularity value and the Y-axis is the running time of the second step of the algorithm in seconds. Note that the Y-axis is logarithmic. As can be seen from the figures, in most cases GTS performs worse than BRS in terms of running time, but GRS is more stable than BRS and does not fluctuate much. As can be seen in Fig. 16, BRS has much more total running time for the second step than GTS in all datasets.

Fig. 11
figure 11

Comparison of the running times of the second step of the BRS and the GTS (S1)

Fig. 12
figure 12

Comparison of the running times of the second step of the BRS and the GTS (S2)

Fig. 13
figure 13

Comparison of the running times of the second step of the BRS and the GTS (S3)

Fig. 14
figure 14

Comparison of the running times of the second step of the BRS and the GTS (S4)

Fig. 15
figure 15

Comparison of the running times of the second step of the BRS and the GTS (S5)

Fig. 16
figure 16

Total run time in all datasets for the second step of BRS and GTS

Algorithm 5 (BRS) and Algorithm 6 (GTS) both aim at finding the granular reducts of FFDCs, but the difference is that BRS calculates all the granular reducts of an FFDC, but GTS only calculates one granular reduct of an FFDC. By analyzing the algorithms and the results of data experiments, we can know that the BRS algorithm has high complexity and long running time, while the GTS algorithm has low complexity and high reduction efficiency.

5 Conclusions

In this paper, we introduce two mappings \(g_{\delta }\) and \(g_{\bar{\delta }}\), presenting the concept of an object granule of different granularity and two methods of attribute reduction with the guarantee that this object granule remains unchanged, one algorithm based on Boolean reasoning and the other on graph theory. Also, in order to simplify the conceptual lattice structure, we introduce a partial order relation with parameters. These works have certain significance for the theoretical framework of attribute reduction in FFCs. Then, there are still some limitations. For example, (1) the proposed mapping \(g_{\delta }\) and f cannot form a pair of Galois connections. (2) The proposed partial order relation with parameters simplifies the concept lattice but does not guarantee that important concepts are not missed. (3) The \(\delta \)-granular reduction method proposed in this paper is only applicable to consistent FFDCs, but real datasets are usually inconsistent, and this method is limited in practical data processing and knowledge mining.

Therefore, there are still many issues that we need to discuss in the future. For example, (1) How improving the partial order relations with parameters allows simplifying the structure of the original concept lattice without losing important concepts. (2) For the practicality of \(\delta \)-granular reduction, we will investigate \(\delta \)-granular reducation in the inconsistent FFDCs in the future.