Classification determinism

Classification determinism

Proved
Mathematical specification
Classification determinism. Every finite byte string has at most one classification, and the parsed content of each numeric literal is unique.

View proof and assumptions

Supporting proofs
Inspect related source (199)
More program dependencies (157)
Standard-library dependencies (39)

Related source and models come from the extraction records and declared dependencies.

Lean statement and supporting proof

Proposition checked for this verdict

theorem ClassificationDeterminism :
    (∀ (bs : List Nat) c₁ c₂, (∀ b ∈ bs, b < 256) ->
      DecimalGoalVocabularyDefault.classifies bs c₁ -> DecimalGoalVocabularyDefault.classifies bs c₂ -> c₁ = c₂) ∧
    (∀ (bs : List Nat) x₁ x₂, (∀ b ∈ bs, b < 256) ->
      DecimalGoalVocabularyDefault.classifies bs (some (Sum.inl x₁)) ->
      DecimalGoalVocabularyDefault.classifies bs (some (Sum.inl x₂)) -> x₁ = x₂) := by

The requirement is proved.

Alternate registered target · outside this verdict
theorem ClassificationDeterminism__Refutation : Not
  (And
    (∀ (bs : List.{0} Nat)
      (c₁ c₂ : Option.{0} (Sum.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool))),
      (∀ (b : Nat),
          @Membership.mem.{0, 0} Nat (List.{0} Nat) (@List.instMembership.{0} Nat) bs b →
            @LT.lt.{0} Nat instLTNat b (@OfNat.ofNat.{0} Nat (nat_lit 256) (instOfNatNat (nat_lit 256)))) →
        dec2flt_model.DecimalGoalVocabulary.classifies dec2flt_model.DecimalGoalVocabularyDefault bs c₁ →
          dec2flt_model.DecimalGoalVocabulary.classifies dec2flt_model.DecimalGoalVocabularyDefault bs c₂ →
            @Eq.{1} (Option.{0} (Sum.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool))) c₁ c₂)
    (∀ (bs : List.{0} Nat) (x₁ x₂ : dec2flt_model.DecimalLexeme),
      (∀ (b : Nat),
          @Membership.mem.{0, 0} Nat (List.{0} Nat) (@List.instMembership.{0} Nat) bs b →
            @LT.lt.{0} Nat instLTNat b (@OfNat.ofNat.{0} Nat (nat_lit 256) (instOfNatNat (nat_lit 256)))) →
        dec2flt_model.DecimalGoalVocabulary.classifies dec2flt_model.DecimalGoalVocabularyDefault bs
            (@Option.some.{0} (Sum.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool))
              (@Sum.inl.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool) x₁)) →
          dec2flt_model.DecimalGoalVocabulary.classifies dec2flt_model.DecimalGoalVocabularyDefault bs
              (@Option.some.{0} (Sum.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool))
                (@Sum.inl.{0, 0} dec2flt_model.DecimalLexeme (Prod.{0, 0} (Option.{0} Bool) Bool) x₂)) →
            @Eq.{1} dec2flt_model.DecimalLexeme x₁ x₂)) := by
Statement registration
Live polarityprove
Authorityregistered Decide default: prove
Registered targetauthored:ClassificationDeterminism
Closure nodes
  • ClassificationDeterminism

Models and assumptions

Program assumptions and trust

These modeling choices occur in the declared dependencies of this requirement’s proofs.

All 31 entries