Documentation

Cedar.Thm.Ext.IPAddr.Lemmas

IPAddr grammar bridge lemmas #

These lemmas connect the parser-independent grammar definitions in Cedar.Thm.Ext.IPAddr.Grammar (IsWfIPNet, IsIPNetValue, and the component value functions) to the actual Cedar.Spec.Ext.IPAddr.parse. They culminate in the per-form parse characterizations the aggregator parse_sound/parse_complete build on.

The parser structure (from Cedar.Spec.Ext.IPAddr) is:

Each numeric primitive (parseNumV4, parseNumV6, parsePrefixNat) enforces the length / leading-zero / range side conditions that the grammar predicates transcribe.

Numeric-token bridges #

IPv4 form #

IPv6 form #

Specialized model of String.splitOn "::" #

String.splitOn "::" agrees with the proof-layer character-list model on every string.

Well-formed IPv4 syntax is exactly syntax to which the grammar assigns some V4 value.

Well-formed IPv6 syntax is exactly syntax to which the grammar assigns some V6 value.

Canonical-rendering lemmas #