• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
        • Deftreeops
        • Defdefparse
        • Defgrammar
        • Tree-utilities
        • Notation
          • Syntax-abstraction
          • Semantics
          • Abstract-syntax
            • Convenience-constructors
            • Num-val
            • Char-val
            • Repeat-range
              • Repeat-range-fix
              • Repeat-range-equiv
              • Make-repeat-range
              • Repeat-rangep
              • Repeat-range->min
              • Repeat-range->max
              • Change-repeat-range
            • Rulename
            • Rule
            • Rulename-option
            • Num-base
            • Rule-option
            • Prose-val
            • Rulelist
            • Char-val-set
            • Rulename-set
            • Rulename-list
            • Grammar
            • Alt/conc/rep/elem
          • Core-rules
          • Concrete-syntax
        • Grammar-parser
        • Meta-circular-validation
        • Parsing-primitives-defresult
        • Parsing-primitives-seq
        • Operations
        • Examples
        • Differences-with-paper
        • Constructor-utilities
        • Grammar-printer
        • Parsing-tools
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • Math
    • Testing-utilities
  • Abstract-syntax

Repeat-range

Fixtype of repetition ranges.

This is a product type introduced by fty::defprod.

Fields
min — natp
max — nati

In the abstract syntax, for the repetition notation described in [RFC:3.6] and [RFC:3.7] and by rule repeat in [RFC:4], we use pairs of (i) natural numbers and (ii) natural numbers plus infinity. A specific repetition [RFC:3.7] is abstracted to a variable repetition [RFC:3.6] with the same minimum and maximum. A repetition with a missing lower bound is abstracted to one with the default (i.e. 0) as lower bound. A repetition with a missing upper bound is abstracted to one with the default (i.e. infinity) as explicit upper bound. The notion of well-formed repetition ranges requires the minimum not to exceed the maximum.

Subtopics

Repeat-range-fix
Fixing function for repeat-range structures.
Repeat-range-equiv
Basic equivalence relation for repeat-range structures.
Make-repeat-range
Basic constructor macro for repeat-range structures.
Repeat-rangep
Recognizer for repeat-range structures.
Repeat-range->min
Get the min field from a repeat-range.
Repeat-range->max
Get the max field from a repeat-range.
Change-repeat-range
Modifying constructor for repeat-range structures.