Creates a note explaining that multiple equivalent solutions exist and that the displayed configuration is based on M1.

generate_solution_note(
  n_sol,
  epi_list = NULL,
  style = c("simple", "detailed"),
  language = c("en", "ja"),
  format = c("markdown", "latex")
)

Arguments

n_sol

Integer. Number of solutions.

epi_list

Character vector. Essential prime implicants (NULL to omit).

style

Character. "simple" or "detailed".

language

Character. "en" or "ja".

format

Character. "markdown" or "latex".

Value

Character string of the note, or empty string if n_sol <= 1.

Examples

# Simple note
generate_solution_note(2, style = "simple")
#> [1] "*Note: 2 logically equivalent solutions were identified. This table presents configurations based on M1.*"

# Detailed note with EPIs
generate_solution_note(3, epi_list = c("A*B", "C"), style = "detailed")
#> [1] "*Note: 3 logically equivalent solutions were identified (M1-M3). This table presents configurations based on M1. All solutions share the essential prime implicants: A·B and C.*"

# Japanese
generate_solution_note(2, style = "simple", language = "ja")
#> [1] "*注: 論理的に等価な2つの解が得られた。本表はM1に基づく構成を示す。*"